uppana.blogg.se

Ffmpeg concat not working
Ffmpeg concat not working





But if I include processed2.mp4 to combination - the resulting video is broken: I use this command for it: ffmpeg -f concat -i tmp.txt -codec copy -threads 3 -strict -2 -y combination.mp4Īny combinations of processed0.mp4 and processed1.mp4 work fine. Then I want to concat them in different combinations, like: original0 -> original1 -> original2, original1 -> original0 -> original2 and so on.

ffmpeg concat not working

I apply this filter to each of them: ffmpeg -i original0.mp4 -filter_complex "crop=720:720:280:0, scale=640:640, transpose=1" -threads 3 -preset ultrafast -strict -2 -y processed0.mp4`

ffmpeg concat not working

I'm not sure if this question/answer belongs on SuperUser.I have some videos recorded with my android phone. If you meant you want to concatenate them, the FAQ has instructions. The "-newvideo", "-newaudio" and "-newsubtitle" options have to be specified immediately after the name of the output file to which you want to add them. Output file test12.avi will contain the second video and the secondĪudio stream found in the input streams list. In addition to the first video and audio streams, the resulting vcodec copy -acodec copy test12.avi -newvideo -newaudio You can put many streams of the same type in the output: ffmpeg -i test1.avi -i test2.avi -vcodec copy -acodec copy \ If you are on Windows you can use YAMB which is a GUI for MP4Box that works great:įFmpeg has added a concatenation filter, more info here:įrom the ffmpeg man page "Examples" section: It is available for Windows, Linux and OS X: You can check whether you have the real ffmpeg by running ffmpeg and checking if the first output line ends with "the FFmpeg developers".įorget about FFmpeg, use MP4Box instead, it is easy and faster: mp4box -add video1.mp4 -cat video2.mp4 -cat video3.mp4 output.mp4

ffmpeg concat not working

This won't work with avconv, so in such a case you have to compile ffmpeg yourself. Note: some distributions (like Ubuntu) do not have ffmpeg in their repository and instead define ffmpeg to be an alias of avconv. With the following text in inputs.txt: file 75_540_38HQ2.mp4 Assuming you want to concatenate the movie, you can use the following command: ffmpeg -f concat -i inputs.txt -vcodec copy -acodec copy Mux1.mp4







Ffmpeg concat not working