LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-11-2017, 10:12 PM   #1
vwalter
LQ Newbie
 
Registered: Nov 2017
Posts: 4

Rep: Reputation: Disabled
Unable to play music file using mpg123


Hi,

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


Please help..
 
Old 11-12-2017, 04:34 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,726
Blog Entries: 3

Rep: Reputation: 1622Reputation: 1622Reputation: 1622Reputation: 1622Reputation: 1622Reputation: 1622Reputation: 1622Reputation: 1622Reputation: 1622Reputation: 1622Reputation: 1622
Quote:
Originally Posted by vwalter View Post
[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?
 
Old 11-12-2017, 06:05 AM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,848

Rep: Reputation: 1951Reputation: 1951Reputation: 1951Reputation: 1951Reputation: 1951Reputation: 1951Reputation: 1951Reputation: 1951Reputation: 1951Reputation: 1951Reputation: 1951
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.
 
Old 11-13-2017, 07:22 AM   #4
vwalter
LQ Newbie
 
Registered: Nov 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
I am new with linux and using centOS 7 .

@ondoho I don't know how to do it,

@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 .
 
Old 11-13-2017, 07:56 AM   #5
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: AntiX
Posts: 1,950

Rep: Reputation: Disabled
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.
 
Old 11-14-2017, 02:42 AM   #6
vwalter
LQ Newbie
 
Registered: Nov 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
No, It was not in CentOS7 and when I type command # yum install mpg123, it showed nothing...
 
Old 11-14-2017, 08:58 AM   #7
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,575

Rep: Reputation: 220Reputation: 220Reputation: 220
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:

https://www.cyberciti.biz/faq/instal...os-redhat-7-x/

Once EPEL is added you should have a functioning mpg123 package available.
 
1 members found this post helpful.
Old 11-14-2017, 11:40 AM   #8
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,673

Rep: Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485
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.
 
1 members found this post helpful.
Old 11-14-2017, 11:47 AM   #9
jsbjsb001
Member
 
Registered: Mar 2009
Location: hopefully somewhere on earth? ;)
Distribution: Whatever Linux distro that suits my needs!
Posts: 718

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
The nux-dextop with the EPEL repo enabled would be a lot safer, as they should not overwrite any "base" packages.

You can also use VLC media player, which might be a lot easier for you.
 
1 members found this post helpful.
Old 11-14-2017, 03:45 PM   #10
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,575

Rep: Reputation: 220Reputation: 220Reputation: 220
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:

https://centos.pkgs.org/7/epel-x86_6...86_64.rpm.html
 
1 members found this post helpful.
Old 11-15-2017, 02:32 PM   #11
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: AntiX
Posts: 1,950

Rep: Reputation: Disabled
Quote:
Originally Posted by vwalter View Post
No, It was not in CentOS7 and when I type command # yum install mpg123, it showed nothing...
Try 'mpg321', it's almost the same, or you may have 'amp' available.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to play music on linux ubuntu 10.04 mato1204 Linux - Software 1 04-21-2011 10:34 AM
Unable to play music in debian macubex Linux - Newbie 15 04-12-2009 02:40 AM
cdrom unable to play music on intel 815 motherboard bong.mau Linux - Hardware 5 06-07-2007 03:24 PM
KsCD | XMMS | KDE unable to play music CDs on non-root accounts. Aeoruuk Linux - Software 5 08-02-2006 12:53 PM
when i try to play a sound file with mpg123 or mpg321 i get an error VioLaToR Linux - Software 5 02-24-2004 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration