[PATCH] automatic letterboxing
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.
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 http://www.mediaxim.com/
* Morten Hustveit:
I have attached a patch adding the '-letterbox' option, which will automatically calculate the correct pad band sizes for either letterboxing or pillar boxing.
* Michel Bardiaux:
I find it extremely suspect that the pixel aspect ration does not enter into the computations...
I agree. I have attached a revised patch.
On Wed, Jan 02, 2008 at 01:23:37PM +0100, Morten Hustveit wrote:
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.
sounds like that belongs to libavfilter [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I do not agree with what you have to say, but I'll defend to the death your right to say it. -- Voltaire
participants (3)
-
lists@rashbox.org -
mbardiaux@mediaxim.be -
michaelni@gmx.at