Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Ok, that's a bit of a strange problem, that somehow crept into my system. It used to work fine.

Here is the problem as far as I can identify it. When I try to play certain video files with mplayer, there is no sound. As far as I can tell, it is only an issue with ac3 and dts sound tracks (using the ffmpeg decoder).

Mplayer says:

==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 6 ch, s16le, 1536.0 kbit/33.33% (ratio: 192000->576000)
Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS)
==========================================================================
[AO_ALSA] Playback open error: Device or resource busy
Failed to initialize audio driver 'alsa'
Could not open/initialize audio device -> no sound.
Audio: no sound

(similar with ac3 sound, but using the ffac3 audio codec).

Trying different audio output (-ao oss/pcm/sdl) doesn't fix the problem. The strange thing is that if I play these files directly with ffplay, they work fine.

mplayer sound with mp3/ogg is fine

My alsa configuration is standard (no /etc/asound.conf or ~/.asound*)

OS: Linux Gentoo
Mplayer: 1.0_rc4_p20100213 (SVN-r30554-4.3.4)
FFMpeg: 0.5_p20601-r1 (SVN-r20601)

Any other information I can provide?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

It turns out ALSA was being taken by another application and wouldn't allow multiple outputs at the same time. After some googling, that seems to be a sign for a sound card that doesn't support hardware mixing. I found some ways to allow software mixing, but they seemed pretty hacky. What else I found was a way to see which application is using alsa, which turned out to be pretty useful.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.