Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • What an amazing reply. Thanks. Alright, I was hoping to avoid the most complicated one if possible. OK. Hmm..., hold on, I got this while trying to use -vf scale=960:-2: -vf/-af/-filter and -filter_complex cannot be used together for the same stream. Is there any way to get what I want to do in one step (concat & scale down)? Else, would that means concating with demuxer is the only pre-prepare option now? Thx
    – xpt
    Commented Aug 11, 2015 at 21:17
  • 1
    @xpt My example command has the scale in it. You can do everything in one filtergraph, so no need for multiple -vf, -af, -filter, or -filter_complex.
    – llogan
    Commented Aug 11, 2015 at 21:38
  • Perfect! I didn't look closely, :-) One more question, I'm still trying to figure out the exact syntax. Could you give another example that need to combine three files together? I got the part [0:0] [0:1] [1:0] [1:1] [2:0] [2:1], but moving onto the concat=n=... part I'm not sure there. Also, the wiki have more space, while yours have some extra ;. Neither of them matters right? THX!
    – xpt
    Commented Aug 12, 2015 at 21:47
  • @xpt Please provide a link to a pastebin site showing the complete output of ffmpeg -i input1 -i input2 -i input3
    – llogan
    Commented Aug 13, 2015 at 1:50
  • 1
    @xpt Added another input to the example to display how to concat 3 inputs (assuming each input has one video stream and one audio stream).
    – llogan
    Commented Aug 14, 2015 at 23:52