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.mp4Prefer no terminal?
Use the Resolution Changer in your browser
What each flag does
| -i | Input file. Can be a video, audio, or image. Repeat for multiple inputs. |
|---|---|
| -vf | Video filter chain. e.g. scale=1280:720, crop=, fps=30. |
| -c:v | Video codec for output. e.g. libx264, libx265, libvpx-vp9. |
| -crf | Constant Rate Factor — quality target (lower = better, larger file). 23 is visually lossless for libx264. |
| -c:a | Audio codec for output. e.g. aac, libmp3lame, copy. |
| scale=1920:-2 | Resize 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
Crop to 9:16 · Any video
Crop a 16:9 video to 9:16 vertical with FFmpeg crop filter. Centered crop for TikTok, Reels, Shorts.
Change frame rate · Any video
Change the frame rate of any video with FFmpeg fps filter. Simple drop / duplicate for safe FPS conversion.
Speed up 2x · Any video
Speed up a video 2× (or any factor) with FFmpeg. Uses setpts for video and atempo for audio without pitch shift.
Reverse a video · Any video
Reverse video and audio with FFmpeg using reverse + areverse filters. Useful for boomerangs and easter eggs.