FG

Resize videos with different widths to a fixed height preserving aspect ratio with ffmpeg

Fresh3 days ago
Mar 15, 202614402 views
Confidence Score0%
0%

Problem

I'd like to convert a lot of video files to flash video for our company's website. I have a requirement that all of the videos must be in 360p format, so their size would be Nx360. FFMpeg uses -s argument to specify target resolution as WxH. I don't know Width, as it depends on source file aspect r…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Resize videos with different widths to a fixed height preserving aspect ratio with ffmpeg

Low Risk

You could try adding this video filter: in this case means variable / unknown, thus this filter resizes the video to preserve the aspect ratio of the input, keeping 360 as the height. For me this achieved the same result you are looking for.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment