[MPlayer-users] Mencoder segmentation fault when encoding file cut by VDR
Kimmo Vuorinen
kimmo_lists at palsi.net
Tue May 25 17:31:22 CEST 2004
I am experiencing problems using MEncoder dev-CVS-040524-01:37-3.3.3
when encoding file cut by VDR. I uploaded sample of the file into
Incoming named Rock_cut.mpg.
Here is command line used:
mencoder -oac mp3lame -ovc lavc \
-lameopts cbr:br=128:aq=0 \
-lavcopts vcodec=mpeg4:vbitrate=700:vhq:v4mv:trell \
-o Rock_cut.avi Rock_cut.mpg
System details:
Fedora Core 2
Linux vger.palsi.net 2.6.5-1.315 #1 Mon May 17 11:09:36 EEST 2004 i686
athlon i386 GNU/Linux
-rwxr-xr-x 1 root root 1443920 May 7 17:14 /lib/libc-2.3.3.so
lrwxrwxrwx 1 root root 13 May 15 18:59 /lib/libc.so.6 -> libc-2.3.3.so
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --disable-libunwind-exceptions --with-system-zlib
--enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
GNU ld version 2.15.90.0.3 20040415
GNU assembler 2.15.90.0.3 20040415
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `i386-redhat-linux'.
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 6
model name : AMD Athlon(tm) XP 1600+
stepping : 2
cpu MHz : 1400.618
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
bogomips : 2777.08
Debug info:
GNU gdb Red Hat Linux (6.0post-1.20031117.8rh)
Copyright 2003 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 "i386-redhat-linux-gnu"...(no debugging
symbols found)...Using host libthread_db library
"/lib/tls/libthread_db.so.1".
(gdb) run -oac mp3lame -ovc lavc -lameopts cbr:br=128:aq=0 -lavcopts
vcodec=mpeg4:vbitrate=700:vhq:v4mv:trell -o Rock_cut.avi Rock_cut.mpg
Starting program: /usr/bin/mencoder -oac mp3lame -ovc lavc -lameopts
cbr:br=128:aq=0 -lavcopts vcodec=mpeg4:vbitrate=700:vhq:v4mv:trell -o
Rock_cut.avi Rock_cut.mpg
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...[Thread debugging using
libthread_db enabled]
[New Thread 1082949504 (LWP 11134)]
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale
MEncoder dev-CVS-040524-01:37-3.3.3 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino 1400 MHz
(Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection.
Reading /home/kvuorine/.mplayer/codecs.conf: 62 audio & 167 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/kvuorine/.mplayer/mencoder: No such file or
directory
Font /home/kvuorine/.mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 0 data: 0x0 - 0x61A690
AVI file format detected.
VIDEO: [] 720x576 24bpp 25,000 fps 3791,3 kbps (462,8 kbyte/s)
VIDEO: MPEG2 720x576 (aspect 3) 25,000 fps 10000,0 kbps (1250,0
kbyte/s)
[V] filefmt:3 fourcc:0x10000002 size:720x576 fps:25,00 ftime:=0,0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 28000->192000 (224,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: 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.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
MP3 audio selected
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not
writing vprp header.
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x576 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Pos: 0,8s 22f ( 7%) 12fps Trem: 0min 2mb A-V:0,084 [0:127]
Skipping frame!
Pos: 1,8s 50f (15%) 13fps Trem: 0min 1mb A-V:0,011 [1134:128]
1 duplicate frame(s)!
Pos: 2,2s 61f (18%) 12fps Trem: 0min 1mb A-V:0,014 [1028:128]
1 duplicate frame(s)!
Pos: 2,7s 72f (22%) 13fps Trem: 0min 1mb A-V:0,016 [966:127]]
1 duplicate frame(s)!
Pos: 3,1s 83f (25%) 13fps Trem: 0min 1mb A-V:0,016 [915:127]
1 duplicate frame(s)!
Pos: 3,6s 94f (28%) 13fps Trem: 0min 1mb A-V:0,016 [885:127]
1 duplicate frame(s)!
Pos: 4,0s 105f (32%) 13fps Trem: 0min 1mb A-V:0,016 [868:128]
1 duplicate frame(s)!
Pos: 4,4s 116f (35%) 14fps Trem: 0min 1mb A-V:0,016 [858:128]
1 duplicate frame(s)!
Pos: 4,9s 127f (38%) 14fps Trem: 0min 1mb A-V:0,016 [839:127]
1 duplicate frame(s)!
Pos: 5,3s 138f (42%) 14fps Trem: 0min 1mb A-V:0,013 [830:128]
1 duplicate frame(s)!
Pos: 5,8s 149f (45%) 14fps Trem: 0min 1mb A-V:0,015 [817:127]
1 duplicate frame(s)!
Pos: 6,2s 160f (48%) 14fps Trem: 0min 1mb A-V:0,016 [801:128]
1 duplicate frame(s)!
Pos: 6,9s 178f (54%) 14fps Trem: 0min 1mb A-V:0,016 [784:127]
1 duplicate frame(s)!
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)761:128]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x576 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Could not open codec.
FATAL: Cannot initialize video driver.
Pos: 8,4s 216f (66%) 15fps Trem: 0min 1mb A-V:0,036 [761:128]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1082949504 (LWP 11134)]
0x080eac1b in mpeg2_set_buf ()
(gdb) bt
#0 0x080eac1b in mpeg2_set_buf ()
#1 0x0809e92b in mpcodecs_draw_slice ()
#2 0x0809c673 in decode_video ()
#3 0x08069386 in main ()
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x80eabfb to 0x80eac3b:
0x080eabfb <mpeg2_set_buf+59>: mov (%esi),%eax
0x080eabfd <mpeg2_set_buf+61>: test %ecx,%ecx
0x080eabff <mpeg2_set_buf+63>: mov %eax,(%edx)
0x080eac01 <mpeg2_set_buf+65>: mov 0x4(%esi),%eax
0x080eac04 <mpeg2_set_buf+68>: mov %eax,0x4(%edx)
0x080eac07 <mpeg2_set_buf+71>: mov 0x8(%esi),%eax
0x080eac0a <mpeg2_set_buf+74>: mov %eax,0x8(%edx)
0x080eac0d <mpeg2_set_buf+77>: mov 0x10(%ebp),%eax
0x080eac10 <mpeg2_set_buf+80>: mov %eax,0xc(%edx)
0x080eac13 <mpeg2_set_buf+83>: je 0x80eac40 <mpeg2_set_buf+128>
0x080eac15 <mpeg2_set_buf+85>: mov 0x398(%ebx),%edx
0x080eac1b <mpeg2_set_buf+91>: mov (%edx),%ecx
0x080eac1d <mpeg2_set_buf+93>: test %ecx,%ecx
0x080eac1f <mpeg2_set_buf+95>: jne 0x80eac40 <mpeg2_set_buf+128>
0x080eac21 <mpeg2_set_buf+97>: movl $0x0,0xc(%edx)
0x080eac28 <mpeg2_set_buf+104>: mov (%esi),%eax
0x080eac2a <mpeg2_set_buf+106>: mov %eax,(%edx)
0x080eac2c <mpeg2_set_buf+108>: mov 0x4(%esi),%eax
0x080eac2f <mpeg2_set_buf+111>: mov %eax,0x4(%edx)
0x080eac32 <mpeg2_set_buf+114>: mov 0x8(%esi),%eax
0x080eac35 <mpeg2_set_buf+117>: mov %eax,0x8(%edx)
0x080eac38 <mpeg2_set_buf+120>: nop
0x080eac39 <mpeg2_set_buf+121>: lea 0x0(%esi,1),%esi
End of assembler dump.
(gdb) info all-registers
eax 0x8507990 139491728
ecx 0x1 1
edx 0x0 0
ebx 0x8526db0 139619760
esp 0xbfffe190 0xbfffe190
ebp 0xbfffe1a8 0xbfffe1a8
esi 0x85079b0 139491760
edi 0x8526db0 139619760
eip 0x80eac1b 0x80eac1b
eflags 0x10202 66050
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
st0 -nan(0xf539225b9b4167fb) (raw 0xfffff539225b9b4167fb)
st1 -nan(0x4d1bce1ef51481c4) (raw 0xffff4d1bce1ef51481c4)
st2 -0.079999999999999999998373696741271743 (raw
0xbffba3d70a3d70a3d70a)
st3 25 (raw 0x4003c800000000000000)
st4 1 (raw 0x3fff8000000000000000)
st5 1 (raw 0x3fff8000000000000000)
st6 0.035813629932139601219631686035427265 (raw
0x3ffa92b15014f410c000)
st7 0.079999999999999999998373696741271743 (raw
0x3ffba3d70a3d70a3d70a)
fctrl 0x37f 895
fstat 0x120 288
ftag 0xffff 65535
fiseg 0x0 0
fioff 0x0 0
foseg 0x0 0
fooff 0x0 0
fop 0x0 0
xmm0 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats 16
times>}, v8_int16 = {
0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {
0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm1 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats 16
times>}, v8_int16 = {
0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {
0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm2 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats 16
times>}, v8_int16 = {
0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {
0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm3 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats 16
times>}, v8_int16 = {
0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {
0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm4 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats 16
times>}, v8_int16 = {
0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {
0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm5 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats 16
times>}, v8_int16 = {
0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {
0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm6 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats 16
times>}, v8_int16 = {
0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {
0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm7 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats 16
times>}, v8_int16 = {
0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {
0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
mxcsr 0x1f80 8064
mm0 {uint64 = 0xf539225b9b4167fb, v2_int32 = {0x9b4167fb,
0xf539225b}, v4_int16 = {0x67fb, 0x9b41, 0x225b, 0xf539}, v8_int8 =
{0xfb, 0x67,
0x41, 0x9b, 0x5b, 0x22, 0x39, 0xf5}}
mm1 {uint64 = 0x4d1bce1ef51481c4, v2_int32 = {0xf51481c4,
0x4d1bce1e}, v4_int16 = {0x81c4, 0xf514, 0xce1e, 0x4d1b}, v8_int8 =
{0xc4, 0x81,
0x14, 0xf5, 0x1e, 0xce, 0x1b, 0x4d}}
mm2 {uint64 = 0xa3d70a3d70a3d70a, v2_int32 = {0x70a3d70a,
0xa3d70a3d}, v4_int16 = {0xd70a, 0x70a3, 0xa3d, 0xa3d7}, v8_int8 = {0xa,
0xd7, 0xa3,
0x70, 0x3d, 0xa, 0xd7, 0xa3}}
mm3 {uint64 = 0xc800000000000000, v2_int32 = {0x0,
0xc8000000}, v4_int16 = {0x0, 0x0, 0x0, 0xc800}, v8_int8 = {0x0, 0x0,
0x0, 0x0, 0x0, 0x0,
---Type <return> to continue, or q <return> to quit---
0x0, 0xc8}}
mm4 {uint64 = 0x8000000000000000, v2_int32 = {0x0,
0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0,
0x0, 0x0, 0x0, 0x0,
0x0, 0x80}}
mm5 {uint64 = 0x8000000000000000, v2_int32 = {0x0,
0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0,
0x0, 0x0, 0x0, 0x0,
0x0, 0x80}}
mm6 {uint64 = 0x92b15014f410c000, v2_int32 = {0xf410c000,
0x92b15014}, v4_int16 = {0xc000, 0xf410, 0x5014, 0x92b1}, v8_int8 =
{0x0, 0xc0,
0x10, 0xf4, 0x14, 0x50, 0xb1, 0x92}}
mm7 {uint64 = 0xa3d70a3d70a3d70a, v2_int32 = {0x70a3d70a,
0xa3d70a3d}, v4_int16 = {0xd70a, 0x70a3, 0xa3d, 0xa3d7}, v8_int8 = {0xa,
0xd7, 0xa3,
0x70, 0x3d, 0xa, 0xd7, 0xa3}}
More information about the MPlayer-users
mailing list