[Ffmpeg-devel] [BUG?] avi file mplayer can play but lavf fails.

Benjamin Larsson banan
Tue Feb 6 17:17:42 CET 2007


Compn skrev:
> incoming/sdc-test.avi
>
> mplayer -demuxer +avi sdc-test.avi
> Playing sdc-test.avi.
> AVI file format detected.
> VIDEO:  [XVID]  640x480  24bpp  30.000 fps  3669.2 kbps (447.9 kbyte/s)
> Clip info:
>  Software: Stoik AVI muxer v. 1.0.35.0
>
> mplayer -demuxer lavf -lavfdopts format=avi does not work (-lavfdopts format= is 
> a pending patch for mplayer by reimar)
> Forced lavf avi format demuxer
> libavformat file format detected.
> LAVF_header: av_open_input_stream() failed
>
> merbanan reports ffmpeg svn crashes.
>
> created for the samsung digimax i6 pmp
> which can also playback such files
> user wants to create files in linux (instead of using windows tools)
>
> -compn
>   

ffmpeg debug data follows:

banan at banan-desktop:~/ffmpeg$ gdb ffmpeg_g
GNU gdb 6.4.90-debian
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 "i486-linux-gnu"...Using host libthread_db 
library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run -i ~/Desktop/sdc-test.avi test.avi
Starting program: /home/banan/ffmpeg/ffmpeg_g -i ~/Desktop/sdc-test.avi 
test.avi
FFmpeg version SVN-r7851, Copyright (c) 2000-2006 Fabrice Bellard, et al.
configuration:
libavutil version: 49.3.0
libavcodec version: 51.31.0
libavformat version: 51.8.0
built on Feb 6 2007 16:32:53, gcc: 4.1.2 20060928 (prerelease) (Ubuntu 
4.1.1-13ubuntu5)

Seems stream 0 codec frame rate differs from container frame rate: 30.01 
(65535/2184) -> 25.00 (25/1)
Input #0, m4v, from '/home/banan/Desktop/sdc-test.avi':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: mpeg4, yuv420p, 640x480, 25.00 fps(r)
File 'test.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'test.avi':
Stream #0.0: Video: mpeg4, yuv420p, 640x480, q=2-31, 200 kb/s, 25.00 fps(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding

Program received signal SIGSEGV, Segmentation fault.
0xb7debe8e in memset () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0xb7debe8e in memset () from /lib/tls/i686/cmov/libc.so.6
#1 0x081e4e22 in ff_er_add_slice (s=0x865e240, startx=0, starty=0, 
endx=-1, endy=30,
status=<value optimized out>) at error_resilience.c:640
#2 0x08213248 in decode_slice (s=0x865e240) at h263dec.c:178
#3 0x0821422e in ff_h263_decode_frame (avctx=0x854a090, data=0xbf9c1910, 
data_size=0xbf9c1a74,
buf=0x855b150 "RIFF8?+", buf_size=56786) at h263dec.c:729
#4 0x080be7e2 in avcodec_decode_video (avctx=0x854a090, 
picture=0xbf9c1910, got_picture_ptr=0xbf9c1a74,
buf=0x855b150 "RIFF8?+", buf_size=56786) at utils.c:910
#5 0x0805da51 in output_packet (ist=0x85767b0, ist_index=0, 
ost_table=0x857c7d0, nb_ostreams=1,
pkt=0xbf9c1c90) at ffmpeg.c:1093
#6 0x0805fe91 in main (argc=Cannot access memory at address 0xf8fcfcf9
) at ffmpeg.c:1937
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0xb7debe6e to 0xb7debeae:
0xb7debe6e <__memset_chk+14>: mov %esi,%esi
0xb7debe70 <memset+0>: cld
0xb7debe71 <memset+1>: push %edi
0xb7debe72 <memset+2>: mov 0x8(%esp),%edx
0xb7debe76 <memset+6>: mov 0x10(%esp),%ecx
0xb7debe7a <memset+10>: movzbl 0xc(%esp),%eax
0xb7debe7f <memset+15>: jecxz 0xb7debead <memset+61>
0xb7debe81 <memset+17>: mov %edx,%edi
0xb7debe83 <memset+19>: and $0x3,%edx
0xb7debe86 <memset+22>: je 0xb7debe99 <memset+41>
0xb7debe88 <memset+24>: jp 0xb7debe8e <memset+30>
0xb7debe8a <memset+26>: stos %al,%es:(%edi)
0xb7debe8b <memset+27>: dec %ecx
0xb7debe8c <memset+28>: je 0xb7debead <memset+61>
0xb7debe8e <memset+30>: stos %al,%es:(%edi)
0xb7debe8f <memset+31>: dec %ecx
0xb7debe90 <memset+32>: je 0xb7debead <memset+61>
0xb7debe92 <memset+34>: xor $0x1,%edx
0xb7debe95 <memset+37>: jne 0xb7debe99 <memset+41>
0xb7debe97 <memset+39>: stos %al,%es:(%edi)
0xb7debe98 <memset+40>: dec %ecx
0xb7debe99 <memset+41>: mov %ecx,%edx
0xb7debe9b <memset+43>: shr $0x2,%ecx
0xb7debe9e <memset+46>: and $0x3,%edx
0xb7debea1 <memset+49>: imul $0x1010101,%eax,%eax
0xb7debea7 <memset+55>: rep stos %eax,%es:(%edi)
0xb7debea9 <memset+57>: mov %edx,%ecx
0xb7debeab <memset+59>: rep stos %al,%es:(%edi)
0xb7debead <memset+61>: mov 0x8(%esp),%eax
End of assembler dump.
(gdb) info all-registers
eax 0x0 0
ecx 0xf8fcfcf9 -117637895
edx 0x3 3
ebx 0x80808080 -2139062144
esp 0xbf9c14b8 0xbf9c14b8
ebp 0xffffff80 0xffffff80
esi 0x865e240 140894784
edi 0x8fe9cd67 -1880502937
eip 0xb7debe8e 0xb7debe8e <memset+30>
eflags 0x10206 [ PF IF RF ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
st0 -nan(0x827e7e82827e7e82) (raw 0xffff827e7e82827e7e82)
st1 -nan(0x82007e007e0082) (raw 0xffff0082007e007e0082)
st2 -nan(0x837f7f83837f7f83) (raw 0xffff837f7f83837f7f83)
st3 -nan(0x83007f007f0083) (raw 0xffff0083007f007f0083)
st4 -nan(0x8682828686828286) (raw 0xffff8682828686828286)
st5 -nan(0x86008200820086) (raw 0xffff0086008200820086)
st6 -nan(0x8783838787838387) (raw 0xffff8783838787838387)
st7 -nan(0x87008300830087) (raw 0xffff0087008300830087)
fctrl 0x37f 895
fstat 0x20 32
ftag 0xaaaa 43690
fiseg 0x73 115
fioff 0x80601b5 134611381
foseg 0x7b 123
fooff 0xbf9c1ab8 -1080288584
fop 0x1c9 457
xmm0 {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}
xmm1 {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}
xmm2 {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}
---Type <return> to continue, or q <return> to quit---
xmm3 {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}
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}, 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 0x1f80 [ IM DM ZM OM UM PM ]
mm0 {uint64 = 0x827e7e82827e7e82, v2_int32 = {0x827e7e82, 0x827e7e82}, 
v4_int16 = {0x7e82, 0x827e,
0x7e82, 0x827e}, v8_int8 = {0x82, 0x7e, 0x7e, 0x82, 0x82, 0x7e, 0x7e, 0x82}}
mm1 {uint64 = 0x82007e007e0082, v2_int32 = {0x7e0082, 0x82007e}, 
v4_int16 = {0x82, 0x7e, 0x7e,
0x82}, v8_int8 = {0x82, 0x0, 0x7e, 0x0, 0x7e, 0x0, 0x82, 0x0}}
mm2 {uint64 = 0x837f7f83837f7f83, v2_int32 = {0x837f7f83, 0x837f7f83}, 
v4_int16 = {0x7f83, 0x837f,
0x7f83, 0x837f}, v8_int8 = {0x83, 0x7f, 0x7f, 0x83, 0x83, 0x7f, 0x7f, 0x83}}
mm3 {uint64 = 0x83007f007f0083, v2_int32 = {0x7f0083, 0x83007f}, 
v4_int16 = {0x83, 0x7f, 0x7f,
0x83}, v8_int8 = {0x83, 0x0, 0x7f, 0x0, 0x7f, 0x0, 0x83, 0x0}}
mm4 {uint64 = 0x8682828686828286, v2_int32 = {0x86828286, 0x86828286}, 
v4_int16 = {0x8286, 0x8682,
0x8286, 0x8682}, v8_int8 = {0x86, 0x82, 0x82, 0x86, 0x86, 0x82, 0x82, 0x86}}
mm5 {uint64 = 0x86008200820086, v2_int32 = {0x820086, 0x860082}, 
v4_int16 = {0x86, 0x82, 0x82,
0x86}, v8_int8 = {0x86, 0x0, 0x82, 0x0, 0x82, 0x0, 0x86, 0x0}}
mm6 {uint64 = 0x8783838787838387, v2_int32 = {0x87838387, 0x87838387}, 
v4_int16 = {0x8387, 0x8783,
0x8387, 0x8783}, v8_int8 = {0x87, 0x83, 0x83, 0x87, 0x87, 0x83, 0x83, 0x87}}
mm7 {uint64 = 0x87008300830087, v2_int32 = {0x830087, 0x870083}, 
v4_int16 = {0x87, 0x83, 0x83,
0x87}, v8_int8 = {0x87, 0x0, 0x83, 0x0, 0x83, 0x0, 0x87, 0x0}}
(gdb)






More information about the ffmpeg-devel mailing list