Results 1 to 5 of 5
I have just installed the play command in my terminal and when I try to play an mp3 i get the error " no handler for file extension 'mp3' ".
...
- 03-03-2011 #1Just Joined!
- Join Date
- Mar 2011
- Posts
- 3
play in terminal
I have just installed the play command in my terminal and when I try to play an mp3 i get the error " no handler for file extension 'mp3' ".
Am I required to create a default action that happens when an mp3 file is called, like opening and audio player, or do I just need to install some specific drivers?
Thank you in advance for any help.
Remember, I don't like being a n00b at this anymore than you like me being one
E
- 03-03-2011 #2
Ubuntu doesn't support mp3 player out of box and you have to install codecs for it.
Execute this command in Terminal to install Restricted Extras:
Code:sudo apt-get update sudo apt-get install ubuntu-restricted-extras
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-03-2011 #3Just Joined!
- Join Date
- Mar 2011
- Posts
- 3
- 03-04-2011 #4
If I'm remembering correctly, sox (which is the program that uses the "play" command) is "crippled" by default in Ubuntu and will not play mp3s unless especially compiled to do so from source. Try what devils casper recommends. If still no joy, there is always the great command line player mpg123 which we use regularly for commercial radio broadcasting.
To use:Code:sudo apt-get install mpg123
Code:mpg123 audio.mp3
- 03-04-2011 #5Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,977
If you are trying to play an mp3 from the command line (no gui), then you will probably have to compile sox/play from source as mentioned by Dapper Dan, enabling support for mp3 when you configure it to build.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
