Posted on 2 Comments

Joining videos in Xabe.FFmpeg

Joining videos in Xabe.FFmpeg

There are a lot of questions and articles how to concatenate multiple videos into one with FFmpeg. Once upon time we had to deal with that feature.

    FFmpeg offers few ways of concatenation:
  1. Concat demuxer
  2. Concat protocol
  3. Concat filters

Due to limits of each concatenation method we implemented it by “filter”. Concat demuxer requires that all files must have the same streams (same codes, time base, etc.) and we need something more flexible. However Concat protocol was easy to use but supports only MPEG based files. Concatenating by filter has restrictions too, but we adapt some features to be more elastic. Full implementation is available on GitHub.

Continue reading Joining videos in Xabe.FFmpeg