spindle icon indicating copy to clipboard operation
spindle copied to clipboard

Sound: omxplayer, mixer, alsa, mplayer

Open heipei opened this issue 13 years ago • 3 comments

Hi,

since sound playback is my first important task for the Rasbperry Pi, I'm having some issues:

  • omxplayer works fine, can switch between local/hdmi, can stream from the internet.
  • alsamixer does not work, i.e. the output volume of omxplayer does not change
  • mplayer does not work (tried with different -ao), neither does the speaker-test
  • dmesg gives weird messages when trying to use mplayer/speaker-test

I can provide outputs of these programs, but you guys can do that yourselves I suppose. The question thus is:

  • What does omxplayer do differently, what kind of (strange) libs does it use?
  • Is there some mixer that works?
  • What does it take to get mplayer to work?

Loving the Pi so far, and happy that there is a Debian image for it ;)

heipei avatar Jun 29 '12 21:06 heipei

omxplayer does not use ALSA, instead it uses the OpenMAX sound APIs. There have been some fixes to the ALSA drivers for the pi since I made this last image (I need to put out an update to the firmware package).

asb avatar Jun 29 '12 21:06 asb

Thanks for the quick reply. In the meantime, is there any way to adjust volume for OpenMAX programs? Even if its a simple C snippet, I'd be thankful

heipei avatar Jun 30 '12 06:06 heipei

It may not answer your question exactly but controlling volume on omxplayer is discussed here

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=38&t=7987

KenT2 avatar Jun 30 '12 08:06 KenT2