[FFmpeg-user] Regarding video compression

Michael Koch astroelectronic at t-online.de
Tue Oct 5 10:22:41 EEST 2021


Am 05.10.2021 um 09:07 schrieb Shailesh kumar Dangi via ffmpeg-user:
> Yes, In the input video contains some black space around the video as you
> can see in the attachment below.
> If we pass the scale "-vf scale=1920:1080" then the video will be stretched.
> if we do not pass the scale. The scale will swap I mean 1080:1920.
>
> [image: Screenshot 2021-10-05 at 12.33.20 PM.png]
>
> Do we have any solutions for this?

I don't think that the input video contains black spaces. The input 
video is 1920x1080 and it has "rotate=90" set in the metadata. That's 
why FFmpeg rotates the video and the output is 1080x1920 and there are 
no black spaces in the output.
If you don't like this output, what do you want instead? Do you want to 
cut off the top and botton part? Then you must use the crop filter.

Michael



More information about the ffmpeg-user mailing list