[MPlayer-users] [Bug Report] sound bug toggle

Antony Suter sutera at internode.on.net
Thu Jul 18 20:39:01 CEST 2002

I've had a wierd sound bug with mplayer for the last 2 months or so. I
play a divx fine, then I play it again and there is no sound. I play it
a third time it has sound again. I play it a fourth time, no sound, etc.

If I use a different app, like XMMS, after playing the divx for the
first time, I get no sound. Doesn't matter what app I use. If I then
play a divx with mplayer, I get no sound, but the sound device is
restored to normal, and other sound apps then work again.

Other sound apps can run multiple times without problems. It might be
worth noting the sound card is on IRQ 9.

My system info is at the end. The choice of divx I play is not important
- it happens with any of them. The log files between runs are almost
identical. Here is the first run:


MPlayer CVS-020719-01:36-3.1.1 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading /home/antony/.mplayer/codecs.conf: can't open '/home/antony/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/share/mplayer/codecs.conf: 36 audio & 103 video codecs
CommandLine:get_path('font/font.desc') -> '/home/antony/.mplayer/font/font.desc'
 '-v' 'StarOcean1.avi'
font: can't open file: /home/antony/.mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Linux RTC init error in ioctl (rtc_pie_on): Permission denied
Using usleep() timing
get_path('input.conf') -> '/home/antony/.mplayer/input.conf'
Can't open input config file /home/antony/.mplayer/input.conf : No such file or directory
Can't open input config file /usr/local/share/mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) input config

Playing StarOcean1.avi
Not an URL!
File size is 144371712 bytes
Detected AVI file format!
======= AVI Header =======
us/frame: 66733  (fps=14.985)
max bytes/sec: 288093
padding: 0
MainAVIHeader.dwFlags: (2064) HAS_INDEX TRUST_CKTYPE
frames  total: 19926   initial: 0
streams: 2
Suggested BufferSize: 65536
Size:  480 x 360
==> Found video stream: 0
found 'bih', 40 bytes of 40
======= STREAM Header =======
Type: vids   FCC: div3 (33766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 149850/10000 = 14.985
Start: 0   Len: 19926
Suggested BufferSize: 35934
Quality 10000
Sample size: 0
Regenerating keyframe table for DIVX 3 video
======= VIDEO Format ======
  biSize 40
  biWidth 480
  biHeight 360
  biPlanes 1
  biBitCount 24
  biCompression 861292868='DIV3'
  biSizeImage 518400
==> Found audio stream: 1
found 'wf', 30 bytes of 20
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 11982/1 = 11982.000
Start: 0   Len: 15932726
Suggested BufferSize: 65536
Quality -1
Sample size: 1
Broken chunk?  chunksize=1606  (id=JUNK)
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 11982
Block align: 1
bits/sample: 0
cbSize: 12
Found movie at 0x800 - 0x7E43A2A
Reading INDEX block, 20170 chunks for 19926 frames
Broken chunk?  chunksize=0  (id=idx1)
Reading INDEX block, 20170 chunks for 19926 frames
stream_seek: WARNING! Can't seek to 0x81B3C700 !
AVI index offset: 0x7FC (movi=0x800 idx0=0x4 idx1=0x464)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
Detected NON-INTERLEAVED AVI file-format!
AVI: Searching for audio stream (id:1)
XXX initial  v_pts=0.000  a_pos=0 (0.000) 
AVI video length=116301484
VIDEO:  [DIV3]  480x360  24bpp  14.98 fps  699.7 kbps (85.4 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:480x360  fps:14.98  ftime:=0.0667
get_path('sub/') -> '/home/antony/.mplayer/sub/'
Detected audio codec: [mp3] afm:1 (mp3lib MPEG layer-2, layer-3)
Initializing audio codec...
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
init layer2&3 finished, tables done
mp3lib: using 3DNow!Ex optimized decore!

MPEG 1.0, Layer III, 44100 Hz 96 kbit Joint-Stereo, BPF: 313
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, sfmt: 0x10 (2 bps), ratio: 12000->176400 (96.0 kbit)
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x960 with depth 24 and 32 bpp (":0" => local display)
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
libavcodec: CPU flags: mmx mmxext 3dnow
Detected video codec: [ffdivx] vfm:5 (FFmpeg DivX ;-) (MS MPEG-4 v3))
vo_xv: get: XV_DOUBLE_BUFFER = 1
vo_xv: assume: XV_DOUBLE_BUFFER = 2000
vo_xv: get: XV_COLORKEY = 66046
vo_xv: assume: XV_COLORKEY = 31
vo_xv: assume: XV_AUTOPAINT_COLORKEY = 2000
vo_xv: get: XV_BRIGHTNESS = 0
vo_xv: assume: XV_BRIGHTNESS = 0
vo_xv: get: XV_CONTRAST = 4096
vo_xv: assume: XV_CONTRAST = 0
vo_xv: get: XV_SATURATION = 4096
vo_xv: assume: XV_SATURATION = 0
vo_xv: get: XV_HUE = 0
vo_xv: assume: XV_HUE = -1000
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
ao2: 44100 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags:   8/8  (4096 bytes/frag)  free:  32768
Start playing...
VDec: vo config request - 480 x 360 (preferred csp: Planar YV12)  
vo_debug: query(Planar YV12) returned 0x437 (i=0) 
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 480x360 => 480x360 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de>
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 119 for hw scaling
vo_xv: reset gamma correction
[xv] dx: 0 dy: 0 dw: 480 dh: 360
Disabling DPMS
DPMSDisable stat: 1
*** [vo] Allocating mp_image_t, 480x368x12bpp YUV planar, 264960 bytes
[xv] dx: 0 dy: 0 dw: 480 dh: 360
*** [vo] Allocating mp_image_t, 480x368x12bpp YUV planar, 264960 bytes
Successfully enabled DPMS
vo: uninit ...

Exiting... (Quit)


Here is the diff between the first run and the second run. The log files
just keep toggling back and forth between the two.

--- out1.txt	Fri Jul 19 03:56:50 2002
+++ out2.txt	Fri Jul 19 03:56:57 2002
@@ -138,10 +138,10 @@
 AO: Author: A'rpi
 ao2: 44100 Hz  2 chans  Signed 16-bit (Little-Endian)
 audio_setup: using '/dev/dsp' dsp device
-audio_setup: sample format: Signed 16-bit (Little-Endian) (requested:
Signed 16-bit (Little-Endian))
-audio_setup: using 2 channels (requested: 2)
-audio_setup: using 44100 Hz samplerate (requested: 44100)
-audio_setup: frags:   8/8  (4096 bytes/frag)  free:  32768
+audio_setup: Can't open audio device /dev/dsp: Device or resource busy
+couldn't open/init audio device -> NOSOUND
+Audio: no sound!!!
+Freeing 0 unused audio chunks
 Start playing...
 VDec: vo config request - 480 x 360 (preferred csp: Planar YV12)  
 vo_debug: query(Planar YV12) returned 0x437 (i=0) 


System info:

Mandrake 8.2, with some mandrake cooker packages like gnome2.

Linux gestalt.lan 2.4.19-rc1-ac7-as199 #1 Thu Jul 18 15:46:47 EST 2002
i686 unknown
(Self compiled linux kernel)

-rwxr-xr-x    1 root     root      1138184 Jul  6 01:58
lrwxrwxrwx    1 root     root           13 Jul  8 03:30 /lib/libc.so.6
-> libc-2.2.5.so

XFree86 Version 4.2.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 23 January 2002
	If the server is older than 6-12 months, or if your card is
	newer than the above date, look for a newer version before
	reporting problems.  (See http://www.XFree86.Org/)
Build Operating System: Linux 2.4.18-6mdksmp i686 [ELF] 
Module Loader present

Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.1.1/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib
--with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix --disable-checking
--enable-long-long --with-gxx-include-dir=/usr/include/g++-v31
--enable-languages=c,c++,f77,objc,java --host=i586-mandrake-linux-gnu
Thread model: posix
gcc version 3.1.1 (Mandrake Linux 8.3 3.1.1-0.7mdk)

GNU ld version 20020627

GNU assembler 20020627
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms
the GNU General Public License.  This program has absolutely no
This assembler was configured for a target of `i586-mandrake-linux-gnu'.

processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 4
model name	: AMD Athlon(tm) Processor
stepping	: 2
cpu MHz		: 1343.109
cache size	: 256 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips	: 2680.42


Video card info:

Nvidia binary driver

NVRM version: NVIDIA NVdriver Kernel Module  1.0-2960  Tue May 14
07:41:42 PDT 2002
GCC version:  gcc version 3.1.1 (Mandrake Linux 8.3 3.1.1-0.7mdk)

Model: 		 GeForce3
IRQ:   		 11
Video BIOS:
Card Type: 	 AGP


Sound card info:

Hercules Gametheater XP - uses kernel driver cs46xx.o

Crystal 4280/46xx + AC97 Audio, version 1.28.32, 15:53:59 Jul 18 2002
cs46xx: Card found at 0xdc800000 and 0xdc000000, IRQ 9
cs46xx: Hercules Game Theatre XP (1681:0050) at 0xdc800000/0xdc000000,
ac97_codec: AC97 Audio codec, id: 0x4352:0x592d (Cirrus Logic CS4294)

- Antony Suter  (sutera internode on net)  "Exner"
- "Tools to make tools."

More information about the MPlayer-users mailing list