[FFmpeg-devel] [PATCH] automatic letterboxing

Morten Hustveit lists
Wed Jan 2 13:23:37 CET 2008


Hi,

I am converting some oddly shaped videos into a common resolution, and need to
add pad bands around the image to preserve image aspect ratio.  As far as I can
tell, ffmpeg does not currently support calculating pad band sizes
automatically.

I have attached a patch adding the '-letterbox' option, which will automatically
calculate the correct pad band sizes for either letterboxing or pillar boxing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: letterbox.patch
Type: text/x-diff
Size: 2883 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080102/46854fee/attachment.patch>



More information about the ffmpeg-devel mailing list