[MPlayer-users] subtitles placement - -vf expand problem

Alain Barthélemy cassandre at bartydeux.be
Tue Aug 24 08:15:43 CEST 2004


Le lundi 23 août 2004, 14:10:01 ou environ Loren Merritt <lorenm at u.washington.edu> a écrit:
> On Mon, 23 Aug 2004, Alain [iso-8859-15] Barthélemy wrote:
> 
> > This evening I tried with a "cropdetection" of 702:550:10:10
> >
> > # mplayer ... -vf crop=702:550:10:10,scale=576:-2 ...
> >
> > I found a scaling of 576x400
> >
> > Then (after many trial):
> >
> > # mencoder dvd://1 ... -vf crop=702:550:10:10,expand=0:-200:0:0,scale=576:400 ...
> 
> Surely you want
>   -vf crop=702:550:10:10,scale=576:400,expand=...
> if 576x400 are the appropriate dimensions for the video before
> adding borders?
> 
> --Loren Merritt


You are of course right. That's what happen when you work with "hit and try".

Now when you have expand=w:h:x:y

is there a place where the use of "x:y" is described? If I set expand=w:h:0:0,
the image is centered. What I try to do is to eliminate the border at top
position thus to displace the image toward top.

Example:

If I do: ...expand=0:-200:0:0 , I have a border of 100 pixels above and 100
pixels below. I thought it would be easy to move move the image 100 pixeles
toward top with:

... expand=0:200:0:-100

but it is not the case.

I still have problem to understand the exact working of the x:y parameters (not
only with vf -expand).


Hoping to be clear.


-- 
Alain Barthélemy
cassandre at bartydeux.be
http://bartydeux.be
Linux User #315631




More information about the MPlayer-users mailing list