# FFmpeg concat same-codec checklist (ToolBrivio) Pasteable gate: write an `ffconcat version 1.0` / `file '…'` list, join with `-f concat -safe 0 -i list -c copy`, prove ffprobe duration versus the sum of parts, then FAIL the mixed-resolution and bad-path traps where EXIT can still be 0. Purpose: one timeline from multiple same-codec interview / B-roll clips. Stream copy. Not filter concat. Not loudnorm. Not burn-in. Test basis: ToolBrivio Guide dated 2026-11-02 (Debian 13; FFmpeg/ffprobe 7.1.5-0+deb13u1). Synthetic 1280x720@30 h264+aac segments 4.000 + 5.000 + 3.000 s (91,913 / 113,615 / 66,606 B). **Not a client recording.** Numbers: `/articles/ffmpeg-concat-demuxer-review.html`. Segment codecs / WxH / fps: Sum of part durations: Joined duration / bytes: Mixed-res trap checked (Y / N): Bad-path leftover checked (Y / N): Spaces path checked (Y / N): PASS / FAIL / HOLD: ## 1. Confirm FFmpeg ```bash ffmpeg -version | head -n 5 ``` Lab: FFmpeg 7.1.5-0+deb13u1. HOLD: Windows / macOS builds. - [ ] Version written down ## 2. Probe every segment before the list ```bash 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 ``` Lab: all h264+aac, 1280x720@30; 4.000000/91913; 5.000000/113615; 3.000000/66606. Same codec + same resolution + same frame rate required for `-c copy`. - [ ] Codec / WxH / fps identical - [ ] Durations recorded for the sum check ## 3. Write an ffconcat list ```bash cat > join_ok.ffconcat <<'LIST' ffconcat version 1.0 file '../segments/seg_a.mp4' file '../segments/seg_b.mp4' file '../segments/seg_c.mp4' LIST # Plain file '…' list also worked for us (same duration/size as ffconcat). ``` Lab: `lists/join_ok.ffconcat`. Quote paths with spaces. Companion: `/articles/ffmpeg-concat-demuxer-review.html`. - [ ] `ffconcat version 1.0` (or plain file list) - [ ] Spaces quoted ## 4. Concat demuxer + stream copy ```bash ffmpeg -y -f concat -safe 0 -i join_ok.ffconcat -c copy joined_copy.mp4 echo exit=$? stat -c '%s' joined_copy.mp4 ``` Lab: 269,850 B; mapping copy/copy. Non-monotonic DTS warnings at audio joins on success = expected warning, not failure. Plain list same 12.021333 s / 269850 B. HOLD: GPU / NVENC. - [ ] Exit 0; copy/copy - [ ] DTS warnings noted without failing ## 5. Prove duration versus the sum of parts ```bash ffprobe -v error -show_entries format=duration,size -of default=nw=1 joined_copy.mp4 ``` Lab: SUM 12.000000; JOINED 12.021333; DELTA +0.021333 (AAC priming / concat start -0.021333). **Our** PASS band: abs(delta) under about 0.05 s. Not a platform rule. - [ ] Sum and joined side by side - [ ] Delta inside your band ## 6. Pitfall: mixed 720p + 1080p under -c copy ```bash 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 ``` Lab FAIL pattern: EXIT=0; 6.021333 s; ffprobe still 1280x720. Silent trap. HOLD: cross-camera native mismatch without normalize. - [ ] Recognized EXIT=0 + wrong WxH ## 7. Pitfall: bad path in the list ```bash 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 ``` Lab FAIL pattern: `Impossible to open '…/does_not_exist_seattle.mp4'`; EXIT=0 leftover 92,089 B (~seg_a). Do not ship the leftover. - [ ] Recognized Impossible to open + possible EXIT=0 leftover ## 8. Paths with spaces (quoted) ```bash 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 ``` Lab: EXIT=0; 9.021333 s; 204,512 B. - [ ] Spaces path joined or renamed ## What we saw (lab) | Step | Result | Call | |------|--------|------| | 1 | FFmpeg 7.1.5-0+deb13u1 | PASS | | 2 | 4+5+3 s; 91913/113615/66606; 1280x720@30 | PASS | | 3 | ffconcat version 1.0 | PASS | | 4 | joined_copy 269850 B; copy/copy; Non-monotonic DTS | PASS | | 5 | SUM 12.000000; JOINED 12.021333; DELTA +0.021333 | PASS | | 6 | EXIT_MISMATCH=0; 6.021333 s; still 1280x720 | FAIL pattern | | 7 | Impossible to open; EXIT_BROKEN=0; 92089 B | FAIL pattern | | 8 | EXIT_SPACES=0; 9.021333; 204512 | PASS | ## FAQ ### Why did FFmpeg exit 0 on a mixed 720p + 1080p list? Concat demuxer + `-c copy` can accept mismatched resolution. Ours exited 0, wrote 6.021333 s, ffprobe still 1280x720. Probe WxH per input. ### The join printed Non-monotonic DTS. Did copy fail? No. Successful three-clip copy still warned at audio boundaries; mapping stayed copy/copy. ### Why is joined duration a little longer than the sum? 12.000000 sum vs 12.021333 joined (delta +0.021333). Matches concat start -0.021333 AAC priming here. Our PASS band ~0.05 s abs. ### ffconcat or plain file list? Both produced 12.021333 s / 269,850 B for us. Quote spaces. `-safe 0` when needed. ### Where is the longer write-up? `/articles/ffmpeg-concat-demuxer-review.html`. ## Honest limits - Synthetic fixture only. Not a real multi-cam interview. - GPU / NVENC: not tested. - Cross-camera native mismatch without normalize: not tested. - NLE export quirks: not tested. - LosslessCut GUI: backlink only (`/articles/losslesscut-interview-cut-review.html`). - Filter-concat quality ladder: not tested. - abs(delta) ~0.05 s band is ours, not a platform rule. Evidence: `evidence/ffmpeg-concat-demuxer/` (commands.log, NOTES, lists, outputs), 2026-11-02. Next: `/articles/ffmpeg-loudnorm-delivery-checklist.html` then `/articles/ffmpeg-burn-in-srt-checklist.html` when needed. We do not expand those here.