FRAMEFIELDOpen the video merger

How to Check Pixel Shape Before Merging Videos

When two clips have the same stored width and height but one looks stretched, check sample aspect ratio (SAR). Convert both clips to square pixels while preserving their displayed shape, then choose a shared canvas before you merge videos online.

Explore Clipy’s online video tools (affiliate link)

Measured clips

FFmpeg decoded 48 frames from each of two 160 × 120 MP4 inputs made with the same test pattern. The wide input reported SAR 4:3, and the square input reported SAR 1:1. The displayed width of the wide input at a height of 120 is 160 × 4 ÷ 3, or about 213.3. The square input stays 160 pixels wide at the same height. Comparing stored dimensions alone treats these inputs as equal even though their displayed shapes differ.

For the wide input, I rescaled all 48 frames onto a 214 × 120 grid and set SAR to 1:1. FFmpeg decoded all 48 output frames at the new dimensions. The output display ratio is 214 ÷ 120, about 0.31% wider than the input display ratio of 16 ÷ 9. That difference comes from rounding to a nearby even width for this encode. A square-pixel canvas of 224 × 126 would preserve the exact 16:9 ratio if you can also change the height.

Decoded frames and pixel shape
  • Wide input → 160 × 120, SAR 4:3, 48 frames
  • Square input → 160 × 120, SAR 1:1, 48 frames
  • Normalized wide output → 214 × 120, SAR 1:1, 48 frames

Reproduce the check

Run node reproduce.cjs with FFmpeg on your PATH or set the FFMPEG environment variable to its executable. The script generates the two inputs and the normalized output, then reads the frame records from FFmpeg showinfo. Use the same filter on your own clips to check the decoded dimensions and SAR.

Reproduction script · Measured output