Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am unable to play music file using mpg123. I have installed it using source code. I am getting below error.
[root@localhost Music]# mpg123 Behene_de.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.25.6; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
[src/libout123/modules/oss.c:174] error: Can't open default sound device!
[src/libout123/libout123.c:451] error: Found no driver out of [oss] working with device <default>.
main: [src/mpg123.c:308] error: out123 error 3: failure loading driver module
[src/libout123/modules/oss.c:174] error: Can't open default sound device!
[src/libout123/libout123.c:451] error: Found no driver out of [oss] working with device <default>.
main: [src/mpg123.c:308] error: out123 error 3: failure loading driver module
are you using OSS as your sound architecture?
or are you using ALSA? can you tell mpg123 to use alsa?
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,610
Rep:
Why did you install using source code and which guide did you use to do so? Which distribution are you using?
The error you see suggests that you have mpg123 set up to use the OSS sound device which, to me, seems odd.
@123 I found an youtube video to install mpg123 player in linux using source code . So first I downloaded tar.bz2 file and then , ran compiler to compile it. After that "make" "make install". I hope this information is helpful .
Nearly every distro has a ready compiled version of mpg123 in its repositories.
So unless you intend altering the source code, you might as well just install it.
Red Hat has always been very cautious about including anything in their distros which might subject them to litigation. As a result, many multimedia applications which require restricted codecs are not included. In an abundance of caution, until recently RH would not include the mp3 decoder codec. However, there is an unofficial repository called EPEL you can add which will give you access to many packages which RH won't include in their official distro for legal reasons. Here's an article explaining how to add EPEL:
Here's the genuine answer from a fellow CentOS user!
CentOS is just a free Red Hat, but without software that's patented in the USA: if they gave you that, Red Hat would be sued. Also, Red Hat is small, as it only includes things which a large company might want and which Red Hat is prepared to explain over the telephone. So we often need to use extra repositories, as explained here: https://wiki.centos.org/AdditionalRe...s/Repositories
EPEL is very good, but since it is also sponsored by Red Hat, it too leaves out the media codecs! For them, you need something like RPMFusion https://rpmfusion.org/
But if RPMFusion has its way, it might alter your base installation. You must prevent that, by setting up priorities before you let it install anything: https://wiki.centos.org/PackageManag...Yum/Priorities
So I have the CentOS repository set to priority=1, EPEL with priority=2, and RPMFusion with priority=3.
The mpg123 package is in the EPEL repo. And if the OP doesn't want to add the entire EPEL repo, he can download the mpg123 rpm and install it separately per these instructions:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.