[MPlayer-users] Crash when using hwac3
Johan
meerlin_88 at hotmail.com
Sun Oct 26 20:24:48 CET 2008
Hi,
I have compiled latest svn code (revision 27834) and try to use it to play a mkv container with a AC3 sound stream but mplayer does crash during init. I have used the same set of command line parameters and also played the same files in mplayer 1.0RC2 without any problem but with current svn code it always crash. When I run without the parameters "-afm hwac3 -ao alsa:noblock:device=hw=0.1" or with the parameter "-nosound" everything is running ok. Mplayer is also capable of playing a video file without AC3 without crashing. I want to get the AC3 stream to my Yamaha receiver to get true Dolby Digital 5.1 and DTS which works perfectly in Mplayer 1.0RC2 with the command line below.
This is the command line i'm using:
mplayer -speed 1.04 -subfont-text-scale 3 -subalign 2 -subpos 97 -menu -stop-xscreensaver -fs -zoom -quiet -utf8 -unicode -subcp latin1 -monitoraspect 16:9 -slang sv,en -vo xv -ac hwac3 -ao alsa:noblock:device=hw=0.1 -lavdopts threads=2:fast:skiploopfilter=all -sws 2 -cache 51200 -cache-min 25 video_with_ac3.mkv
My $HOME/.mplayer/config is empty.
mplayer SVN code was built with:
./configure --prefix=/usr --enable-menu
make
make install
What is causing this problem?
This is the info i got from gdb when the crash occurs (a null reference problem since parameter s is NULL when af_calc_filter_multiplier is called):
Program received signal SIGSEGV, Segmentation fault.[Switching to Thread -1241700000 (LWP 27273)]0x0810c3a8 in af_calc_filter_multiplier (s=0x0) at libaf/af.c:540540 af_instance_t* af=s->first;(gdb) bt#0 0x0810c3a8 in af_calc_filter_multiplier (s=0x0) at libaf/af.c:540#1 0x0811eaa9 in decode_audio (sh_audio=0x8be48b8, minlen=65536) at libmpcodecs/dec_audio.c:425#2 0x080918f8 in main (argc=38, argv=0xbfe681a4) at mplayer.c:2044
Dump of assembler code from 0x810c388 to 0x810c3c8:0x0810c388 <af_lencalc+24>: add $0x24,%al0x0810c38a <af_lencalc+26>: add $0x4,%esp0x0810c38d <af_lencalc+29>: faddp %st,%st(1)0x0810c38f <af_lencalc+31>: faddl 0x869c0b00x0810c395 <af_lencalc+37>: fisttpl 0xfffffffc(%ebp)0x0810c398 <af_lencalc+40>: mov 0xfffffffc(%ebp),%eax0x0810c39b <af_lencalc+43>: leave0x0810c39c <af_lencalc+44>: ret0x0810c39d <af_lencalc+45>: lea 0x0(%esi),%esi0x0810c3a0 <af_calc_filter_multiplier+0>: push %ebp0x0810c3a1 <af_calc_filter_multiplier+1>: mov %esp,%ebp0x0810c3a3 <af_calc_filter_multiplier+3>: mov 0x8(%ebp),%eax0x0810c3a6 <af_calc_filter_multiplier+6>: fld10x0810c3a8 <af_calc_filter_multiplier+8>: mov (%eax),%eax0x0810c3aa <af_calc_filter_multiplier+10>: lea 0x0(%esi),%esi0x0810c3b0 <af_calc_filter_multiplier+16>: fmull 0x28(%eax)0x0810c3b3 <af_calc_filter_multiplier+19>: mov 0x18(%eax),%eax0x0810c3b6 <af_calc_filter_multiplier+22>: test %eax,%eax0x0810c3b8 <af_calc_filter_multiplier+24>: jne 0x810c3b0 <af_calc_filter_multiplier+16>0x0810c3ba <af_calc_filter_multiplier+26>: pop %ebp0x0810c3bb <af_calc_filter_multiplier+27>: ret0x0810c3bc <af_calc_filter_multiplier+28>: lea 0x0(%esi),%esi0x0810c3c0 <af_calc_delay+0>: push %ebp0x0810c3c1 <af_calc_delay+1>: mov %esp,%ebp0x0810c3c3 <af_calc_delay+3>: mov 0x8(%ebp),%eax0x0810c3c6 <af_calc_delay+6>: mov (%eax),%eaxEnd of assembler dump.
(gdb) info all-registerseax 0x0 0ecx 0x0 0edx 0x10000 65536ebx 0x800 2048esp 0xbfe66ea8 0xbfe66ea8ebp 0xbfe66ea8 0xbfe66ea8esi 0x8be48b8 146688184edi 0x8be48b8 146688184eip 0x810c3a8 0x810c3a8 <af_calc_filter_multiplier+8>eflags 0x210206 [ PF IF RF ID ]cs 0x73 115ss 0x7b 123ds 0x7b 123es 0x7b 123fs 0x0 0gs 0x33 51st0 1 (raw 0x3fff8000000000000000)st1 0 (raw 0x00000000000000000000)st2 0 (raw 0x00000000000000000000)st3 0 (raw 0x00000000000000000000)st4 0 (raw 0x00000000000000000000)st5 0.002236243302466923413029150757153074 (raw 0x3ff6928defd9993cdbcc)st6 1.5755772345361144234555493994416625e-90 (raw 0x3ed4cd68923030d3abb6)st7 0 (raw 0x00000000000000000000)fctrl 0x37f 895fstat 0x3820 14368ftag 0x3fff 16383fiseg 0x73 115fioff 0x810c3a6 135316390foseg 0x7b 123fooff 0x0 0fop 0x1e8 488xmm0 {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}, 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 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}}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 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}mm5 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}mm6 {uint64 = 0x928defd9993cdbcc, v2_int32 = {0x993cdbcc, 0x928defd9}, v4_int16 = {0xdbcc, 0x993c, 0xefd9, 0x928d}, v8_int8 = {0xcc, 0xdb, 0x3c, 0x99, 0xd9, 0xef, 0x8d, 0x92}}mm7 {uint64 = 0xcd68923030d3abb6, v2_int32 = {0x30d3abb6, 0xcd689230}, v4_int16 = {0xabb6, 0x30d3, 0x9230, 0xcd68}, v8_int8 = {0xb6, 0xab, 0xd3, 0x30, 0x30, 0x92, 0x68, 0xcd}}
Output of mplayer when is crash:
MPlayer dev-SVN-r27834-4.2.3 (C) 2000-2008 MPlayer TeamCPU: Genuine Intel(R) CPU 2140 @ 1.60GHz (Family: 6, Model: 15, Stepping: 2)CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2[MENU] Can't open menu config file: /root/.mplayer/menu.confStruct fs_cfg doesn't have any auto-close field[MENU] bad attribute auto-close=yes in menu 'open_list' at line 9Menu initialized: /usr/etc/mplayer/menu.conf
Playing /myth/video/video_with_ac3.mkv.Cache fill: 3.09% (1622016 bytes)[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang und[mkv] Will play video track 1.Matroska file format detected.VIDEO: [avc1] 1280x528 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)dvdsublang...od indy4 sv enSUB: Detected subtitle file format: subviewerSUB: Read 909 subtitles.SUB: Adjusted 4 subtitle(s).SUB: Added subtitle file (1): /myth/video/video_with_ac3.srtvo: couldn't open the X11 display ()!Error opening/initializing the selected video_out (-vo) device.==========================================================================Forced audio codec: hwac3Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIFNo accelerated IMDCT transform foundhwac3: switched to AC3, 640000 bps, 48000 HzAUDIO: 48000 Hz, 2 ch, ac3, 640.0 kbit/41.67% (ratio: 80000->192000)Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)==========================================================================[AO_ALSA] alsa-lib: conf.c:3843:(parse_args) Unknown parameter AES0[AO_ALSA] alsa-lib: conf.c:3969:(snd_config_expand) Parse arguments error: No such file or directory[AO_ALSA] alsa-lib: pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM hw:0,1,AES0=6AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)[format] Sample format big-endian AC3 not yet supportedCouldn't find matching filter/ao format!Video: no videoStarting playback...
MPlayer interrupted by signal 11 in module: decode_audio- MPlayer crashed by bad usage of CPU/FPU/RAM. Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.- MPlayer crashed. This shouldn't happen. It can be a bug in the MPlayer code _or_ in your drivers _or_ in your gcc version. If you think it's MPlayer's fault, please read DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and won't help unless you provide this information when reporting a possible bug.
_________________________________________________________________
You live life beyond your PC. So now Windows goes beyond your PC.
http://clk.atdmt.com/MRT/go/115298556/direct/01/
More information about the MPlayer-users
mailing list