
-c copy wrote JOINED=12.021333 SIZE_J=269850. Step 5: SUM=12.000000 with DELTA_JOINED_MINUS_SUM=+0.021333. Step 6: mixed 720+1080 still exited 0 (EXIT_MISMATCH=0) under a 1280x720 header. Step 7: bad list path exited 0 (EXIT_BROKEN=0) after Impossible to open, leftover 92089 B. Monospace lines are copied from our lab log. Not a GUI.We have several interview or B-roll clips that share the same camera export: same codec, same resolution, same frame rate. We need one timeline before loudnorm or burn-in, and we want stream copy (no full re-encode). This Guide is the FFmpeg CLI pass we now run: write an ffconcat / file '…' list, join with -f concat -safe 0 -i … -c copy, prove duration versus the sum of parts, then deliberately probe the silent EXIT=0 traps. About eight steps. Each one has a command and a PASS, FAIL, or HOLD call.
Full demuxer scoreboard and the longer write-up live in the companion review: FFmpeg review: concat demuxer lossless join with -c copy. We do not repeat that narrative here.
Test note: November 2, 2026, Asia/Shanghai, Debian GNU/Linux 13 (trixie). FFmpeg/ffprobe 7.1.5-0+deb13u1. Fixture: our own synthetic title-card MP4s (KEEP HOST / KEEP GUEST / WRAP) at 1280×720@30 H.264 + AAC mono: 4.000 + 5.000 + 3.000 s (91,913 / 113,615 / 66,606 B). Not a client recording. We did not test GPU paths, native cross-camera mismatch, or filter-concat ladders.
The checklist
Persona: a creator with multiple same-export clips who wants one file via stream copy. Run the steps in order. Steps 6 and 7 are deliberate FAIL patterns where FFmpeg can still print exit 0. Step 8 is the spaces-in-path control.
| Step | PASS | FAIL | HOLD |
|---|---|---|---|
| 1. FFmpeg version | ffmpeg -version cites a 7.x line you can write down (ours: 7.1.5-0+deb13u1) | Missing binary | Windows / macOS builds (not tested) |
| 2. Probe every segment | Codec, WxH, fps, duration recorded and match across clips (ours: h264+aac, 1280×720@30; 4.000 / 5.000 / 3.000 s) | Guessing geometry; mixed WxH/fps still queued for -c copy | |
| 3. Write ffconcat list | ffconcat version 1.0 plus file '…' lines; paths relative to the list or absolute; spaces quoted | Unquoted spaces; wrong relative root | |
4. Concat demuxer + -c copy | Exit 0; mapping copy/copy; non-empty output (ours: joined_copy.mp4 269,850 B) | Non-zero exit; re-encode when you asked for copy | GPU / NVENC concat (not tested) |
| 5. Duration vs sum | ffprobe duration ≈ sum of parts (ours: SUM 12.000000 → joined 12.021333; delta +0.021333 s; our PASS band abs(delta) < ~0.05 s) | Large gap vs sum; missing a segment | |
| 6. Pitfall mixed resolution | You recognize FAIL: EXIT=0 yet ffprobe still shows first WxH (ours: 720+1080 → 6.021333 s / still 1280×720) | Shipping mixed geometry under stream copy | Cross-camera native files without normalize (not tested) |
| 7. Pitfall bad list path | You recognize FAIL: Impossible to open + demux error; process can still exit 0 with a partial file (ours: leftover 92,089 B ≈ seg_a) | Trusting exit code alone; shipping the leftover | |
| 8. Paths with spaces | Quoted file '…' lines join (ours: joined_spaces.mp4 9.021333 s / 204,512 B / EXIT=0) | Unquoted spaces break the list |
1. Confirm FFmpeg
ffmpeg -version | head -n 5
PASS when the version line is citeable. Our lab: FFmpeg 7.1.5-0+deb13u1. HOLD on Windows / macOS builds (not tested).
- [ ] Version written down
2. Probe every segment before the list
for f in seg_a.mp4 seg_b.mp4 seg_c.mp4; do
echo "=== $f ==="
ffprobe -v error -show_entries format=duration,size \
-show_entries stream=codec_type,codec_name,width,height,r_frame_rate,pix_fmt,sample_rate,channels \
-of default=nw=1 "$f"
done
Same codec + same resolution + same frame rate are required for safe stream copy. Ours: all three h264 + aac mono, 1280×720, 30/1, yuv420p; durations 4.000000 / 5.000000 / 3.000000 s; sizes 91,913 / 113,615 / 66,606 B. PASS when those facts match across clips before you write the list.
- [ ] Codec / WxH / fps identical across segments
- [ ] Durations recorded for the sum check
3. Write an ffconcat list
cat > join_ok.ffconcat <<'EOF'
ffconcat version 1.0
file '../segments/seg_a.mp4'
file '../segments/seg_b.mp4'
file '../segments/seg_c.mp4'
EOF
# Plain file list also works when paths are relative to the list file:
# file 'seg_a.mp4'
Syntax we use: ffconcat version 1.0 and one file '…' line per clip (official Formats concat demuxer page, archived in the concat demuxer review). Quote paths that contain spaces. PASS when the list opens every path from the working directory you will run FFmpeg in.
- [ ]
ffconcat version 1.0present (or plainfilelist) - [ ] Paths quoted when they contain spaces
4. Concat demuxer + stream copy
ffmpeg -y -f concat -safe 0 -i join_ok.ffconcat -c copy joined_copy.mp4
echo exit=$?
stat -c '%s' joined_copy.mp4
Command order we follow: -f concat -safe 0 -i list -c copy. Ours wrote 269,850 B with mapping copy/copy. Non-monotonic DTS warnings at audio joins appeared on this successful run; we treat them as expected warnings, not failure. Plain file '…' list produced the same 12.021333 s / 269,850 B. HOLD: GPU / NVENC concat (not tested).
- [ ] Exit 0; mapping shows copy/copy
- [ ] Output bytes recorded
- [ ] DTS warnings noted without failing the step
5. Prove duration versus the sum of parts
ffprobe -v error -show_entries format=duration,size -of default=nw=1 joined_copy.mp4
python3 - <<'PY'
parts = [4.000000, 5.000000, 3.000000]
joined = 12.021333 # replace with your ffprobe duration
s = sum(parts)
print(f"SUM={s:.6f} JOINED={joined:.6f} DELTA={joined-s:+.6f}")
PY
Ours: SUM 12.000000; joined 12.021333; DELTA +0.021333 s (same order as concat input start -0.021333 AAC priming). Our PASS band: abs(delta) under about 0.05 s on this fixture. Not a platform rule.
- [ ] Sum and joined duration written side by side
- [ ] Delta inside your own band
6. Pitfall: mixed 720p + 1080p under -c copy
# list: seg_a (1280x720) then seg_bad_1080 (1920x1080)
ffmpeg -y -f concat -safe 0 -i join_mismatch.txt -c copy fail_res_mismatch.mp4
echo EXIT_MISMATCH=$?
ffprobe -v error -show_entries stream=codec_name,width,height \
-show_entries format=duration,size -of default=nw=1 fail_res_mismatch.mp4
This is a FAIL pattern to recognize. Ours: EXIT=0; duration 6.021333 s; ffprobe still reported 1280×720 (first SPS). Silent trap: process success does not mean geometry matched. Fix: normalize resolution (or use filter concat / an NLE) before stream copy. HOLD: native cross-camera mismatch without a normalize re-encode (not tested).
- [ ] Ran on a throwaway name; recognized EXIT=0 + wrong WxH
- [ ] Delivery list rejects mixed geometry
7. Pitfall: bad path in the list
ffmpeg -y -f concat -safe 0 -i join_broken.txt -c copy fail_broken_path.mp4
echo EXIT_BROKEN=$?
ls -l fail_broken_path.mp4
# expect: Impossible to open '.../does_not_exist_….mp4'
FAIL pattern. Ours: [concat] Impossible to open '…/does_not_exist_seattle.mp4'; Error during demuxing: No such file or directory; EXIT=0 with leftover partial 92,089 B (≈ seg_a only). Do not ship the leftover. Fix the list and re-run.
- [ ] Recognized Impossible to open + possible EXIT=0 leftover
- [ ] Delivery path verifies every list entry exists first
8. Paths with spaces (quoted)
# ffconcat lines like:
# file '../segments/path with spaces/seattle clip a.mp4'
ffmpeg -y -f concat -safe 0 -i join_spaces.ffconcat -c copy joined_spaces.mp4
echo EXIT_SPACES=$?
ffprobe -v error -show_entries format=duration,size -of default=nw=1 joined_spaces.mp4
Ours: EXIT=0; duration 9.021333 s; size 204,512 B. PASS when quoted paths join. Prefer boring names when you can; quotes work on this Linux box.
- [ ] Spaces path joined or renamed to a simple path
What we saw
All from our November 2, 2026 lab log (evidence/ffmpeg-concat-demuxer/). Same synthetic 720p fixture unless noted.
| Step | What we saw | Call | Where in the evidence |
|---|---|---|---|
| 1 | FFmpeg 7.1.5-0+deb13u1 | PASS | commands.log version header |
| 2 | 4.000000/91913; 5.000000/113615; 3.000000/66606; all 1280x720@30 h264+aac | PASS | commands.log PROBE seg_a/b/c |
| 3 | ffconcat version 1.0 + file lines; spaces list quoted | PASS | lists/join_ok.ffconcat; lists/join_spaces.ffconcat |
| 4 | joined_copy 269850 B; copy/copy; Non-monotonic DTS warnings; plain list same 12.021333/269850 | PASS | commands.log CONCAT SUCCESS; joined_from_listtxt |
| 5 | SUM=12.000000 JOINED=12.021333 DELTA=+0.021333 | PASS | commands.log SUM/JOINED/DELTA lines |
| 6 | EXIT_MISMATCH=0; 6.021333 s; ffprobe 1280x720 | FAIL pattern | commands.log FAIL mixed 720p + 1080p |
| 7 | Impossible to open; EXIT_BROKEN=0; leftover 92089 B | FAIL pattern | commands.log FAIL broken list path |
| 8 | EXIT_SPACES=0; 9.021333,204512 | PASS | commands.log OPTIONAL paths with spaces |
For the longer demuxer notes and the source pages we opened, read the full FFmpeg concat demuxer review.
Download the checklist
Download the FFmpeg concat same-codec checklist (Markdown). Paste the commands, mark PASS / FAIL / HOLD, and keep the ffprobe numbers next to each step before the MP4 leaves your machine.
FAQ
Why did FFmpeg exit 0 on a mixed 720p + 1080p list?
Concat demuxer with -c copy can accept mismatched resolution without failing the process. Our 720p+1080p list exited 0, wrote 6.021333 s, and ffprobe still reported 1280×720 from the first segment SPS. Treat EXIT=0 as incomplete proof; always probe width/height per input first.
The join printed Non-monotonic DTS. Did copy fail?
No. On our successful three-clip copy we still saw Non-monotonic DTS warnings at audio boundaries while mapping stayed copy/copy and the file completed. Treat those lines as expected timestamp adjustments unless playback is broken.
Why is joined duration a little longer than the sum of parts?
Our segments summed to 12.000000 s; joined_copy probed 12.021333 s (delta +0.021333 s), matching the concat input start of -0.021333 from AAC priming on this fixture. We treat abs(delta) under about 0.05 s as PASS for this lab, not a delivery rule.
Do I need ffconcat version 1.0 or a plain file list?
Both worked here. join_ok.ffconcat and a plain file '…' list produced the same 12.021333 s / 269,850 B output. Quote paths that contain spaces. Use -safe 0 when the list points outside a restrictive safe path set.
Where is the longer write-up?
Scoreboard, deliberate failure frames, and source notes live in the companion FFmpeg concat demuxer review. This Guide is the pasteable gate only.
Honest limits
- One synthetic three-clip 720p fixture. Not a real multi-cam interview.
- GPU / NVENC / hardware decode path for concat: not tested.
- Cross-camera native files with different profiles without a normalize re-encode: not tested.
- NLE timeline export quirks (Resolve / Premiere / FCP flags): not tested.
- LosslessCut full GUI join: backlink only; see the LosslessCut interview cut review.
- Filter-concat re-encode quality ladder: not tested (out of scope as the main path).
- Our abs(delta) < ~0.05 s band is a lab threshold, not a platform rule.
Evidence: evidence/ffmpeg-concat-demuxer/ (NOTES, commands.log, lists, outputs, probes), November 2, 2026. Every number on this page appears in that lab log (or the list files it names).
Sources we opened
- FFmpeg Formats - concat demuxer
- Stack Overflow: How to concatenate two MP4 files using FFmpeg?
- Stack Overflow: How to Merge two videos without re-encoding
- Stack Overflow: encoding parameters for lossless concat
- FFmpeg concat demuxer review (companion)
- FFmpeg burn-in SRT checklist
- FFmpeg loudnorm delivery checklist
- LosslessCut interview cut review
Next: after the join lands, run the FFmpeg loudnorm delivery checklist (or the loudnorm interview review for the measured pass), then the burn-in SRT checklist when open captions are required. We do not expand those workflows on this page.