Edit recipe
Resize Video with FFmpeg
Change video resolution while preserving aspect ratio.
Command
Use this when
- You need a 720p or 1080p version of a video.
- You want to reduce file size by lowering resolution.
- You need to preserve the original aspect ratio.
Customize it
Generate FFmpeg scale commands to change video resolution while preserving aspect ratio when needed.
Open Resize VideoParameter breakdown
scale=-2:720
Sets height to 720px and calculates an even width automatically.
-c:v libx264
Re-encodes the resized video as H.264.
-crf 23
Sets a practical balance of quality and file size.
-c:a copy
Keeps the original audio stream unchanged.