Merge Multiple Videos Into One File (FFmpeg concat)

Concatenate several clips that share the same codec and resolution into a single video file from the command line.

WindowsvideoconversionffmpegLow risk
List your clips in a text file with lines like file 'clip1.mp4', then run ffmpeg -f concat -safe 0 -i list.txt -c copy merged.mp4.

01Command

Command
$ ffmpeg -f concat -safe 0 -i list.txt -c copy merged.mp4

02What it does

Create list.txt in the same folder as your clips, one line per file: file 'clip1.mp4', file 'clip2.mp4', and so on. The concat demuxer stitches the files at the stream level, so -c copy finishes in seconds without any quality loss. The clips must share the same codec, resolution and frame rate; otherwise re-encode them first or use the filter-based concat method from the wiki.

03Risk

RiskLow risk
RequirementsFFmpeg is not preinstalled on Windows — install it first with: winget install --id Gyan.FFmpeg
!Warning: Mismatched clip properties can produce a broken or glitchy merged file — re-encode instead of -c copy when your clips come from different devices.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Concatenating media files
    FFmpeg Trac Wiki · community · 2026-09-17
    Evidence: Documents the concat demuxer (-f concat -safe 0 -i list.txt) and the -c copy no-re-encode merge, plus the re-encode fallback for files with different parameters.

Last verified: 2026-09-18 · Category: Media