[FFmpeg-devel] [PATCH] automatic letterboxing

Michel Bardiaux mbardiaux
Wed Jan 2 13:27:58 CET 2008

Morten Hustveit a ?crit :
> 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.
I find it extremely suspect that the pixel aspect ration does not enter 
into the computations...

Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles

More information about the ffmpeg-devel mailing list