FFmpeg recipe

FFmpeg: Resize a Video to 1080p (1920×1080)

scale=1920:-2 resizes to 1920 wide, height auto-calculated to preserve aspect ratio (rounded to nearest even number for codec compatibility).

Command

ffmpeg -i input.mp4 -vf scale=1920:-2 -c:v libx264 -crf 23 -c:a copy -y output_1080p.mp4
Prefer no terminal?
Use the Resolution Changer in your browser
Open Resolution Changer

What each flag does

-iInput file. Can be a video, audio, or image. Repeat for multiple inputs.
-vfVideo filter chain. e.g. scale=1280:720, crop=, fps=30.
-c:vVideo codec for output. e.g. libx264, libx265, libvpx-vp9.
-crfConstant Rate Factor — quality target (lower = better, larger file). 23 is visually lossless for libx264.
-c:aAudio codec for output. e.g. aac, libmp3lame, copy.
scale=1920:-2Resize to 1920 pixels wide. -2 = auto height, rounded to even number (codecs require even dimensions).

Notes & gotchas

  • Use scale=-2:1080 to lock height instead of width.
  • For aspect-ratio-preserving fit-into-box, use scale='min(1920,iw)':-2.

Related recipes