Skip to content
New issue

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

Add option to scale video to fit in box #46

Open
seeeeew opened this issue Mar 10, 2024 · 0 comments
Open

Add option to scale video to fit in box #46

seeeeew opened this issue Mar 10, 2024 · 0 comments

Comments

@seeeeew
Copy link

seeeeew commented Mar 10, 2024

Most of the time when I rescale a video, I want it to fit inside a box so that the aspect ratio of the original video is kept and neither dimension of the output video is larger than the box I specified. Currently FFmpeg Commander seems to only be able to fit the video to either the specified width or height, but not both at the same time. I'm using -vf "scale=w='min($WIDTH,iw)':h='min($HEIGHT,iw)':force_original_aspect_ratio=decrease" to achieve this. Would be cool if this could be added to the tool as well.

Here's the relevant documentation: https://trac.ffmpeg.org/wiki/Scaling#FittingintoaRectangleStatically-sizedPlayer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant