[MPlayer-users] Mencoder Seg Fault with specific videos

Adam McCann adam.mccann at pro-g.co.uk
Mon Feb 26 01:22:26 CET 2007


Hi,

Whilst using mencoder I'm receiving a seg fault during the first few 
minutes of encoding specific files.  I have ruled out the hardware / os 
and my conclusion is that the software is at fault, whether it be 
mencoder or the codec.

The format of the source videos causing the segfault seem to be varied - 
so far a WMV9 file as well as a quicktime file has caused a crash.  
Several videos are encoded on the system daily, and have been for two 
weeks, with only 2 videos suffering this problem so far.

Core dump available if needed.  Help would be appreciated on this issue, 
thanks in advance.  Environment information as well as the output can be 
seen below:

System/Version Info:
--------------------

MPlayer dev-SVN-r21889-3.4.4

Kernel: FreeBSD 6.2-STABLE i386
Libc: May  7  2006 /lib/libc.so.6
gcc: gcc version 3.4.4 [FreeBSD] 20050518
ld: GNU ld version 2.15 [FreeBSD] 2004-05-23
binutils: GNU assembler 2.15 [FreeBSD] 2004-05-23

Output:
-------

mencoder "video.wmv" -of lavf -oac mp3lame -lameopts cbr:br=56 -ovc lavc 
-af lavcresample=22050 -lavfopts 
i_certify_that_my_video_stream_does_not_use_b_frames -mc 0 -lavcopts 
vcodec=flv:keyint=15:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:cmp=2:subcmp=2:preme=2:vbitrate=700 
-vf scale=528:297,harddup -ofps 30 -o "video.flv"

MEncoder dev-SVN-r21889-3.4.4 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Xeon(TM) CPU 3.40GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 0  data: 0x0 - 0x61f3934
ASF file format detected.
VIDEO:  [WMV3]  1280x720  24bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:6  fourcc:0x33564D57  size:1280x720  fps:30.00  ftime:=0.0333
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.80% (ratio: 12003->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
** MUXER_LAVF 
*****************************************************************
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will 
generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [scale w=528 h=297]
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0   size:2764800  align:1
StreamCount r=0x0  1  1
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 
RGB565 RGB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 1280 x 720 (preferred colorspace: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 11 -> 12
SwScaler: reducing / aligning filtersize 11 -> 12
SwScaler: reducing / aligning filtersize 11 -> 10
SwScaler: reducing / aligning filtersize 11 -> 10
SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX2
SwScaler: using n-tap MMX scaler for horizontal luminance scaling
SwScaler: using n-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
SwScaler: 1280x720 -> 528x298
videocodec: libavcodec (528x298 fourcc=31564c46 [FLV1])
[VE_LAVC] High quality encoding selected (non-realtime)!
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
MP3 audio selected.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. Do not report crashes to FFmpeg developers.
VIDEO CODEC ID: 22
AUDIO CODEC ID: 15001, TAG: 0
Writing header...
Pos:   8.3s    250f ( 2%) 40.62fps Trem:   4min  31mb  A-V:0.000 [689:55]
4 duplicate frame(s)!
Pos:  19.4s    577f ( 5%) 25.25fps Trem:   6min  54mb  A-V:0.000 [1299:55]
36 duplicate frame(s)!
Pos:  20.6s    579f ( 6%) 24.80fps Trem:   5min  52mb  A-V:0.000 [1245:55]
1 duplicate frame(s)!
Segmentation fault (core dumped)ps Trem:   3min  42mb  A-V:0.000 [1219:55]




More information about the MPlayer-users mailing list