[MPlayer-users] problem with crop

D Richard Felker III dalias at aerifal.cx
Wed Nov 5 18:13:52 CET 2003


On Wed, Nov 05, 2003 at 11:56:17AM -0300, Cristian Gimenez wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
>  I am trying to crop a video with mencoder. I've found it reports an 
>  error even using data obtained with cropdetect. The strange thing is 
>  that mplayer works ok with the same parameters.
> 
>  Trying this:
>  # mplayer socooo.mpg -vop crop=350:428:0:72,scale -zoom -xy 640
> 
>  It works ok.

Because scale doesn't have to do any scaling because there's hardware
scaling!

>  But trying this:
>  # mencoder socooo.mpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -vop
>  crop=350:428:0:72,scale -zoom -xy 640
> 
>  Mencoder crashes with a "crop: bad position/width/height - cropped
>  area > is out of the original!" message.
> 
> any idea?

Yes, your filters are in the wrong order. Either switch to the modern
syntax (-vf) where they're in the order that makes sense, or else turn
them around!!

Rich



More information about the MPlayer-users mailing list