[MPlayer-users] [BUG] mencoder segfaults with yadif/mcdeint

Olivier Rolland billl at users.sourceforge.net
Mon Oct 1 21:10:47 CEST 2007


Hi,

Mencoder segfaults with yadif=1/3 and mcdeint=2/3. It does not
segfault with yadif=0/2 (without mcdeint) or with
yadif=1/3,mcdeint=0/1.

Find below the output of mencoder at verbosity 1 in gdb.

Regards,

Olivier

$ gdb mencoder
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run -v -nosound -vf yadif=3,mcdeint=2:1:10 -o test.avi
-dvd-device ../xmen3 -ovc xvid -xvidencopts bitrate=800 dvd://1
Starting program: /home/billl/local/bin/mencoder -v -nosound -vf
yadif=3,mcdeint=2:1:10 -o test.avi -dvd-device ../xmen3 -ovc xvid
-xvidencopts bitrate=800 dvd://1
MEncoder dev-SVN-r24680-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz (Family: 6,
Model: 15, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

115 audio & 237 video codecs
Configuration: --prefix=/home/billl/local
--confdir=/home/billl/local/share/mplayer
--datadir=/home/billl/local/share/mplayer
--realcodecsdir=/opt/RealPlayer/codecs --disable-ossaudio
--disable-esd --disable-fbdev --disable-vidix-internal
--disable-vidix-external --disable-dga1 --disable-dga2 --enable-debug
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
URL: dvd://1
Reading disc structure, please wait...
There are 3 titles on this DVD.
There are 40 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
audio stream: 0 format: ac3 (5.1) language: en aid: 128.
audio stream: 1 format: ac3 (5.1) language: fr aid: 129.
audio stream: 2 format: dts (5.1) language: fr aid: 138.
audio stream: 3 format: ac3 (stereo) language: en aid: 131.
audio stream: 4 format: ac3 (stereo) language: en aid: 132.
number of audio channels on disk: 5.
subtitle ( sid ): 0 language: nl
subtitle ( sid ): 1 language: en
subtitle ( sid ): 2 language: fr
subtitle ( sid ): 3 language: el
subtitle ( sid ): 4 language: fr
subtitle ( sid ): 5 language: nl
subtitle ( sid ): 6 language: nl
subtitle ( sid ): 7 language: fr
subtitle ( sid ): 8 language: fr
number of subtitles on disk: 9
DVD start cell: 0  pack: 0x0-0xBD2D
DVD start=0 end=3316856
STREAM: [null] dvd://1
STREAM: Description: DVD stream
STREAM: Author:
STREAM: Comment:
success: format: 2  data: 0x0 - 0x94e3c000
DVD Seek! lba=0x0  cell=0  packs: 0x0-0xBD2D
Angle-seek synced by cell/vob IDN search!
system stream synced at 0xD (13)!
==> Found video stream: 0
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  7099.6 kbps (887.5 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
[file] File size is 0 bytes
STREAM: [file] test.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
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: [mcdeint=2:1:10]
Opening video filter: [yadif=3]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Trying filter chain: yadif mcdeint expand xvid
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale yadif mcdeint expand xvid
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 576 (preferred colorspace: Planar YV12)
Trying filter chain: yadif mcdeint expand xvid
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (720x576->1024x576,flags=0,'MPlayer',0x32315659)
REQ: flags=0x403  req=0x0
REQ: flags=0x403  req=0x0
REQ: flags=0x3  req=0x0
videocodec: XviD (720x576 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=1024x576, sampled=720x576
xvid: CBR Rate Control -- bitrate=800kbit/s
*** [yadif] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
*** [yadif] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080
bytess 0/14 D/B/S 0/1/0
Pos:   0.0s      2f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
A/Vms 0/10 D/B/S 0/2/0
1 duplicate frame(s)!
Muxer frame buffer sending 1 frame(s) to the muxer.
Writing header...
ODML: vprp aspect is 16:9.
Writing header...
ODML: vprp aspect is 16:9.
*** [yadif] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080
bytess 0/8 D/B/S 1/3/0
*** [mcdeint] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
*** [xvid] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
*** [expand] Direct Rendering mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
Unicode font: 255 glyphs.
Writing header...
ODML: vprp aspect is 16:9.

Program received signal SIGSEGV, Segmentation fault.
0x0827e989 in ?? ()
(gdb) bt
#0  0x0827e989 in ?? ()
#1  0x000002f0 in ?? ()
#2  0xbfdfb7d8 in ?? ()
#3  0x083f1b7b in ?? ()
#4  0xb6485378 in ?? ()
#5  0xb5f3a36c in ?? ()
#6  0xb476336c in ?? ()
#7  0x000002f0 in ?? ()
#8  0x00000010 in ?? ()
#9  0x08c1b770 in ?? ()
#10 0x00000000 in ?? ()
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x827e969 to 0x827e9a9:
0x0827e969:     adc    %cl,0x458b1455(%ebx)
0x0827e96f:     sbb    %ah,0xf(%esi)
0x0827e972:     out    %eax,(%dx)
0x0827e973:     (bad)  0xb6(%ebp)
0x0827e979:     add    %cl,0xbf(%ebp)
0x0827e97f:     add    %dh,%bl
0x0827e981:     movq   (%ecx),%mm0
0x0827e984:     movdqu (%ecx,%edx,1),%xmm1
0x0827e989:     psadbw (%ebx),%xmm0
0x0827e98d:     psadbw (%ebx,%edx,1),%xmm1
0x0827e992:     paddw  %xmm0,%xmm6
0x0827e996:     paddw  %xmm1,%xmm6
0x0827e99a:     lea    (%ecx,%edx,2),%ecx
0x0827e99d:     lea    (%ebx,%edx,2),%ebx
0x0827e9a0:     sub    $0x2,%eax
0x0827e9a3:     jg     0x827e980
0x0827e9a5:     movhlps %xmm6,%xmm0
0x0827e9a8:     paddw  %xmm0,%xmm6
End of assembler dump.
(gdb) info all-registers
eax            0x10     16
ecx            0xb476336c       -1267322004
edx            0x2f0    752
ebx            0xb5f3a36c       -1242324116
esp            0xbfdee604       0xbfdee604
ebp            0xbfdee608       0xbfdee608
esi            0xb6279020       -1238921184
edi            0x4      4
eip            0x827e989        0x827e989
eflags         0x10286  [ PF SF IF RF ]
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51
st0            -nan(0x1010101010101010) (raw 0xffff1010101010101010)
st1            -nan(0x1010101010101010) (raw 0xffff1010101010101010)
st2            <invalid float value>    (raw 0xffff0000000000000000)
st3            <invalid float value>    (raw 0xffff0000000000000000)
st4            -nan(0x1010101010101010) (raw 0xffff1010101010101010)
st5            -nan(0x1010101010101010) (raw 0xffff1010101010101010)
st6            <invalid float value>    (raw 0xffff0000000000000000)
st7            <invalid float value>    (raw 0xffff0000000000000000)
fctrl          0x37f    895
fstat          0x20     32
ftag           0xaaaa   43690
fiseg          0x73     115
fioff          0x83e28c9        138291401
foseg          0x7b     123
fooff          0xbfdfcefc       -1075851524
fop            0x34d    845
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0,
0x0}, v16_int8 = {0x80 <repeats 16 times>}, v8_int16 = {0x8080,
0x8080, 0x8080, 0x8080, 0x8080,
    0x8080, 0x8080, 0x8080}, v4_int32 = {0x80808080, 0x80808080,
0x80808080, 0x80808080}, v2_int64 = {0x8080808080808080,
0x8080808080808080},
  uint128 = 0x80808080808080808080808080808080}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0,
0x0}, v16_int8 = {0x80 <repeats 16 times>}, v8_int16 = {0x8080,
0x8080, 0x8080, 0x8080, 0x8080,
    0x8080, 0x8080, 0x8080}, v4_int32 = {0x80808080, 0x80808080,
0x80808080, 0x80808080}, v2_int64 = {0x8080808080808080,
0x8080808080808080},
  uint128 = 0x80808080808080808080808080808080}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0,
0x0}, v16_int8 = {0x4, 0x8, 0x10, 0x14, 0x1c, 0x20, 0x28, 0x2c, 0x2c,
0x28, 0x20, 0x1c, 0x14,
    0x10, 0x8, 0x4}, v8_int16 = {0x804, 0x1410, 0x201c, 0x2c28,
0x282c, 0x1c20, 0x1014, 0x408}, v4_int32 = {0x14100804, 0x2c28201c,
0x1c20282c, 0x4081014},
  v2_int64 = {0x2c28201c14100804, 0x40810141c20282c}, uint128 =
0x040810141c20282c2c28201c14100804}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0,
0x0}, v16_int8 = {0x0, 0x4, 0x4, 0x8, 0x8, 0xc, 0xc, 0x10, 0x10, 0xc,
0xc, 0x8, 0x8, 0x4, 0x4,
    0x0}, v8_int16 = {0x400, 0x804, 0xc08, 0x100c, 0xc10, 0x80c,
0x408, 0x4}, v4_int32 = {0x8040400, 0x100c0c08, 0x80c0c10, 0x40408},
v2_int64 = {0x100c0c0808040400,
    0x40408080c0c10}, uint128 = 0x00040408080c0c10100c0c0808040400}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0,
0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0},
---Type <return> to continue, or q <return> to quit---
  v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0,
0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0},
  v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0,
0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0},
  v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0,
0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0},
  v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
mxcsr          0x1fa0   [ PE IM DM ZM OM UM PM ]
mm0            {uint64 = 0x1010101010101010, v2_int32 = {0x10101010,
0x10101010}, v4_int16 = {0x1010, 0x1010, 0x1010, 0x1010}, v8_int8 =
{0x10, 0x10, 0x10, 0x10,
    0x10, 0x10, 0x10, 0x10}}
mm1            {uint64 = 0x1010101010101010, v2_int32 = {0x10101010,
0x10101010}, v4_int16 = {0x1010, 0x1010, 0x1010, 0x1010}, v8_int8 =
{0x10, 0x10, 0x10, 0x10,
    0x10, 0x10, 0x10, 0x10}}
mm2            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm3            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm4            {uint64 = 0x1010101010101010, v2_int32 = {0x10101010,
0x10101010}, v4_int16 = {0x1010, 0x1010, 0x1010, 0x1010}, v8_int8 =
{0x10, 0x10, 0x10, 0x10,
    0x10, 0x10, 0x10, 0x10}}
mm5            {uint64 = 0x1010101010101010, v2_int32 = {0x10101010,
0x10101010}, v4_int16 = {0x1010, 0x1010, 0x1010, 0x1010}, v8_int8 =
{0x10, 0x10, 0x10, 0x10,
    0x10, 0x10, 0x10, 0x10}}
mm6            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm7            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}



More information about the MPlayer-users mailing list