Does anybody know how to stitch two (or more) videos together using ffmpeg (or another cli)? This is assuming that all the videos are in the same format and the video format being used allows for lossless stitching (no transcode, just end-to-end stitching).
You can stitch two or more videos with ffmpeg that are in a format that can be concatenated by doing this:
$ cat file1.avi file2.avi > cat_output.avi
$ ffmpeg -i cat_output.avi -r 25 -sameq stitched.avi
The second step it necessary where ffmpeg merges the joined files into a proper readable video file.
There is no such thing as -newvideo in ffmpeg to my knowledge.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With