[MPlayer-users] buggy -vop crop

Fredrik Kuivinen freku045 at student.liu.se
Sun May 5 02:20:02 CEST 2002


On Sun, May 05, 2002 at 01:30:12AM +0200, Arpi wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hi,
> 
> > x540. If I really need scaling to adjust for the original Movie-Aspect being
> >  1.33:1, then I guess I need an output of 360x270 or something? Actually, no
> >  matter how much I crop the video, I always get a 720x540 output.
> > 
> > $ mplayer -vop crop=360:240:0:0 pearl_harbor_soundtrack.mpeg
> 
> > VO: [xv] 360x240 => 720x540 Planar YV12 
> 
> mplayer -vop crop=360:240:0:0 -x 360 -y 240 pearl_harbor_soundtrack.mpeg
> 
> so, use -x -y to tell the vo driver the wanted window size...
> it defaults to the original movie size (yea i know it should defaults to
> the cropped size etc but it isn't posisble ATM)
>

Isn't it just doing something like 

float h_scale = d_width / width;
float v_scale = d_height / height;

vf_next_config(..., crop_width * h_scale, crop_height * v_scale, flags, outfmt);

in config in vf_crop? Or am I missing something?

/ Fredrik




More information about the MPlayer-users mailing list