TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: PETE
from: A. DUMAS
date: 2019-06-14 07:04:00
subject: Re: mpg123 to audio jack?

Pete wrote, on 13-06-2019 23:38:
> In a previous thread I mentioned that I'm using omxplayer
> to play audio (streams), but others said they were just
> using mpg123, which seems more reasonable.  However, I'm
> feeding the audio to my sound system through the audio
> jack, and I can't get mpg123 to do that.  It insists
> on going through HDMI, which I usually don't want.
> (I log in via SSH from other machines)
>
> I assume I'm likely being stupid, but I've been playing
> for a while without luck.  Can somebody help?

The player program doesn't determine where the output goes, the system
does that. In a terminal window:

amixer cset numid=3 1

where the second parameter is: 0=auto (default), 1=jack, 2=hdmi
Doesn't need sudo and persists across reboots. I think it can also be
set via raspi-config (which does need sudo, although maybe not for this
setting, I never tried).

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.