Creators · 4 min read

Stretched gameplay recording? Read the pixel aspect before resizing

Separate a distorted picture from a cropped field of view. Three measured files show when square pixels preserve the intended shape of a gameplay export.

No spoilers
Updated Published By the gtavids editors
An editing suite with multiple monitors and video controls

A stretched gameplay recording needs a shape check before you crop anything. Read the stored width and height, sample aspect ratio and display aspect ratio, then compare a familiar shape in the original with the same shape in the export. Our calibration file stored 160 by 120 pixels and called for a 16:9 display. Resetting its sample aspect to square without resizing made its declared shape 4:3. Resizing the picture to 320 by 180 and declaring square pixels kept the intended 16:9 shape. Both operations sound like a square-pixel fix. They give different pictures to the editor.

File in our comparison Stored grid Sample aspect Declared display
Wide-pixel source 160 × 120 4:3 16:9
Square-pixel reset only 160 × 120 1:1 4:3
Resized square-pixel copy 320 × 180 1:1 16:9

Check whether the frame still contains the same things

Find a frame where you can recognize both the edge and center of the recording. A route diagram with a circular marker is more informative than a tilted wheel seen from across a road. Compare the same frame in the original, the editor and the delivered clip. Look at the marker's shape. Then look for the leftmost and rightmost objects that were visible in the original. Those observations answer different questions.

If the marker has become narrow while the same objects remain at the edges, investigate picture geometry. If the marker keeps its shape but a turn indicator disappears off one side, part of the picture may have been cropped. Changing the pixel aspect cannot restore pixels that have already been cut away. The vertical minimap guide compares a crop with a fit when the goal is to preserve the field of view in a portrait edit. If bars appeared but the objects and shapes remain intact, you may simply be seeing a correctly fitted picture on a differently shaped canvas.

Do the arithmetic on the original first

The term sample aspect ratio, often abbreviated SAR, describes the width of a displayed sample relative to its height. With square samples the ratio is one. Display aspect ratio, DAR, describes the whole picture. Multiply the stored width divided by the stored height by the sample aspect ratio. In our original the stored grid gave 160 divided by 120, or four thirds. Multiplying four thirds by the declared sample ratio of four thirds gives sixteen ninths.

Read these values from the original and the affected export. The following command prints the fields together for the first video stream. Run it once for each file, changing the quoted filename. FFprobe documents stream inspection.

ffprobe -v error -select_streams v:0 -show_entries stream=width,height,sample_aspect_ratio,display_aspect_ratio -of json "original.mkv"

Do not guess a missing sample ratio from the title of the recording. The file could be an earlier export from a capture device, an already composed stream with bars, or a screen recording of a player window. A blank field limits what you can conclude. The source creator's original export settings or a reference picture of known shape are stronger evidence. A familiar game's usual presentation alone does not identify the layout of someone else's edited video.

Test the two square-pixel choices

Start with a few seconds in a separate directory. The following commands show the two treatments for our 16:9 test source. They deliberately set aside audio and encode losslessly in order to isolate the picture decision. The dimensions in the second command are for this small exercise. Choose dimensions appropriate to your real source and delivery target. The FFmpeg filter reference explains both scaling and setting the sample aspect ratio.

ffmpeg -i "wide.mkv" -map 0:v:0 -an -vf "setsar=1" -c:v ffv1 "reset.mkv"
ffmpeg -i "wide.mkv" -map 0:v:0 -an -vf "scale=320:180,setsar=1" -c:v ffv1 "resized.mkv"

The reset file has the original number of samples in each direction. Reading those samples as square changes the intended picture shape. The second example resamples onto a rectangular grid that already has the target display proportions when interpreted with square samples. Doubling both input dimensions would give 320 by 240 and leave the same underlying problem if you simply declared that output square. Picking a larger number of samples increases the size of the file or image without necessarily fixing its shape.

Where the repair should live

If the original plays correctly in a player that honors its metadata, keep the original and change the interpretation in the editor or make an understood square-pixel editing copy. If the original itself is tagged incorrectly, use independent evidence to establish its intended shape before changing its metadata. If the distortion is already burned into a composition with graphics over it, the game image and the graphics can need different treatment. Scaling everything until the game looks right can turn previously round overlay elements into ovals.

For a highlight intended for a phone, first establish a correctly proportioned landscape master. Fit or crop that master on the portrait canvas afterward. This gives you a checkpoint where you can explain either decision independently. Inspect a circle or other known shape again after the final export. Check that the corners still contain the cues a viewer needs, such as the next junction on a GTA VI route clip. Bring back the wanted audio tracks on the delivery export and play the file outside the editing timeline.

Frequently asked questions

Can a 160 by 120 picture display at 16:9?

Yes. A sample aspect ratio of 4:3 makes its intended display aspect 16:9. Stored width and height describe only the sample grid.

Should every recording be forced to 16:9?

Use the intended source shape. A portrait, ultrawide or already letterboxed recording requires its own reference.

Why did a square-pixel reset squeeze the picture?

The reset changed the interpretation without adding horizontal samples. Resize to the intended display shape before declaring square pixels.

Keep reading

All articles →
Make a clip

Turn your GTA 6 stream into Shorts and TikToks.

Have a finished Twitch broadcast you own or have permission to edit? Oakgen, our clipping partner, can scan it for highlights.

Make a clip →