[MPlayer-dev-eng] mpegpes segfaulting on avi files

Stone syphyr at gmail.com
Sat Sep 16 17:18:22 CEST 2006


> post a backtrace, please


Thanks for taking a look.  Sorry if my original post was not to the right
list.

Best Regards.

--SNIP--

MPlayer dev-SVN-r19855-3.4.6 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) XP 2000+ (Family: 6, Model: 6, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
get_path('codecs.conf') -> '/home/sid/.mplayer/codecs.conf'
Reading /home/sid/.mplayer/codecs.conf: Can't open
'/home/sid/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No
such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '-vo' 'mpegpes' '-ao' 'mpegpes' '-vop'
'lavc=5000:30,expand=640:480:-1:-1:1,scale=640:276' '-framedrop' '-cache'
'4096' '-nolirc' 'Blues_Brothers.avi'
init_freetype
/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBd.ttf doesn't look like
a bitmap font description, ignoring.
Cannot load bitmap font:
/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBd.ttf
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '/home/sid/.mplayer/input.conf'
Parsing input config file /home/sid/.mplayer/input.conf
Input config file /home/sid/.mplayer/input.conf parsed: 51 binds
get_path('Blues_Brothers.avi.conf') ->
'/home/sid/.mplayer/Blues_Brothers.avi.conf'

Playing Blues_Brothers.avi.
get_path('sub/') -> '/home/sid/.mplayer/sub/'
[file] File size is 664426496 bytes
STREAM: [file] Blues_Brothers.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0  pre:838860  eof:0
Cache fill:  0.00% (0 bytes)
AVI file format detected.
list_end=0x2292
======= AVI Header =======
us/frame: 40000  (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 221608   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  592 x 256
==========================
list_end=0x10F4
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC: div4 (34766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 25/1 = 25.000
Start: 0   Len: 221608
Suggested BufferSize: 38848
Quality 5000
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 592
  biHeight 256
  biPlanes 1
  biBitCount 24
  biCompression 861292868='DIV3'
  biSizeImage 454656
===========================
Regenerating keyframe table for DIVX3 video.
list_end=0x2186
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 12000/1 = 12000.000
Start: 0   Len: 106368192
Suggested BufferSize: 5177
Quality -1
Sample size: 1
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 12000
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=288
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
==========================================================================
list_end=0x2292
AVI: dmlh found (size=248) (total_frames=221608)
list_end=0x272E21B4
Found movie at 0x280C - 0x272E21B4
Reading INDEX block, 443196 chunks for 221608 frames (fpos=657334716).
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x1446)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=547189511 (221608) audio size=106368192 (106368192)
VIDEO:  [DIV3]  592x256  24bpp  25.000 fps  493.8 kbps (60.3 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:592x256  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/sid/.mplayer/sub/'
Opening /dev/dvb/adapter0/video0+audio0
Opening video filter: [lavc=5000:30]
Opening video filter: [expand w=640 h=480 x=-1 y=-1 osd=1]
Expand: 640 x 480, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=640 h=276]
SwScale params: 640 x 276 (-1=no scaling)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 48000 Hz 96 kbit Joint-Stereo, BPF: 288
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, s16le, 96.0 kbit/6.25% (ratio: 12000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Opening /dev/dvb/adapter0/audio0
AO: [mpegpes] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: DVB audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 592 x 256 (preferred colorspace: Planar YV12)
Trying filter chain: scale expand lavc vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (592x256->592x256,flags=0,'MPlayer',0x32315659)
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4

SwScaler: BICUBIC scaler, from 0x32315659 (21VY) to 0x32315659 (21VY) using
MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
SwScaler: 592x256 -> 640x276
REQ: flags=0x501  req=0x0
REQ: flags=0x101  req=0x0
[mpeg1video @ 0x8772ff8]removing common factors from framerate
REQ: flags=0x103  req=0x0
VO: [mpegpes] 640x480 => 640x480 Mpeg PES
VO: Description: Mpeg-PES to DVB card
VO: Author: A'rpi
*** [lavc] Allocating mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
*** [expand] Direct Rendering mp_image_t, 640x276x12bpp YUV planar, 264960
bytes
*** [scale] Allocating (slices) mp_image_t, 592x256x12bpp YUV planar, 227328
bytes
Unicode font: 255 glyphs.
Selected font is fixed-width.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1240459552 (LWP 13017)]
0x0837c6c5 in ff_set_qscale ()


(gdb) bt
#0  0x0837c6c5 in ff_set_qscale ()
#1  0x082bcb45 in MPV_encode_picture ()
#2  0x082a3ba8 in avcodec_default_execute ()
#3  0x082b68ac in MPV_encode_picture ()
#4  0x082a3fda in avcodec_encode_video ()
#5  0x081812a4 in sws_getContextFromCmdLine ()
#6  0x0814a7e4 in decode_video ()
#7  0x080bfc16 in main ()


 (gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x837c6a5 to 0x837c6e5:
0x0837c6a5 <ff_set_qscale+21>:  add    %cl,(%edi)
0x0837c6a7 <ff_set_qscale+23>:  dec    %ebp
0x0837c6a8 <ff_set_qscale+24>:  enter  $0x838b,$0xa0
0x0837c6ac <ff_set_qscale+28>:  pop    %es
0x0837c6ad <ff_set_qscale+29>:  add    %al,(%eax)
0x0837c6af <ff_set_qscale+31>:  mov    %ecx,0x7ec(%ebx)
0x0837c6b5 <ff_set_qscale+37>:  movzbl (%eax,%ecx,1),%edx
0x0837c6b9 <ff_set_qscale+41>:  mov    0x798(%ebx),%eax
0x0837c6bf <ff_set_qscale+47>:  mov    %edx,0x7f0(%ebx)
0x0837c6c5 <ff_set_qscale+53>:  movzbl (%eax,%ecx,1),%eax
0x0837c6c9 <ff_set_qscale+57>:  mov    %eax,0x790(%ebx)
0x0837c6cf <ff_set_qscale+63>:  mov    0x79c(%ebx),%eax
0x0837c6d5 <ff_set_qscale+69>:  movzbl (%eax,%edx,1),%eax
0x0837c6d9 <ff_set_qscale+73>:  mov    %eax,0x794(%ebx)
0x0837c6df <ff_set_qscale+79>:  pop    %ebx
0x0837c6e0 <ff_set_qscale+80>:  leave
0x0837c6e1 <ff_set_qscale+81>:  ret
0x0837c6e2 <ff_set_qscale+82>:  mov    $0x1,%ecx
End of assembler dump.


(gdb) info all-registers
eax            0x0      0
ecx            0x2      2
edx            0x2      2
ebx            0x8a35c50        144923728
esp            0xbfbdb084       0xbfbdb084
ebp            0xbfbdb088       0xbfbdb088
esi            0x8a35c50        144923728
edi            0x0      0
eip            0x837c6c5        0x837c6c5 <ff_set_qscale+53>
eflags         0x210287 [ CF PF SF IF RF ID ]
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51
st0            <invalid float value>    (raw 0xffff0000000000000000)
st1            <invalid float value>    (raw 0xffff0000000000000000)
st2            <invalid float value>    (raw 0xffff0000000000000000)
st3            0        (raw 0x00000000000000000000)
st4            0.16770707070827484130859375     (raw 0x3ffcabbb670000000000)
st5            1        (raw 0x3fff8000000000000000)
st6            0        (raw 0x00000000000000000000)
st7            1        (raw 0x3fff8000000000000000)
fctrl          0x37f    895
fstat          0x20     32
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 = {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}
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},
---Type <return> to continue, or q <return> to quit---
  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 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}}
mm1            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}}
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 = 0xabbb670000000000, v2_int32 = {0x0, 0xabbb6700},
v4_int16 = {0x0, 0x0, 0x6700, 0xabbb},
  v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x67, 0xbb, 0xab}}
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 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}}
mm7            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000},
v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}}



More information about the MPlayer-dev-eng mailing list