[FFmpeg-devel] [patch] pixel vs aspect ratio behaviour

Michael Niedermayer michaelni
Wed May 28 01:35:39 CEST 2008


On Sat, May 24, 2008 at 02:01:53AM +0100, vmrsss wrote:
> Hello.
>
> 	I think ffmpeg could be improved re the subject. Currently ffmpeg 
> preserves (display) *aspect* ratio when resampling, and this is indeed 
> extremely reasonable. However, it does so also when cropping and/or 
> padding, and this is the wrong behaviour: cropping and padding should 
> preserve the *pixel* ratio, and not the *aspect*. Because by cropping 
> (padding) one typically wants to chop away (extend) parts of the frame, not 
> to change shapes in it (exactly as when scaling one typically wants to 
> change the frame size, not shapes).
>
> (Incidentally: the current incarnation of avfilter always preserves the 
> pixel aspect ratio, also in the case of scale=....)

Code which will be replaced by avfilter will be rejected unless its a security
fix.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080528/da1e6280/attachment.pgp>



More information about the ffmpeg-devel mailing list