

#Ffmpeg vstack different size mp4
When converting individually the m2t needs to be at 24 or less, or it looks bad, while the mp4 can be as high as 30. I've tried a variety of different ways, including before the input (thinking that would make ffmpeg apply it only to the input before sending it to the other commands for output), but they all make errors.Īdditionally, I wonder if the -crf 24 command can be specified for each input. I know that works well, but how can I incorporate that into this vstack command? If I put it in with the other I get errors. When I'm converting just the hdv by itself, I use -filter_complex "scale=1920:1080,setsar=1" to ensure square pixels. Well, yes, except in display the m2t is actually 1920 wide, not 1440. Using -filter_complex "vstack=inputs=2" I'm trying to stack vid1 on top of vid2, but I get the error that says it can't proceed because the two videos are not the same width. Vid1.m2t is a 1440 anamorphic hdv mpeg stream, and vid2.mp4 is a regular 1920 h.264. For example, I have the following I'm trying to do: ffmpeg -i vid1.m2t -i vid2.mp4 -map 0:a -filter_complex "vstack=inputs=2" -crf 24 -c:a aac -b:a 128k -ac 1 -movflags +faststart output.mp4 What I can't figure out is how I can specify different commands for each input. I understand the basics of this, for example: ffmpeg -i vid1.mp4 -i vid2.mp4 output.mp4 You can specify multiple inputs to FFMPEG and mix them into a single output.
