We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
WIDTH
HEIGHT
Maybe it's worth adding this as an option in opposition to :preserve_aspect_ratio?
:preserve_aspect_ratio
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
andHEIGHT
are the final dimensions.Maybe it's worth adding this as an option in opposition to
:preserve_aspect_ratio
?The text was updated successfully, but these errors were encountered: