[MPlayer-dev-eng] [PATCH] video filter: aspect correction

D Richard Felker III dalias at aerifal.cx
Tue Dec 17 20:42:24 CET 2002


On Tue, Dec 17, 2002 at 10:44:38AM +0100, Diego Biurrun wrote:
> On Tue, Dec 17, 2002 at 01:30:35AM +0100, Christian Ohm wrote:
> > the name is a bit long, feel free to change it if you can think of
> > a better one. (see filter.diff and vf_aspectcorrection.c).
> 
> What about vf_aspect (and aspect=f)?  After all it sets the aspect to a
> value you specify, doesn't it?  The correction is just what you use it
> for...

I would love to have such a filter. -aspect, -x, -y, ... just don't
work well when you have a filter chain that's alterring the image
size. I'd like to be able to set the final desired aspect and not
worry about having to compute the initial aspect every time I play a
movie. For example, playing a 400x300 movie to tv out (640x240) with
g200, I'd like to use:

-vop aspect=4:3,format=yuy2,scale=400:240

I'd be happy to implement vf_aspect.c if it's a desirable feature. I
just figured before that I was probably the only person who wanted it
and that someone would complain that it's useless.

BTW, it might be even better to have vf_dsize.c (display size) that
treats its argument as an aspect if it just gets one number or as
width and height if it gets two. This would require passing aspect as
4/3 rather than 4:3 but that's probably no problem. Or they could be
two separate filters.

BTW2, I could use some help getting slices passing through this if I
write it...

Rich





More information about the MPlayer-dev-eng mailing list