Tool

Can You Join Videos Without Re-encoding? ffprobe Paste Compatibility Checker

Did joining several videos with ffmpeg -f concat -c copy end in an error like ‘Stream codec does not match’? Paste the ffprobe output of the files you want to join and this tool shows in a table which file differs and in what, then builds the command that matches only the files that differ, along with a list.txt. The input is analyzed only inside this browser.

Run ffprobe -hide_banner clip.mp4 on each file and paste the outputs one after another. The files are split at the Input #0 … from 'name': lines. Pasted text is not sent to a server.

What has to match to join without re-encoding

FFmpeg’s concat demuxer joins the compressed packets inside the files as they are. Because it doesn’t decode and rebuild the video, quality stays identical and it is fast, but in exchange it treats the result as a single stream and interprets the whole thing with the configuration data of the first file. So the streams’ ‘specs’ must be the same in every file. This tool compares the items below.

  • Blocking (✕): number of video and audio streams, video codec, resolution, pixel format (chroma subsampling and bit depth), audio codec, sample rate and channels. If any one of these differs, the tool judges that -c copy can’t join the files.
  • Warning (△): profile, frame rate, pixel aspect ratio (SAR), time base (tbn), color info, codec tag and container. The joined file is created, but these are differences that can cause problems in players and editors.

This split is the criteria this site put together from the FFmpeg concat documentation and widely shared experience. It doesn’t guarantee that a difference in one of these items always fails, or that identical items always succeed, so play the result yourself to check.

How to get the ffprobe output

  1. For each file you want to join, run ffprobe -hide_banner clip.mp4. The screen shows an Input #0 … from 'clip.mp4': line and Stream #0:0 … Video: … lines.
  2. In PowerShell you can collect them all at once with something like Get-ChildItem *.mp4 | ForEach-Object { ffprobe -hide_banner $_.Name 2>&1 }. ffprobe sends this information to the error output (stderr), so 2>&1 is needed.
  3. Paste the whole text and the tool splits it into files at each Input # line. Even if a line is missing, a stream number that appears again is treated as a new file.

How to read the result

  • Reference file (★): the reference is the configuration shared by the most files on all the blocking items. If there is a tie, it is the file pasted first. The other files are compared against it. Note, though, that the concat demuxer itself uses the first file in the list as its reference, so if the reference file isn’t on the first line, check the order in list.txt.
  • Step 1 command: re-encodes only the files that differ from the reference. If the video matches it uses -c:v copy, and if the audio matches it uses -c:a copy, which keeps the loss to the smallest scope. The quality target such as -crf 18 is just a starting value, so pick it with the CRF recommender.
  • Step 2 command: writes one file per line in list.txt and joins them with -f concat -safe 0 -c copy. Files that were matched go in under a norm_N name.

Examples of use

  • Smartphone and action cam footage into one video: if the resolution or fps differ, you get ✕. Look at which side is the minority and match only that side to the reference, and the rest isn’t re-encoded.
  • Only the audio differs: if only the sample rate differs (for example 44100 Hz and 48000 Hz), the tool outputs a command that keeps the video with -c:v copy and re-encodes just the audio.
  • The joined result stutters or drifts out of sync: look at the warning items (fps, tbn). You can also check whether frame rates are mixed with the variable frame rate detector.
  • An error has already occurred: paste the terminal log into the FFmpeg error log explainer, and check each file’s codec information in the video file info inspector.

Limits worth knowing

  • It only compares the ffprobe summary lines. It can’t see inside the bitstream (SPS/PPS, GOP structure, keyframe positions). Even when the verdict is ‘possible’, FFmpeg may still report an error or the picture may glitch briefly at a seam.
  • Only the first video and first audio stream are compared. Even when the stream counts match, the second and later tracks are not compared. Subtitle and data tracks are not part of the verdict.
  • It reads only the default text output. -show_streams, JSON output and MediaInfo format can’t be read. Codec names are compared exactly as FFmpeg writes them (h264, hevc, aac and so on).
  • The re-encode commands are examples. They match the reference file’s profile (for H.264, only some), pixel format, fps, resolution and audio settings, but they don’t make the level or encoder fine-tuning options identical. A time base (tbn) difference is not fixed by the command.
  • It doesn’t calculate quality loss or time. To avoid making up numbers, this tool doesn’t estimate file size, VMAF or elapsed time. Gauge re-encoding speed separately with the encode time estimator and quality with the VMAF score interpreter.
  • If a file name contains quotes or special characters, check list.txt and the commands once before running them. The input is never sent to a server, so if a file path contains personal information, you can remove it before pasting.