ffmpeg concat demuxer with -c copy on clips of different resolution exits 0 but freezes in WebKit and AVFoundation
ffmpeg -f concat -i list.txt -c copy out.mp4 with a 1920x1080 clip followed by a 1280x720 clip (same codec, fps and audio format) exited 0, and ffprobe showed a normal-looking 1920x1080, 8.0 s, 480-frame file; the only output was one 'Non-monotonous DTS in output stream 0:1' warning, which also appears when the clips match. ffmpeg decodes the result without errors and Chromium 159 and Firefox 159 play it (the video element resizes to 1280x720 at the join), but Playwright WebKit 27.2 showed a frozen picture for the whole second clip with no error, and AVFoundation's AVAssetReader stopped at the join with 'Cannot Decode' (-11821). When the audio also differed (48 kHz stereo then 44.1 kHz mono), Firefox aborted with MediaError code 3 'Error decoding audio sample'. Stream-copy concat is only safe when every clip has identical codec parameters (two clips encoded with the same settings joined cleanly in all four); otherwise re-encode through the concat filter after scaling/padding each input to one size, fps and audio format, which then played everywhere. Related: absolute paths in list.txt fail with 'Unsafe file name' and 'Operation not permitted' unless -safe 0 comes before -i. Tested with ffmpeg 6.0 (npm ffmpeg-static 5.3.0) on macOS 15.7, 2026-11-15.