[MPlayer-users] Seg Fault in mencoder

Harry Gunnarsson mrharryg at gmail.com
Wed Mar 5 14:50:21 CET 2008


Hi, I have stubled upon, what I think, is a bug in mencoder (latest from
SVN). Specifically the segmentation fault occurs when encoding (2 pass) from
DVD to h264 video and 'copy' or 'pcm' as audio (copying the AC3 audio from
dvd). Also, the first pass goes fine, the seg fault occurs in the very
beginning of the second pass.
If I pick MP3/Lame as audio output, the crash does NOT occur.
I have looked through my mencoder installation/compilation procedure and I
think it looks good. In essence, I believe the bug exclusively occurs when
picking 'copy' or 'pcm'. Also, if I compile 'mencoder' from the RC2 sources,
the crash does NOT happen.

Below I attached the script I use for the encoding, and the output from the
second pass.

Thanks,
Harry

nice -n 16 mencoder "dvd://1" -o /dev/null -dvd-device
/home/hgunnarsson/RIPS/MainMovie/THE_MAN_WHO_KNEW_TOO_MUCH/VIDEO_TS -ofps
24000/1001 -vf crop=720:448:0:16,softskip,harddup -aid 128 -oac pcm -ovc
x264 -x264encopts
pass=1:bitrate=1000:turbo=2:me=umh:me_range=24:nodct_decimate:nointerlaced:8x8dct:threads=auto:nofast_pskip:trellis=1:partitions=p8x8,b8x8,i8x8,i4x4:mixed_refs:bime:keyint=240:keyint_min=24:frameref=4:bframes=16:b_adapt:b_pyramid:weight_b:direct_pred=auto:subq=6:brdo:chroma_me:cabac:deblock:nossim:nopsnr:cqm=/home/hgunnarsson/local/share/doc/h264enc-
8.2.7/matrices/mp4guy_hrm_matrix -passlogfile
/home/hgunnarsson/.h264enc/h264enc.P22105/h264.log

nice -n 16 mencoder "dvd://1" -o
"/home/hgunnarsson/RIPS/MainMovie/THE_MAN_WHO_KNEW_TOO_MUCH.avi" -dvd-device
/home/hgunnarsson/RIPS/MainMovie/THE_MAN_WHO_KNEW_TOO_MUCH/VIDEO_TS -sid 0
-vobsubout "/home/hgunnarsson/RIPS/MainMovie/THE_MAN_WHO_KNEW_TOO_MUCH"
-vobsuboutindex 0 -ofps 24000/1001 -vf crop=720:448:0:16,softskip,harddup
-aid 128 -oac pcm -ovc x264 -x264encopts
pass=2:bitrate=1000:me=umh:me_range=24:nodct_decimate:nointerlaced:8x8dct:threads=auto:nofast_pskip:trellis=1:partitions=p8x8,b8x8,i8x8,i4x4:mixed_refs:keyint=240:keyint_min=24:frameref=4:bframes=16:bime:b_adapt:b_pyramid:weight_b:direct_pred=auto:subq=6:brdo:chroma_me:cabac:deblock:nossim:nopsnr:cqm=/home/hgunnarsson/local/share/doc/h264enc-
8.2.7/matrices/mp4guy_hrm_matrix -passlogfile
/home/hgunnarsson/.h264enc/h264enc.P22105/h264.log



OUTPUT FROM MECODER (2nd PASS)

MEncoder dev-SVN-r26163-4.1.3 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Xeon(TM) CPU 3.00GHz (Family: 15, Model: 4, Stepping: 10)
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

There are 1 titles on this DVD.
There are 1 angles in this DVD title.
audio stream: 0 format: ac3 (stereo) language: en aid: 128.
number of audio channels on disk: 1.
subtitle ( sid ): 0 language: en
number of subtitles on disk: 1
success: format: 2  data: 0x0 - 0x79b7f000
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 3)  29.970 fps  9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
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: [softskip]
Opening video filter: [crop w=720 h=448 x=0 y=16]
Crop: 720 x 448, 0 ; 16
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0x8851b74]SwScaler: using unscaled yuv420p -> yuv420p special
converter
x264 [info]: using SAR=427/360
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 Cache64
New_Face failed. Maybe the font path is wrong.n   0mb  A-V:0.003 [0:0]
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.

1 duplicate frame(s)!
Pos:   0.0s     11f ( 0%)  0.65fps Trem:   0min   0mb  A-V:0.033 [0:0]
demux_mpg: 24000/1001fps progressive NTSC content detected, switching
framerate.

1 duplicate frame(s)!
Segmentation fault (core dumped)ps Trem:   0min   0mb  A-V:0.074 [0:0]



More information about the MPlayer-users mailing list