A common usecase might be to force image/video dimensions (to fit a given container on a webpage e.g.). This may require a crop. My command atm is:
ffmpeg -i input.mov \
-vf "scale=(iw*sar)*max(WIDTH/(iw*sar)\,HEIGHT/ih):ih*max(WIDTH/(iw*sar)\,HEIGHT/ih), crop=WIDTH:HEIGHT" \
output.mov
where WIDTH and HEIGHT are the final dimensions.
Maybe it's worth adding this as an option in opposition to :preserve_aspect_ratio?
A common usecase might be to force image/video dimensions (to fit a given container on a webpage e.g.). This may require a crop. My command atm is:
ffmpeg -i input.mov \ -vf "scale=(iw*sar)*max(WIDTH/(iw*sar)\,HEIGHT/ih):ih*max(WIDTH/(iw*sar)\,HEIGHT/ih), crop=WIDTH:HEIGHT" \ output.movwhere
WIDTHandHEIGHTare the final dimensions.Maybe it's worth adding this as an option in opposition to
:preserve_aspect_ratio?