[MPlayer-users] [BUG] mplayer crashes when switching audio channel

Holger Reinmann H.Reinmann at gmx.net
Tue Aug 29 14:16:34 CEST 2006


Hello mplayer folks,

I'm using the latest svn-trunk of mplayer on an upstream
debian-unstable.

When I'm playing a matroska file with more than one audio channel and I
want to switch while playing with "#" than mplayer crashes.

I did not test it with dvd or other files yet (I have none ;-) ).

If it helps i can upload a 5mb sample of the file.

Thanx for your help!

regards
Holger Reinmann 

System :
	debian sid
	Kernel 2.6.17-2-k7 
	libc 2.3.6
	gcc version 4.1.2 20060814 (prerelease) (Debian 4.1.1-11)
	GNU ld version 2.17 Debian GNU/Linux
	GNU assembler 2.17 Debian GNU/Linux


gdb output :

(gdb) run -v '/media/Extern
1/Futurama/Season_1/01-Zeit_und_Raum_3000.mkv' Starting
program: /home/pascal/src/mplayer-test/mplayer -v '/media/Extern
1/Futurama/Season_1/01-Zeit_und_Raum_3000.mkv' [Thread debugging using
libthread_db enabled] [New Thread -1495054656 (LWP 5762)]
MPlayer dev-SVN-r19590-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) XP 2400+ (Family: 6, Model: 8, Stepping: 1)
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/pascal/.mplayer/codecs.conf'
Reading /home/pascal/.mplayer/codecs.conf: Can't open
'/home/pascal/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '/media/Extern
1/Futurama/Season_1/01-Zeit_und_Raum_3000.mkv'
init_freetype
get_path('font/font.desc') -> '/home/pascal/.mplayer/font/font.desc'
font: can't open file: /home/pascal/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system
startup scripts.
Using nanosleep() timing
get_path('input.conf') -> '/home/pascal/.mplayer/input.conf'
Can't open input config file /home/pascal/.mplayer/input.conf: No such
file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such
file or directory
Falling back on default (hardcoded) input config
get_path('01-Zeit_und_Raum_3000.mkv.conf') ->
'/home/pascal/.mplayer/01-Zeit_und_Raum_3000.mkv.conf'

Playing /media/Extern 1/Futurama/Season_1/01-Zeit_und_Raum_3000.mkv.
get_path('sub/') -> '/home/pascal/.mplayer/sub/'
[file] File size is 227878584 bytes
STREAM: [file] /media/Extern
1/Futurama/Season_1/01-Zeit_und_Raum_3000.mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
[mkv] Found the head...
[mkv] + a segment...
[mkv] /---- [ parsing seek head ] ---------
[mkv] /---- [ parsing seek head ] ---------
[mkv] \---- [ parsing seek head ] ---------
[mkv] /---- [ parsing cues ] -----------
[mkv] \---- [ parsing cues ] -----------
[mkv] \---- [ parsing seek head ] ---------
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 1294.912s
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] |  + Track number: 1
[mkv] |  + Track type: Video
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: V_MS/VFW/FOURCC
[mkv] |  + CodecPrivate, length 40
[mkv] |  + Default duration: 40.000ms ( = 25.000 fps)
[mkv] |  + Language: und
[mkv] |  + Video track
[mkv] |   + Pixel width: 544
[mkv] |   + Pixel height: 416
[mkv] |   + Display width: 555
[mkv] |   + Display height: 416
[mkv] | + a track...
[mkv] |  + Track number: 2
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: A_AAC/MPEG2/MAIN
[mkv] |  + Default duration: 21.333ms ( = 46.875 fps)
[mkv] |  + Language: ger
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Channels: 2
[mkv] | + a track...
[mkv] |  + Track number: 3
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 0
[mkv] |  + Codec ID: A_AAC/MPEG2/MAIN
[mkv] |  + Default duration: 21.333ms ( = 46.875 fps)
[mkv] |  + Language: eng
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Channels: 2
[mkv] | + a track...
[mkv] |  + Track number: 4
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 0
[mkv] |  + Codec ID: A_AAC/MPEG2/MAIN
[mkv] |  + Default duration: 21.333ms ( = 46.875 fps)
[mkv] |  + Language: ger
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Channels: 2
[mkv] | + a track...
[mkv] |  + Track number: 5
[mkv] |  + Track type: Subtitle
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: S_VOBSUB
[mkv] |  + CodecPrivate, length 167
[mkv] |  + Language: ger
[mkv] | + a track...
[mkv] |  + Track number: 6
[mkv] |  + Track type: Subtitle
[mkv] |  + Default flag: 0
[mkv] |  + Codec ID: S_VOBSUB
[mkv] |  + CodecPrivate, length 167
[mkv] |  + Language: ger
[mkv] | + a track...
[mkv] |  + Track number: 7
[mkv] |  + Track type: Subtitle
[mkv] |  + Default flag: 0
[mkv] |  + Codec ID: S_VOBSUB
[mkv] |  + CodecPrivate, length 167
[mkv] |  + Language: ger
[mkv] |+ found cluster, headers are parsed completely :)
==> Found video stream: 1
[mkv] Aspect: 1.334135
[mkv] Track ID 1: video (V_MS/VFW/FOURCC), -vid 0
==> Found audio stream: 2
[mkv] Track ID 2: audio (A_AAC/MPEG2/MAIN), -aid 0, -alang ger
==> Found audio stream: 3
[mkv] Track ID 3: audio (A_AAC/MPEG2/MAIN), -aid 1, -alang eng
==> Found audio stream: 4
[mkv] Track ID 4: audio (A_AAC/MPEG2/MAIN), -aid 2, -alang ger
[mkv] Track ID 5: subtitles (S_VOBSUB), -sid 0, -slang ger
[mkv] Track ID 6: subtitles (S_VOBSUB), -sid 1, -slang ger
[mkv] Track ID 7: subtitles (S_VOBSUB), -sid 2, -slang ger
[mkv] Will play video track 1
[mkv] VobSub size: 720x576
[mkv] VobSub palette:
0f8080,7f8080,7f8080,7f8080,7f8080,7f8080,7f8080,ea8080,7f8080,af8080,7f8080,7f8080,7f8080,7f8080,7f8080,7f8080
[mkv] VobSub forced subs: 0
[mkv] VobSub size: 720x576
[mkv] VobSub palette:
0f8080,7f8080,7f8080,7f8080,7f8080,7f8080,7f8080,ea8080,7f8080,af8080,7f8080,7f8080,7f8080,7f8080,7f8080,7f8080
[mkv] VobSub forced subs: 0
[mkv] VobSub size: 720x576
[mkv] VobSub palette:
0f8080,7f8080,7f8080,7f8080,7f8080,7f8080,7f8080,ea8080,7f8080,af8080,7f8080,7f8080,7f8080,7f8080,7f8080,7f8080
[mkv] VobSub forced subs: 0
Matroska file format detected.
VIDEO:  [XVID]  544x416  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31  fourcc:0x44495658  size:544x416  fps:25.00
ftime:=0.0400
get_path('sub/') -> '/home/pascal/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
It seems there is no Xvideo support for your video card available.
Run 'xvinfo' to verify its Xv support and read
DOCS/HTML/en/video.html#xv!
See 'mplayer -vo help' for other (non-xv) video out drivers. Try -vo x11
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 4608 bytes for input buffer.
dec_audio: Allocating 49152 + 65536 = 114688 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 48000Hz  channels: 2
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio)
decoder)
==========================================================================
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
ao2: 48000 Hz  2 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl 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: 1.307692
VDec: vo config request - 544 x 416 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (544x416->556x416,flags=0,'MPlayer',0x32315659)
VO: [x11] 544x416 => 556x416 Planar YV12
VO: Description: X11 ( XImage/Shm )
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
Sharing memory.
SwScaler: using unscaled 0x32315659 (21VY) -> 0x42475220 (BGR ) special
converter
*** [vo] Allocating (slices) mp_image_t, 544x416x12bpp YUV planar,
339456 bytes
get_path('subfont.ttf') -> '/home/pascal/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
*** [vo] Allocating (slices) mp_image_t, 544x416x12bpp YUV planar,
339456 bytes
A:   1.8 V:   1.8 A-V:  0.004 ct: -0.016  46/ 46  7% 12%  2.3% 1 0
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1495054656 (LWP 5762)]
demux_mkv_control (demuxer=0x88828b0, cmd=12, arg=0xafe8d404)
    at demux_mkv.c:3737
3737              d_audio->id = track->tnum;
(gdb) bt
#0  demux_mkv_control (demuxer=0x88828b0, cmd=12, arg=0xafe8d404)
    at demux_mkv.c:3737
#1  0x081908c1 in demuxer_switch_audio (demuxer=0x88828b0, index=-1)
    at demuxer.c:1024
#2  0x080a27a2 in main (argc=3, argv=0xafe8f714) at mplayer.c:5091
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x81d37da to 0x81d381a:
0x081d37da <demux_mkv_control+106>:     lock mov (%eax),%edx
0x081d37dd <demux_mkv_control+109>:     test   %edx,%edx
0x081d37df <demux_mkv_control+111>:     js     0x81d3895
<demux_mkv_control+293>0x081d37e5 <demux_mkv_control+117>:     mov
$0x2,%ecx
0x081d37ea <demux_mkv_control+122>:     mov    %ebx,%eax
0x081d37ec <demux_mkv_control+124>:     call   0x81d3660
<demux_mkv_find_track_by_num>
0x081d37f1 <demux_mkv_control+129>:     test   %eax,%eax
0x081d37f3 <demux_mkv_control+131>:     je     0x81d380a
<demux_mkv_control+154>0x081d37f5 <demux_mkv_control+133>:     cmp
0xfffffff0(%ebp),%eax
0x081d37f8 <demux_mkv_control+136>:     je     0x81d380a
<demux_mkv_control+154>0x081d37fa <demux_mkv_control+138>:     mov
(%eax),%eax
0x081d37fc <demux_mkv_control+140>:     mov    0xffffffe4(%ebp),%edx
0x081d37ff <demux_mkv_control+143>:     mov    %eax,0x48(%edx)
0x081d3802 <demux_mkv_control+146>:     mov    %edx,(%esp)
0x081d3805 <demux_mkv_control+149>:     call   0x8191910 <ds_free_packs>
0x081d380a <demux_mkv_control+154>:     mov    0x34(%edi),%edi
0x081d380d <demux_mkv_control+157>:     mov    %edi,0xffffffe4(%ebp)
0x081d3810 <demux_mkv_control+160>:     mov    0xffffffe4(%ebp),%edx
---Type <return> to continue, or q <return> to quit---
0x081d3813 <demux_mkv_control+163>:     mov    0x48(%edx),%eax
0x081d3816 <demux_mkv_control+166>:     mov    0x10(%ebp),%edx
0x081d3819 <demux_mkv_control+169>:     mov    %eax,(%edx)
End of assembler dump.
(gdb) info all-registers
eax            0x0      0
ecx            0x3      3
edx            0x2      2
ebx            0x8883260        143143520
esp            0xafe8d3b0       0xafe8d3b0
ebp            0xafe8d3d8       0xafe8d3d8
esi            0x3      3
edi            0x88828b0        143141040
eip            0x81d37fa        0x81d37fa <demux_mkv_control+138>
eflags         0x10297  [ CF PF AF SF IF RF ]
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            -nan(0x080808080)        (raw 0xffff0000000080808080)
st2            <invalid float value>    (raw 0xffff0000000000000000)
st3            -1       (raw 0xbfff8000000000000000)
st4            12.664500303519896540378752991529154     (raw
0x4002caa1cb11fccceb8d)
st5            14.029299964579422521637752652168274     (raw
0x4002e078033d5a480---Type <return> to continue, or q <return> to
quit---
000)
st6            1        (raw 0x3fff8000000000000000)
st7            1        (raw 0x3fff8000000000000000)
fctrl          0x37f    895
fstat          0x432    1074
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}
---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 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0,
    0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
---Type <return> to continue, or q <return> to quit---
mm1            {uint64 = 0x80808080, v2_int32 = {0x80808080, 0x0},
v4_int16 = {
    0x8080, 0x8080, 0x0, 0x0}, v8_int8 = {0x80, 0x80, 0x80, 0x80, 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 = 0x8000000000000000, v2_int32 = {0x0,
0x80000000},
  v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0,
    0x0, 0x80}}
mm4            {uint64 = 0xcaa1cb11fccceb8d, v2_int32 = {0xfccceb8d,
    0xcaa1cb11}, v4_int16 = {0xeb8d, 0xfccc, 0xcb11, 0xcaa1}, v8_int8 =
{0x8d,
    0xeb, 0xcc, 0xfc, 0x11, 0xcb, 0xa1, 0xca}}
mm5            {uint64 = 0xe078033d5a480000, v2_int32 = {0x5a480000,
    0xe078033d}, v4_int16 = {0x0, 0x5a48, 0x33d, 0xe078}, v8_int8 =
{0x0, 0x0,
    0x48, 0x5a, 0x3d, 0x3, 0x78, 0xe0}}
mm6            {uint64 = 0x8000000000000000, v2_int32 = {0x0,
0x80000000},
  v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0,
    0x0, 0x80}}
mm7            {uint64 = 0x8000000000000000, v2_int32 = {0x0,
0x80000000},
  v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0,
    0x0, 0x80}}
(gdb)
(gdb) quit



More information about the MPlayer-users mailing list