FRAMEFIELDOpen the video merger

How to Check Video Luma Range Before Merging

If contrast jumps at a cut between clips that should match, compare the declared color range and the decoded luma values. A range label can change without changing any pixels. Test with a known black and white reference before correcting a clip.

Explore Clipy’s online video tools (affiliate link)

Measured comparison

We generated one 64 by 32 frame in FFmpeg with neutral chroma and a vertical split. The left half used luma code 0 and the right half used code 255. The script read the first 2,048 bytes of the decoded planar frame, which contain only luma. It sampled the two outer ends of the first row and hashed the whole luma plane.

  • Full range source → black 0, white 255
  • Limited range label only → black 0, white 255
  • Full to limited conversion → black 16, white 235
Each row uses the same input frame. The numbers are decoded sample codes.

Changing only the label left both patches and the entire luma hash identical. The conversion changed both patches and produced a different hash. In this controlled frame, a metadata-only fix would therefore leave the extreme values untouched, while the conversion would move black up by 16 codes and white down by 20. We measured a local FFmpeg pipeline, so these values describe that pipeline.

Check your clips

Use a frame with the same reference patches in both clips. Camera scenes can contain dark grays or muted highlights, so a minimum or maximum from unrelated footage cannot establish the intended range by itself. If the patches disagree, compare them again after a short test export.

Run node reproduce.cjs with FFmpeg on your PATH, or set FFMPEG to its executable path. Download the reproduction script and measured results.

When the test cut looks right, merge your videos online.