[MPlayer-users] mencoder segfaults with -aid>0

Yotzo yotzo at elektropont.hu
Thu Nov 15 21:49:54 CET 2001


Why $subject?

with -aid 0 i get:
--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<
dadan:~$ mencoder -v -v -v 
/mnt/hdb1/_Original/VerticalLimit/Video_ts/vts_05_1.vob -vid 0 -aid 0 
-frames 100 -o /mnt/hdc2/vl-menc.avi
Reading /home/yotzo/.mplayer/codecs.conf: can't open 
'/home/yotzo/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 21 audio & 58 video codecs
Not an URL!
File size is 1073739776 bytes
success: format: 0  data: 0x0 - 0x3FFFF800
s->pos=0  newpos=0  new_bufpos=0  buflen=0  
ASF_check: not ASF guid!
Checking for MOV
system stream synced at 0xD (0)!
==> Found video stream: 0
Detected MPEG-PS file format!
==> Found audio stream: 130
==> Found audio stream: 129
==> Found audio stream: 128
==> Found subtitle: 16

DEMUXER: Too many (4096 in 8263466 bytes) video packets in the buffer!
(maybe you play a non-interleaved stream/file or the codec failed)
ds_fill_buffer: EOF reached (stream: audio)  
MPEG: No Audio stream found...  ->nosound
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  12250.0 kbps (1531.2 
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
Detected video codec: [mpeg12] drv:1 (MPEG 1 or 2)
mpeg2dec-0.2.0-release (C) 2000-2001 Aaron Holtzman & Michel Lespinasse
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
Writing AVI header...

Writing AVI index...
Fixup AVI header...
*** free_stream() called ***
--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<

with -aid [128|129|130]:

--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<
dadan:~$ mencoder -v -v -v 
/mnt/hdb1/_Original/VerticalLimit/Video_ts/vts_05_1.vob -vid 128 -aid 0 
-frames 100 -o /mnt/hdc2/vl-menc.avi
Reading /home/yotzo/.mplayer/codecs.conf: can't open 
'/home/yotzo/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 21 audio & 58 video codecs
Not an URL!
File size is 1073739776 bytes
success: format: 0  data: 0x0 - 0x3FFFF800
s->pos=0  newpos=0  new_bufpos=0  buflen=0  
ASF_check: not ASF guid!
Checking for MOV
system stream synced at 0xD (0)!
==> Found video stream: 0
==> Found audio stream: 130
==> Found audio stream: 129
==> Found audio stream: 128
demux: file doesn't contain the selected audio or video stream
ds_fill_buffer: EOF reached (stream: video)  
MPEG packet stats: p100: 0  p101: 0  PES: 0 
MPEG: Missing video stream!? Contact the author, it may be a bug :(
s->pos=0  newpos=0  new_bufpos=0  buflen=0  
Checking for VIVO
header block 1 size: 0
============= Sorry, this file format not recognized/supported 
===============
=== If this file is an AVI, ASF or MPEG stream, please contact the 
author! ===
Cannot open demuxer
--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<

gdb says:
--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<
dadan:~$ gdb /tmp/w/main/mencoder
GNU gdb 5.0.90-cvs (MI_OUT)
Copyright 2001 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-linux"...
(gdb) run -v /mnt/hdb1/_Original/VerticalLimit/Video_ts/vts_05_1.vob 
-vid 0 -aid 128 -frames 100 -o /mnt/hdc2/vl-menc.avi
Starting program: /tmp/w/main/mencoder -v 
/mnt/hdb1/_Original/VerticalLimit/Video_ts/vts_05_1.vob -vid 0 -aid 128 
-frames 100 -o /mnt/hdc2/vl-menc.avi
[New Thread 1024 (LWP 31328)]
Reading /home/yotzo/.mplayer/codecs.conf: can't open 
'/home/yotzo/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/share/mplayer/codecs.conf: 21 audio & 58 video codecs
File size is 1073739776 bytes
success: format: 0  data: 0x0 - 0x3FFFF800
ASF_check: not ASF guid!
Checking for MOV
system stream synced at 0xD (0)!
==> Found video stream: 0
Detected MPEG-PS file format!
==> Found audio stream: 130
==> Found audio stream: 129
==> Found audio stream: 128
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  12250.0 kbps (1531.2 
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
Detected video codec: [mpeg12] drv:1 (MPEG 1 or 2)
mpeg2dec-0.2.0-release (C) 2000-2001 Aaron Holtzman & Michel Lespinasse
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
Detected audio codec: [ac3] drv:3 (AC3)
Initializing audio codec...
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
!! libac3 (core v0.6.2) : using SSE optimization

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 31328)]
bitstream_get_bh (num_bits=4293368324) at ../bswap.h:41
41      {
(gdb) bt
#0  bitstream_get_bh (num_bits=4293368324) at ../bswap.h:41
#1  0x40020a6e in parse_bsi () from /usr/lib/libdxr3.so.0
#2  0x080ba8b7 in ac3_decode_frame () at decode.c:201
#3  0x0805c5ad in init_audio (sh_audio=0x8132580) at dec_audio.c:339
#4  0x080591ea in main (argc=11, argv=0xbffffc44, envp=0xbffffc74) at 
mencoder.c:402
#5  0x404e36ef in __libc_start_main () from /lib/libc.so.6
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x80bdbf8 to 0x80bdc38:
0x80bdbf8 <bitstream_get_bh+44>:        loopne 0x80bdbf0 
<bitstream_get_bh+36>
0x80bdbfa <bitstream_get_bh+46>:        shll   $0x74,(%eax)
0x80bdbfd <bitstream_get_bh+49>:        add    $0x89,%al
0x80bdbff <bitstream_get_bh+51>:        ret    $0xc031
0x80bdc02 <bitstream_get_bh+54>:        shrd   %cl,%edx,%eax
0x80bdc05 <bitstream_get_bh+57>:        shr    %cl,%edx
0x80bdc07 <bitstream_get_bh+59>:        test   $0x20,%cl
0x80bdc0a <bitstream_get_bh+62>:        je     0x80bdc10 
<bitstream_get_bh+68>
0x80bdc0c <bitstream_get_bh+64>:        mov    %edx,%eax
0x80bdc0e <bitstream_get_bh+66>:        xor    %edx,%edx
0x80bdc10 <bitstream_get_bh+68>:        mov    0x80f8f00,%ecx
0x80bdc16 <bitstream_get_bh+74>:        mov    %eax,%ebx
0x80bdc18 <bitstream_get_bh+76>:        mov    (%ecx),%eax
0x80bdc1a <bitstream_get_bh+78>:        mov    0x4(%ecx),%edx
0x80bdc1d <bitstream_get_bh+81>:        mov    %eax,%ecx
0x80bdc1f <bitstream_get_bh+83>:        bswap  %ecx
0x80bdc21 <bitstream_get_bh+85>:        mov    %edx,%eax
0x80bdc23 <bitstream_get_bh+87>:        xor    %edx,%edx
0x80bdc25 <bitstream_get_bh+89>:        bswap  %eax
0x80bdc27 <bitstream_get_bh+91>:        mov    %ecx,%esi
0x80bdc29 <bitstream_get_bh+93>:        xchg   %eax,%esi
0x80bdc2a <bitstream_get_bh+94>:        mov    %eax,%edi
0x80bdc2c <bitstream_get_bh+96>:        mov    0x80f8f00,%eax
0x80bdc31 <bitstream_get_bh+101>:       mov    %esi,0x81321ec
0x80bdc37 <bitstream_get_bh+107>:       mov    %edi,0x81321f0
End of assembler dump.
--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<

-- 
"Ha egy unalmas ember kimegy a szobából, olyan mintha valaki bejött volna."
              [Daradics Dániel alias Yotzo(@elektropont.hu)]



More information about the MPlayer-users mailing list