[MPlayer-dev-eng] problem with crop

Alejandro Néstor Vargas anv at xnetcuyo.com.ar
Tue Nov 4 21:14:36 CET 2003


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.

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.

A test mpg file for trying it is at www.xnetcuyo.com.ar/socooo.mpg (4 
minutes, 40Mb)

Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MEncoder 0.90-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, 
Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /root/.mplayer/codecs.conf: can't open 
'/root/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 50 audio & 136 video codecs
File not found: 'frameno.avi'
Reading config file /root/.mplayer/mencoder: No such file or directory
success: format: 0  data: 0x0 - 0x25A35D2
AVI file format detected.
VIDEO:  []  352x576  24bpp  25,00 fps  1118,4 kbps (136,5 kbyte/s)
VIDEO:  MPEG2  352x576  (aspect 2)  25,00 fps  2000,0 kbps (250,0 kbyte/s)
[V] filefmt:3  fourcc:0x10000002  size:352x576  fps:25,00  ftime:=0,0400
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [crop=350:428:0:72]
Crop: 350 x 428, 0 ; 72
Opening video filter: [scale]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 576 (preferred csp: Mpeg PES)
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
VDec: vo config request - 352 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 6 -> 5
SwScaler: reducing / aligning filtersize 6 -> 5

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
crop: bad position/width/height - cropped area is out of the original!
FATAL: Cannot initialize video driver.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg12] vfm:ffmpeg (FFmpeg MPEG 1/2)
==========================================================================
audiocodec: framecopy (format=50 chans=2 rate=44100 bits=16 bps=24000 
sample=1)
Writing AVI header...
VDec: vo config request - 352 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
crop: bad position/width/height - cropped area is out of the original!
FATAL: Cannot initialize video driver.
init_vo failed
Pos:   0,0s      2f ( 0%)   0fps Trem:   0min   0mb  A-V:0,004 [0:0]
1 duplicate frame(s)!
Pos:   0,0s      3f ( 0%)   0fps Trem:   0min   0mb  A-V:0,008 [0:0]
1 duplicate frame(s)!
Segmentation faultf ( 0%)   0fps Trem:   0min   0mb  A-V:0,011 [0:0]

>>> BAD

-- 
Alejandro Néstor Vargas
Departamento de Desarrollo
X Net Cuyo S.A.
e-mail: anv at xnetcuyo.com.ar
Jabber: anv at xnetcuyo.com.ar



More information about the MPlayer-dev-eng mailing list