I've created some time-lapse videos from photos, using this command:

ffmpeg -i IMG_%03d.JPG -s 1440x1080 -sameq video.MP4

And it worked great. Now I want to join several of these time-lapse videos to make a single, longer video (all the input videos have the exactly same format). I already tried using:

cat video1.MP4 video2.MP4 > stitch.MP4

but the output ends up being equal to video1.MP4

I don't want to transcode nor changing any parameter of the video, I just want a end-to-end stitching, as if those videos were on a playlist.

Thanks!

link|improve this question
feedback

1 Answer

The output won't be equal to video1.mp4, but the headers/footers for the video will start and end around video1.mp4, so your player won't go into video2.mp4. Assuming the videos are the same bitrate/codec etc:

cat video1.MP4 video2.MP4 | ffmpeg -y -i - -genpts -vcodec copy -acodec copy stitch.MP4

Bear in mind that this is not necessarily the best method (would be better to make all of the time lapses at the same time in one video) as if the codec is lossy you will induce generation loss.

link|improve this answer
It doesn't work. It says it "couldn't detect codec parameters" – tomm89 Feb 4 '11 at 2:00
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.