[MPlayer-users] Segfault in mencoder when using -vop scale

Stephen Mollett molletts at yahoo.com
Mon Feb 24 12:33:46 CET 2003


Hi,

I'm trying to encode a video clip to mpeg4, and I'd like to reduce the size 
from 696x488 (the active image area that I get from my TV card) to 640x448 or 
perhaps smaller (I'll see how the quality comes out and tweak as necessary).

mencoder works fine at full resolution:

mencoder -ovc lavc -lavcopts \
vcodec=mpeg4:vbitrate=800:vhq:v4mv:qpel:precmp=2:cmp=2:subcmp=2:\
vb_qfactor=1.25:vb_qoffset=0.6:vmax_b_frames=1:vpass=1 -nosound \
-vop crop=696:488:20:44,pp=ci -o cardiff1-divx.avi cardiff1.avi

but when I put in a scale option:

mencoder -ovc lavc -lavcopts \
vcodec=mpeg4:vbitrate=800:vhq:v4mv:qpel:precmp=2:cmp=2:subcmp=2:\
vb_qfactor=1.25:vb_qoffset=0.6:vmax_b_frames=1:vpass=1 -nosound \
-vop scale=640:448,crop=696:488:20:44,pp=ci -o cardiff1-divx.avi cardiff1.avi

I get the following output:

=== Begin MEncoder output dump

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


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

CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': 
No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 50 audio & 135 video codecs
File not found: 'frameno.avi'
Reading config file /root/.mplayer/mencoder: No such file or directory
success: format: 0  data: 0x0 - 0x22B00000
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO:  [MJPG]  720x576  24bpp  25.00 fps  20940.3 kbps (2556.2 kbyte/s)
[V] filefmt:3  fourcc:0x47504A4D  size:720x576  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: [scale=640:448]
Opening video filter: [crop=696:488:20:44]
Crop: 696 x 488, 20 ; 44
Opening video filter: [pp=ci]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Writing AVI header...
VDec: vo config request - 720 x 576 (preferred csp: Planar 422P)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 5
SwScaler: reducing / aligning filtersize 6 -> 5

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (640x448 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Segmentation fault

=== End MEncoder output dump

I compiled mplayer/mencoder with default CFLAGS (as supplied by configure) 
from the official mplayerhq.hu source distribution.

I've tried playing around with the format= option in case it was related to 
the codec's input format but this made no difference.

Has anyone else seen this / does anyone know a workaround?

Stephen



More information about the MPlayer-users mailing list