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

Yotzo yotzo at elektropont.hu
Fri Nov 16 07:06:08 CET 2001


Sorry for my previous mail. Again, with correct parameters...

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:~$ gdb /tmp/m/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 0 -frames 100 -o /mnt/hdc2/vl-menc.avi
Starting program: /tmp/m/main/mencoder -v 
/mnt/hdb1/_Original/VerticalLimit/Video_ts/vts_05_1.vob -vid 0 -aid 0 
-frames 100 -o /mnt/hdc2/vl-menc.avi
[New Thread 1024 (LWP 4372)]
Reading /home/yotzo/.mplayer/codecs.conf: 21 audio & 58 video codecs
Not an URL!
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
==> 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 ***

Program exited normally.

--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<
(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/m/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 4373)]
Reading /home/yotzo/.mplayer/codecs.conf: 21 audio & 58 video codecs
Not an URL!
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 4373)]
bitstream_get_bh (num_bits=4292740452) at ../bswap.h:41
41      {
(gdb) bt
#0  bitstream_get_bh (num_bits=4292740452) at ../bswap.h:41
#1  0x40020a6e in parse_bsi () from /usr/lib/libdxr3.so.0
#2  0x080c45d7 in ac3_decode_frame () at decode.c:201
#3  0x08063b3d in init_audio (sh_audio=0x8190cb0) at dec_audio.c:339
#4  0x080606aa in main (argc=11, argv=0xbffffc44, envp=0xbffffc74) at 
mencoder.c:402
#5  0x4066a6ef in __libc_start_main () from /lib/libc.so.6
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x80c7918 to 0x80c7958:
0x80c7918 <bitstream_get_bh+44>:        loopne 0x80c7910 
<bitstream_get_bh+36>
0x80c791a <bitstream_get_bh+46>:        shll   $0x74,(%eax)
0x80c791d <bitstream_get_bh+49>:        add    $0x89,%al
0x80c791f <bitstream_get_bh+51>:        ret    $0xc031
0x80c7922 <bitstream_get_bh+54>:        shrd   %cl,%edx,%eax
0x80c7925 <bitstream_get_bh+57>:        shr    %cl,%edx
0x80c7927 <bitstream_get_bh+59>:        test   $0x20,%cl
0x80c792a <bitstream_get_bh+62>:        je     0x80c7930 
<bitstream_get_bh+68>
0x80c792c <bitstream_get_bh+64>:        mov    %edx,%eax
0x80c792e <bitstream_get_bh+66>:        xor    %edx,%edx
0x80c7930 <bitstream_get_bh+68>:        mov    0x813f140,%ecx
0x80c7936 <bitstream_get_bh+74>:        mov    %eax,%ebx
0x80c7938 <bitstream_get_bh+76>:        mov    (%ecx),%eax
0x80c793a <bitstream_get_bh+78>:        mov    0x4(%ecx),%edx
0x80c793d <bitstream_get_bh+81>:        mov    %eax,%ecx
0x80c793f <bitstream_get_bh+83>:        bswap  %ecx
0x80c7941 <bitstream_get_bh+85>:        mov    %edx,%eax
0x80c7943 <bitstream_get_bh+87>:        xor    %edx,%edx
0x80c7945 <bitstream_get_bh+89>:        bswap  %eax
0x80c7947 <bitstream_get_bh+91>:        mov    %ecx,%esi
0x80c7949 <bitstream_get_bh+93>:        xchg   %eax,%esi
0x80c794a <bitstream_get_bh+94>:        mov    %eax,%edi
0x80c794c <bitstream_get_bh+96>:        mov    0x813f140,%eax
0x80c7951 <bitstream_get_bh+101>:       mov    %esi,0x817b5ac
0x80c7957 <bitstream_get_bh+107>:       mov    %edi,0x817b5b0
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