Scales the source to cover 1728×1080 (16:10), then cuts a 1434×1080 window (about 4:3) at an explicit x offset. 147 = (1728 − 1434) / 2, so this window is centered; change the x value to slide it left or right. Useful for framing widescreen footage for 4:3 projection or monitors.
Also in notes/commands2.txt: this command, verbatim, for single files and in a loop.
The command
ffmpeg -i input.mov \
-vf "scale=1728:1080:force_original_aspect_ratio=increase,crop=1434:1080:147:0" \
-r 29.97 \
-an \
-c:v libx264 -crf 18 -preset ultrafast -pix_fmt yuv420p \
output.mp4 What each part does
scale=1728:1080:force_original_aspect_ratio=increase
cover 1728×1080, keeping the aspect ratio
crop=1434:1080:147:0 width:height:x:y of the window to keep
-r 29.97 output at NTSC 29.97 fps
-an drop the audio
-c:v libx264 -crf 18 -preset ultrafast -pix_fmt yuv420p
fast, high-quality H.264 When to use it
Use this script to turn 1080p widescreen footage into a near-4:3 frame at full 1080 height, for 4:3 projectors or monitors. You can also place the window off-centre by editing the x offset. The header explains each flag. Audio is dropped, so it suits picture-only material. If you want a standard-definition 4:3 file, use fill-crop-640x480.sh or fill-crop-720x480.sh instead.
Useful variations:
- Change the crop's x value (147) to slide the window left or right. Raising it moves the window right.
- Change
-r 29.97to match a different target frame rate. - Change
input.movandoutput.mp4to your own file names.
If the framing looks off, check the source's shape. The increase option scales to at least 1728×1080, keeping the aspect ratio. A 16:10 source comes out at exactly 1728×1080, so x=147 centres the window. A 16:9 1920×1080 source stays 1920 wide, so x=147 sits 96 px left of centre. For 16:9 sources, use x=243 to centre the window.
Notes
- Source
- ffmpeg-utilities/ntsc.sh