![]() ![]() This is a messy business - just experiment. It might better or worse when outputting to an. Fixed with this: ffmpeg -i recoded.avi -c copy recoded-fixed.avi As a result, the video played only halfways. I had errors regarding non monotonically increasing dts to muxer. Or, for re-encoding into AVI XVID with low-end mp3 sound, go: ffmpeg -f concat -i list.txt -ab 128k -acodec libmp3lame -b 5000k -vcodec mpeg4 -vtag XVID recoded.avi If the files all have the same format, re-encoding may not be necessary, so just go ffmpeg -f concat -i list.txt -c copy concat.avi First, prepare a list of files to handle, say as list.txt with the following format file 'file1.avi' Stitching several video clips can be handy. This is a bit of clumsy solution, but I haven’t seen anything more elegant around. The Perl one-liner script just looks for the last occurrence of a time stamp. ![]() Using the copy encoder (-c copy) is somewhat inaccurate but fast (the copy encoder counts in non-video frames at the end, if such exist). The trick is to extract the last timestamp that is given during an encoding of the data into null. So this gives the actual length: ffmpeg -i clip.mp4 -c copy -f null - 2>
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |