Join clips with the FFmpeg concat demuxer

Updated: November 23, 2026

FFmpeg’s concat demuxer can join matching clips while retaining the compressed streams. Compare the tracks and their settings first. Two files with an MP4 extension can have different codecs, time bases, or stream order.

Check the clips before joining

Inspect each clip with ffprobe. Compare stream count and order, codecs, frame size, aspect ratio, time base, and audio parameters. Two consecutive exports from the same preset are a good starting point. If one has stereo audio and the other has no audio, make matching clips in your editor before using this workflow.

Write the list and join

Create list.ffconcat beside take-01.mp4 and take-02.mp4 using the lines in the example. Relative entries resolve from the list file. Use simple filenames and keep the demuxer’s safe path checks enabled. Run the command in that directory. The -c copy option copies compressed packets into the new file in list order.

Keep the separate takes until you approve the output. If one ends with an unwanted transition frame, or you need overlapping audio at the cut, do that work in an editor. The concat list is for placing existing streams end to end in a defined order.

ffconcat version 1.0
file 'take-01.mp4'
file 'take-02.mp4'

Inspect the join

Play several seconds on either side of the cut. Check for picture jumps, unexpected silence, and drift. Confirm that the duration is close to the sum of the clips and that seeking past the join works. If you keep getting timestamp warnings, check the sources or export the joined material from an editor.

ffmpeg -f concat -i list.ffconcat -c copy joined.mp4

Frequently asked questions

A shared container does not guarantee matching streams. Normalize dissimilar clips first or use an editing workflow that re-encodes them.

You might also like

Host your videos for free and earn from every view

Create your account in under a minute, upload your first video and start earning from day one.