[MPlayer-dev-eng] [PATCH] vf properties
Guillaume Poirier
gpoirier at mplayerhq.hu
Thu Feb 21 10:47:16 CET 2008
Hello,
Alban Bedel wrote:
> Hi all,
>
> Here is a patch adding property support for the vf. Basically vf
> properties are then accessible via: vf/name/prop where name can be:
>
> - i : take the filter at the given index (start at 0)
> - name : take the first filter with the given name
> - name#i: take the i'th filter with the given name (start at 0)
>
> I have only implemented properties for crop and rotate atm. To test you
> can for example add the following to your input.conf:
>
> KP8 step_property vf/crop/y 4 -1
> KP2 step_property vf/crop/y 4 1
> KP4 step_property vf/crop/x 4 -1
> KP6 step_property vf/crop/x 4 1
> KP9 step_property vf/crop/h 0 1
> KP3 step_property vf/crop/h 0 -1
> KP0 step_property vf/crop/w 0 -1
> KP_DEC step_property vf/crop/w 0 1
>
> And you should be able to manipulate the crop filter with the numpad.
>
> To test internaly setting properties I also added some code to allow
> cropdetect to automatically set the crop filter. To test use
> -vf cropdetect=24:0:1,crop (the third parameter enable autosetting
> crop).
Looks like, ultimately, my old dream may come true: being able to to
expand the video window on-the-fly so that I can put the subtitles on
the back border. Awesome work Alban!
You're the living proof that France isn't only all about bling-bling
these days ;-)
Guillaume
More information about the MPlayer-dev-eng
mailing list