[MEncoder-users] Mencoder segfault with output video form ggrab

Alexander Stockinger contact at lizardcreations.de
Thu Feb 26 22:19:13 CET 2009


Hi all,

I stumbled upon a video file that lets mencoder segfault during 
transcoding. The file is a TS stream from a digital tv receiver captured 
with ggrab. Other captured streams worked perfectly nice before, this 
one however reproducably shows this behaviour. I use the current default 
version from Debian Etch. Here is Mencoder's output (along with the 
command line I use at the end):

MEncoder dev-SVN-r26940 (C) 2000-2008 MPlayer Team
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6, Model: 
7, Stepping: 3)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x65b5800
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  10000.0 kbps (1250.0 
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.000  ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
xvid: using library version 1.1.3 (build xvid-1.1.3)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=800 h=450]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
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: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
MP3 audio selected.
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: reducing / aligning filtersize 7 -> 6
[swscaler @ 0x86b0cf8]BICUBIC scaler, from yuv420p to yuv420p using MMX2
[swscaler @ 0x86b0cf8]using 4-tap MMX scaler for horizontal luminance 
scaling
[swscaler @ 0x86b0cf8]using 4-tap MMX scaler for horizontal chrominance 
scaling
[swscaler @ 0x86b0cf8]using n-tap MMX scaler for vertical scaling (YV12 
like)
[swscaler @ 0x86b0cf8]720x576 -> 800x450
videocodec: XviD (800x450 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=800x450, sampled=800x450
xvid: CBR Rate Control -- bitrate=1200kbit/s
Pos:   0.0s      1f ( 0%)  0.00fps Trem:   1min   0mb  A-V:0.000 [0:0]
Pos:   0.0s      2f ( 0%)  0.00fps Trem:   1min   0mb  A-V:0.004 [0:0]
1 duplicate frame(s)!
Writing header...
ODML: vprp aspect is 16:9.
Setting audio delay to 0.048s.
Writing header...
ODML: vprp aspect is 16:9.
Setting audio delay to 0.048s.
Pos:   0.0s      3f ( 0%)  0.00fps Trem:   1min   4mb  A-V:0.008 [0:0]
New_Face failed. Maybe the font path is wrong.
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.
Writing header...
ODML: vprp aspect is 16:9.
Setting audio delay to 0.048s.

1 duplicate frame(s)!
Pos:   0.1s      4f ( 0%)  0.00fps Trem:   2min   8mb  A-V:0.012 [0:0]
Pos:   0.1s      5f ( 0%)  0.00fps Trem:   2min   8mb  A-V:0.016 [0:0]
Pos:   0.2s      6f ( 0%)  4.49fps Trem:   4min  11mb  A-V:0.020 [0:0]
Pos:   0.2s      7f ( 0%)  4.01fps Trem:   5min  11mb  A-V:0.024 [0:0]
Pos:   0.2s      8f ( 0%)  3.51fps Trem:   7min  14mb  A-V:0.028 [0:0]
Pos:   0.3s      9f ( 0%)  3.18fps Trem:   9min  17mb  A-V:0.032 [0:0]
Pos:   0.3s     10f ( 0%)  3.06fps Trem:  10min  19mb  A-V:0.036 [0:0]
Pos:   0.4s     11f ( 0%)  2.94fps Trem:  11min  20mb  A-V:0.040 [0:0]
Pos:   0.4s     12f ( 0%)  2.93fps Trem:  13min  21mb  A-V:0.044 [0:0]
Pos:   0.4s     13f ( 0%)  2.87fps Trem:  14min  22mb  A-V:0.048 [0:0]
Pos:   0.5s     14f ( 0%)  2.84fps Trem:  15min  23mb  A-V:0.052 [0:0]
Pos:   0.5s     15f ( 0%)  2.99fps Trem:  14min  21mb  A-V:0.056 [0:0]
Pos:   0.5s     16f ( 0%)  2.96fps Trem:  15min  22mb  A-V:0.060 [0:0]
Pos:   0.6s     17f ( 0%)  2.94fps Trem:  16min  22mb  A-V:0.064 [0:191]
Pos:   0.6s     18f ( 0%)  2.93fps Trem:  14min  19mb  A-V:0.068 [0:191]
Pos:   0.6s     19f ( 0%)  2.86fps Trem:  16min  21mb  A-V:0.072 [0:191]
Pos:   0.7s     20f ( 0%)  2.85fps Trem:  16min  21mb  A-V:0.076 [0:192]
Pos:   0.7s     21f ( 0%)  2.86fps Trem:  17min  21mb  A-V:0.080 [0:192]
Pos:   0.8s     22f ( 0%)  2.81fps Trem:  18min  23mb  A-V:0.084 [0:192]
Skipping frame!
Pos:   0.8s     23f ( 0%)  2.94fps Trem:  18min  23mb  A-V:0.048 [0:191]
Pos:   0.8s     24f ( 0%)  2.93fps Trem:  19min  23mb  A-V:0.052 [0:191]
Pos:   0.8s     25f ( 0%)  2.93fps Trem:  20min  23mb  A-V:0.056 [0:191]
Pos:   0.9s     26f ( 0%)  2.91fps Trem:  21min  24mb  A-V:0.060 [0:191]
Pos:   0.9s     27f ( 0%)  2.90fps Trem:  22min  25mb  A-V:0.064 [0:192]
Pos:   1.0s     28f ( 0%)  2.89fps Trem:  23min  26mb  A-V:0.068 [0:192]
Pos:   1.0s     29f ( 0%)  2.85fps Trem:  24min  27mb  A-V:0.072 [0:192]
Pos:   1.0s     30f ( 0%)  2.83fps Trem:  21min  24mb  A-V:0.076 [1280:191]
Pos:   1.1s     31f ( 0%)  2.83fps Trem:  21min  24mb  A-V:0.080 [1254:191]
Pos:   1.1s     32f ( 0%)  2.78fps Trem:  22min  26mb  A-V:0.084 [1339:191]
Skipping frame!
Pos:   1.1s     33f ( 0%)  2.86fps Trem:  22min  26mb  A-V:0.048 [1339:192]
Pos:   1.2s     34f ( 0%)  2.85fps Trem:  23min  26mb  A-V:0.052 [1322:192]
Pos:   1.2s     35f ( 0%)  2.82fps Trem:  24min  28mb  A-V:0.056 [1362:192]
Pos:   1.2s     36f ( 0%)  2.82fps Trem:  25min  29mb  A-V:0.060 [1350:192]
Pos:   1.3s     37f ( 0%)  2.80fps Trem:  25min  30mb  A-V:0.064 [1367:191]
Pos:   1.3s     38f ( 0%)  2.83fps Trem:  26min  32mb  A-V:0.068 [1436:191]
Pos:   1.4s     39f ( 0%)  2.81fps Trem:  27min  33mb  A-V:0.072 [1444:191]
Pos:   1.4s     40f ( 0%)  2.80fps Trem:  27min  33mb  A-V:0.076 [1416:191]
Pos:   1.4s     41f ( 0%)  2.80fps Trem:  27min  32mb  A-V:0.080 [1390:192]
Pos:   1.5s     42f ( 0%)  2.79fps Trem:  28min  33mb  A-V:0.084 [1389:192]
Skipping frame!
Pos:   1.5s     43f ( 0%)  2.84fps Trem:  25min  30mb  A-V:0.048 [1389:192]
Pos:   1.5s     44f ( 0%)  2.84fps Trem:  26min  30mb  A-V:0.052 [1363:192]
Pos:   1.6s     45f ( 0%)  2.84fps Trem:  26min  30mb  A-V:0.056 [1339:191]
Pos:   1.6s     46f ( 1%)  2.82fps Trem:  25min  29mb  A-V:0.060 [1344:191]
Pos:   1.6s     47f ( 1%)  2.82fps Trem:  26min  29mb  A-V:0.064 [1325:191]
Pos:   1.7s     48f ( 1%)  2.82fps Trem:  26min  29mb  A-V:0.068 [1305:191]
Pos:   1.7s     49f ( 1%)  2.80fps Trem:  27min  30mb  A-V:0.072 [1319:191]
Pos:   1.8s     50f ( 1%)  2.80fps Trem:  27min  31mb  A-V:0.076 [1302:191]
Pos:   1.8s     51f ( 1%)  2.79fps Trem:  28min  31mb  A-V:0.080 [1288:192]
Pos:   1.8s     52f ( 1%)  2.76fps Trem:  29min  32mb  A-V:0.084 [1301:192]
Skipping frame!
Pos:   1.8s     53f ( 1%)  2.82fps Trem:  29min  32mb  A-V:0.048 [1301:192]
Pos:   1.9s     54f ( 1%)  2.82fps Trem:  29min  32mb  A-V:0.052 [1285:192]
Pos:   1.9s     55f ( 1%)  2.82fps Trem:  29min  31mb  A-V:0.056 [1270:192]
Pos:   2.0s     56f ( 1%)  2.80fps Trem:  29min  32mb  A-V:0.060 [1285:192]
Pos:   2.0s     57f ( 1%)  2.79fps Trem:  30min  32mb  A-V:0.064 [1273:192]
Pos:   2.0s     58f ( 1%)  2.80fps Trem:  28min  30mb  A-V:0.068 [1259:191]
Pos:   2.1s     59f ( 1%)  2.78fps Trem:  28min  31mb  A-V:0.072 [1275:191]
Pos:   2.1s     60f ( 1%)  2.78fps Trem:  27min  29mb  A-V:0.076 [1263:191]
Pos:   2.2s     61f ( 1%)  2.78fps Trem:  27min  29mb  A-V:0.080 [1254:191]
Pos:   2.2s     62f ( 1%)  2.76fps Trem:  27min  29mb  A-V:0.084 [1279:191]
Skipping frame!
Pos:   2.2s     63f ( 1%)  2.80fps Trem:  27min  30mb  A-V:0.048 [1279:191]
Pos:   2.2s     64f ( 1%)  2.80fps Trem:  28min  30mb  A-V:0.052 [1269:191]
Pos:   2.3s     65f ( 1%)  2.80fps Trem:  28min  30mb  A-V:0.056 [1262:192]
./test.sh: line 3:  3505 Segmentation fault      /usr/bin/mencoder 
/fileserv/Movies/recorder/process/fname.vob -oac mp3lame -lameopts 
cbr:br=192 -ovc xvid -xvidencopts bitrate=1200 -vf scale=800:450 -o 
/fileserv/Movies/recorder/target/fname.avi


Does anyone have an idea how to prevent this from happening? If 
required, I can also provide the source video - it is however ~100MB.

Thanks for your help,
Alex



More information about the MEncoder-users mailing list