opkgang.blogg.se

Ffmpeg scale and crop
Ffmpeg scale and crop





ffmpeg scale and crop ffmpeg scale and crop ffmpeg scale and crop

To explain: under the -vf option, I specified several video filters. I consulted several Web sites, and eventually constructed the following command: ffmpeg -i input.mp4 -vf "crop=1760:1080:80:0,scale=1920:1080,setdar=16:9" -c:a copy output.mp4 My tool of choice, of course, was ffmpeg, but I had to find the right combination of command-line parameters. I wanted to correct this distortion and re-encode the resulting video using the standard 1920x1080 square pixels. Thus, the image was distorted to the tune of 12:11. Taking a screenshot of something that was supposed to be circular (a company logo during the end credits), I saw that the logo was 132 pixels wide by 144 pixels tall. Recently, I came across a curious problem: an HD video recording that had the right aspect ratio (1920x1080 square pixels), but in which the actual content was encoded such that everything was squished a little.







Ffmpeg scale and crop