mpg123 not working. (Solved!)

Booting, installing, newbie
Post Reply
Message
Author
mrj
Posts: 19
Joined: Wed 19 Aug 2009, 16:57

mpg123 not working. (Solved!)

#1 Post by mrj »

On my laptop programs playing audio files such as gnome player and moc (Music On Console)
work fine but mpg123 doesn't work. I get this in the terminal.

# mpg123 SM183_Barrels.mp3
[module.c:138] error: Failed to open module alsa: file not found
[module.c:138] error: Failed to open module oss: file not found
[audio.c:180] error: Unable to find a working output module in this list: alsa,oss
[audio.c:527] error: Failed to open audio output module
[mpg123.c:779] error: Failed to initialize output, goodbye.

Does anyone know what I have to do to get mpg123 to work?
Last edited by mrj on Sat 10 Nov 2012, 15:49, edited 1 time in total.
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#2 Post by Semme »

MRJ- have a read.. down near the bottom (and my guess as well)..
mrj
Posts: 19
Joined: Wed 19 Aug 2009, 16:57

#3 Post by mrj »

Thank you Semme for your reply.

Using a search engine I never found that page.

It seems that ldconfig is important to the solution:

"You could use ldconfig from root to update the dynamic linker bindings.
Include the library path "/usr/lib/mpg123" to a new file /etc/ld.so.conf.d/mpg123.conf,
rerun ldconfig."

In my computer ldconfig doesn't exist:

"# ldconfig
sh: ldconfig: command not found"

So I'm stuck for now.

Semme, thanks again for trying to help me
User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#4 Post by pemasu »

ldconfig is inside devx sfs package. Download devx sfs and load it.
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#5 Post by Semme »

MRJ- if your Dpup's *Squeeze* built, install this :wink: then run ldconfig.
postfs1

#6 Post by postfs1 »

mrj
Posts: 19
Joined: Wed 19 Aug 2009, 16:57

#7 Post by mrj »

"Download devx sfs and load it." -Done
"install this (libc-bin_2.11.3-4_i386.deb) then run ldconfig" -Done

No difference, mpg123 didn't work and gave identical messages.

Rebooted and tried mpg123 again just in case something changed
but no luck.

Tried different lines suggested by postfs1
"I tried -a 0:0, then -a :hw, then -a 'hw:0,0', then -a 0:hw:0, ... -a :plughw"
No luck

aoss gave me "sh: aoss: command not found"

So mpg123 does not work with Dpup Exprimo 5.x.3.2.14.1 (yet).

Here's what I find interesting. If I use a different puppy linux version mpg123 works.
On the very same laptop I loaded Pizzasgood multi-user version of 4.2.1 and installed
mpg123-1.9.1-i486.pet. I did this very early this morning and while it didn't work
right away I think I rebooted the system and then it did work and I didn't have to do
any of the above suggestions. Could this give us a clue as to what I should do to get
mpg123 working in Dpup Exprimo 5.x.3.2.14.1 (the O/S I currently like using) ?

Thank you very much for all your replies and continued interest.
User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#8 Post by Semme »

Try the command like this: # mpg123.bin SM183_Barrels.mp3.. how it is aboard Lucid..

Then again- maybe you try one of these *Squeeze* pkgs installed right on top. Pemasu?
User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#9 Post by pemasu »

I tested it with mpg123 from PPM, it was from debian squeeze main repo and the libmpg123 or something was also needed. I had to create symlink from mpg123.bin to mpg123. And thats it. It played without anything else. I didnt use 3.2.1.4 though but newer dpup version.
I usually dont test or use binaries from forum if I can avoid, just for sure. Usually I Compile the apps from source if they are not found from ppm or recompile is useful to reduce the dependencies...or I want to use the latest version. Keeping up with debian squeeze compatibility is what I try to achieve.
mrj
Posts: 19
Joined: Wed 19 Aug 2009, 16:57

#10 Post by mrj »

Awww Nuts! I forgot about the possibility of there might be
.deb packages for mpg123. Because mpg123 is "old" I thought I'd
just install an old .pet package and it should work fine.

I installed these two packages:

mpg123_1.12.1-3_i386.deb
libmpg123-0_1.12.1-3_i386.deb


The following are required dependencies but
they were not installed and mpg123 still works:

libc6_2.11.3-4_i386.deb
libc-bin_2.11.3-4_i386.deb
libgcc1_4.4.5-8_i386.deb
gcc-4.4-base_4.4.5-8_i386.deb
libltdl7_2.2.6b-2_i386.deb


And finally ".bin" is necessary!:

# mpg123 -vC SM183_Barrels.mp3 -> doesn't work
sh: mpg123: command not found
# mpg123.bin -vC SM183_Barrels.mp3 -> this works!

"-v" gives file info and "-C" gives one keyboard control
on the playback and you can combine it as "-vC".I like the
keyboard control so I can fast forward during a multi-topic
podcast.

So all is good now!
Thanks guys for helping me get mpg123 working.
Attachments
mpg123-working.png
mpg123 working
(50.85 KiB) Downloaded 514 times
User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#11 Post by pemasu »

ln -s /usr/bin/mpg123.bin /usr/bin/mpg123

....and great to hear you got satisfying solution.
mrj
Posts: 19
Joined: Wed 19 Aug 2009, 16:57

#12 Post by mrj »

"ln -s /usr/bin/mpg123.bin /usr/bin/mpg123 " - done.

Cool, now "# mpg123 -vC SM183_Barrels.mp3" works.

Thanks pemasu !
Post Reply