Find the answer to your Linux question:
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' ". ...
  1. #1
    Just 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

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    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

  3. #3
    Just Joined!
    Join Date
    Mar 2011
    Posts
    3
    Quote Originally Posted by devils casper View Post
    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
    Thanks for the response casper. I just shutdown my comp to head home from work, but i'm going to try that out as soon as I get home.

    I'll update on my success/fail after.

    Much Appreciated

    E

  4. #4
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    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.
    Code:
    sudo apt-get install mpg123
    To use:
    Code:
    mpg123 audio.mp3
    Linux Mint + IceWM Registered:#371367 New Members: click here

  5. #5
    Linux Guru Rubberman's Avatar
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...