Portrait short-video tools often export 480x854 MP4 files because 854 is the closest even integer to 480 * 16 / 9 (853.33...). That 0.67-pixel difference makes ffprobe report display_aspect_ratio=240:427 instead of 9:16. Some social uploaders accept it as-is, while strict vertical players flag the resolution floor (< 720p) or slightly crop on playback.

Disclosure: I work on the engineering team at AlphaDrama, an AI short-drama creation workspace. When preparing our 3-shot 18.04s vertical test reel (480x854 fast draft export) for vertical platforms that prefer 1080x1920, we checked the container and stream geometry before and after scaling.

Concept diagram note: The cover diagram was generated to illustrate the ffprobe validation flow and is not a product UI screenshot.

1. Measure the source stream first

Run ffprobe with JSON output so you can inspect width, height, sample_aspect_ratio, display_aspect_ratio, r_frame_rate, and duration programmatically:

ffprobe -v quiet -print_format json -show_format -show_streams input-480p.mp4 

In our 18.041667s (5,902,308 bytes) draft export, ffprobe reported:

Field Measured Value (input-480p.mp4)
Resolution 480x854
sample_aspect_ratio 1:1
display_aspect_ratio 240:427 (0.56206)
Video codec / profile h264 High L3.0 (yuv420p)
Frame rate 24/1 (24 fps)
Video bitrate 2,346,435 bps
Audio aac, 48000 Hz, stereo, 264,910 bps

Notice two things:

  1. Pixel aspect ratio (SAR) is already square (1:1), so the mismatch comes purely from even-dimension rounding (854 vs 853.33).
  2. Simply stretching with scale=1080:1920 alters aspect ratio slightly; using increase + crop keeps square pixels (SAR 1:1) and exact DAR 9:16.

2. Upscale cleanly to 1080x1920 with +faststart

If your workflow exports fast 480x854 preview cuts while iterating on scripts and shot transitions, scale once at delivery time using Lanczos filtering and move the moov atom to the front for faster upload validation:

ffmpeg -y -i input-480p.mp4 \ -vf "scale=1080:1920:flags=lanczos:force_original_aspect_ratio=increase,crop=1080:1920,setsar=1" \ -c:v libx264 -profile:v high -level:v 4.0 -pix_fmt yuv420p -crf 18 -preset slow \ -c:a aac -b:a 192k -ar 48000 -ac 2 \ -movflags +faststart \ output-1080x1920.mp4 

Why these flags matter:

  • force_original_aspect_ratio=increase + crop=1080:1920 + setsar=1: Scales proportionally until both dimensions meet or exceed 1080x1920, crops the sub-pixel overhang, and pins SAR 1:1 so DAR becomes exact 9:16.
  • -pix_fmt yuv420p + High@L4.0: Matches broad mobile hardware decoder compatibility for 1080x1920@24fps.
  • -movflags +faststart: Relocates container metadata to the beginning of the MP4 so web uploaders can read dimensions and duration without downloading the entire file first.

3. Re-probe the output to confirm the contract

Running ffprobe again on output-1080x1920.mp4 confirmed:

Field Measured Value (output-1080x1920.mp4)
Resolution 1080x1920
sample_aspect_ratio 1:1
display_aspect_ratio 9:16 (0.56250)
Video codec / profile h264 High L4.0 (yuv420p)
Frame rate / Frames 24 fps / 433 frames
Duration 18.041667s (unchanged)
File size 17,578,891 bytes

Limitations & trade-offs: Spatial upscaling fixes container compatibility (720p+ requirements and exact 9:16 DAR) and sharpens clean edges slightly with Lanczos, but it cannot recover fine texture that was never rendered at 480x854. For final distribution, generate source clips at high resolution when lock-in is done, and keep ffprobe assertions (SAR == "1:1", DAR == "9:16", pix_fmt == "yuv420p") in your export check before uploading.