Skip to main content

Merge/stitch more than one videos using FFmpeg

I'm new to the community, as well as novice in the Pi family. I want to stitch several videos (for example 5). I tried using FFmpeg, but the output was only first input video file.

I was running this code:

ffmpeg -i video1.h264 -i video2.h264 output1.mpg