Cool. Thanks. So then, what command line would you add in order to activate that filter? Or more specifically, what would the code be if I wanted to lock the output width to 640 pixels, and have the height determined by the aspect ratio of the source file?
On Thu, Feb 25, 2010 at 9:55 AM, slippyr4 <[email protected]> wrote: > > > > > > If that can't work, I am trying to figure out how to not distort the > aspect > > ratio of the source video. If my source video is 16:9, and I encode it to > a > > preset that is 4:3, I want it to letterbox the video (place black bars on > > top and bottom). I don't want it to stretch the video to the edges so > that > > everyone looks twice as tall. > > > > i know nothing about winff, but you can scale maintaining aspect ratio > specifying only one dimension with the scale filter in libavfilter. This is > not integrated into the main repo yet, so you would need to build your own > ffmpeg (or find a win32 binary) with libavfilter support to get that to > work. > > i would guess the reason that main ffmpeg doesn't do what you want is that > not all pixels are square - therefore picture aspect ratio is not the same > as width/height. That's why libav* maintain aspect ratio and frame size > quite separately. > > jon > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
