Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Analog sound trouble Raspberry Pi

I try to play mp3 files with mpg321, mpg123 and omxplayer with hdmi works fine, but with the analog audio jack doesn't work I have installed alsa-tools and alsamixergui

I set the audio jack output:

sudo modprobe snd_bcm2835
sudo amixer cset numid=3 1

I test the speakers with

speaker-test -t sine -f 600

and works well, I can hear the sound, but when I try to play an mp3 file with :

omxplayer bubbling_water_1.mp3
mpg321 bubbling_water_1.mp3

not hear any sound at all, the same mp3 file play ok with hdmi output

sudo amixer cset numid=3 0

or

sudo amixer cset numid=3 2

but nothing happens on analog jack output any help ?

like image 584
Alf Avatar asked Dec 26 '22 20:12

Alf


1 Answers

I noticed this same problem. I haven't found a permanent solution yet, but what works for me is the following:

omxplayer -o local file.mp3

The audio comes out over HDMI, by the way, and the -o local flag forces it to line-out (local).

like image 139
Son of 8-Bits Avatar answered Dec 28 '22 09:12

Son of 8-Bits