Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: How to play AMR audio files

  1. #1
    Join Date
    Jun 2006
    Beans
    Hidden!

    How to play AMR audio files

    I have a lot of AMR audio files that my mobile phone (Sony Ericsson K810i) creates. I would like to be able to play these files in Ubuntu.

    I once saw a patch for ffmpeg that enabled support for AMR, but it was rather complicated to get working properly.

    Is there a better way of playing AMR audio in Ubuntu?

    I would like to be able to convert the AMR files to FLAC, OGG or some other open format. Preferably a lossless one, so FLAC would be best.

  2. #2
    Join Date
    Aug 2006
    Beans
    382
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: How to play AMR audio files

    You might try installing libamrnb and libamrwb.
    Converting these files to FLAC will just give you a lossless representation of the previous lossy audio files.

  3. #3
    Join Date
    Aug 2006
    Beans
    7

    Re: How to play AMR audio files

    Realplayer for Linux will play AMR files.

  4. #4
    Join Date
    Jun 2006
    Beans
    Hidden!

    Re: How to play AMR audio files

    Quote Originally Posted by shirilover View Post
    You might try installing libamrnb and libamrwb.
    I do not have those packages.
    Which sources do I need to add in order to get them?

    When I have these libs installed, whould mpg321, amarok and so on be able to play AMR-files?

    How do you recommend that I convert them to FLAC?


    Quote Originally Posted by shirilover View Post
    Converting these files to FLAC will just give you a lossless representation of the previous lossy audio files.
    I am aware that AMR is lossy, but since the AMR files are the *original recordings*, then there does not exist any more data than there is in the AMRs. So I would like to be able to keep as much information as possible from these recordings. Hence the FLAC codec.

  5. #5
    Join Date
    Aug 2006
    Beans
    382
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: How to play AMR audio files

    Those packages are available in the Medibuntu repos in the non-free section -> http://www.medibuntu.org/

    If amarok is using the xine engine, it should use libxine1-ffmpeg, libxine1-plugins and libxine1-misc-plugins which 'should' play these files.

    As for converting, you could try -> http://media-convert.com/

  6. #6
    Join Date
    Jun 2006
    Beans
    Hidden!

    Re: How to play AMR audio files

    Quote Originally Posted by shirilover View Post
    Those packages are available in the Medibuntu repos in the non-free section -> http://www.medibuntu.org/

    If amarok is using the xine engine, it should use libxine1-ffmpeg, libxine1-plugins and libxine1-misc-plugins which 'should' play these files.

    As for converting, you could try -> http://media-convert.com/
    Well, I have installed the lib packages you mention for Amarok. But Amarok will not play the AMR files. When I drag them to the playlist it says "some media could not be loaded(not playable)".

  7. #7
    Join Date
    Jun 2006
    Location
    Manchester, UK
    Beans
    305

    Re: How to play AMR audio files

    Quote Originally Posted by bpny View Post
    Realplayer for Linux will play AMR files.
    thank you

  8. #8
    Join Date
    Jun 2006
    Beans
    Hidden!

    Question Re: How to play AMR audio files

    I would like to be able to convert the AMR files to FLAC, OGG or some other open format.

    Is this possible?
    How?

  9. #9
    Join Date
    Sep 2006
    Beans
    3,483

    Re: How to play AMR audio files

    Update: This post is now outdated because as andrew.46 notes, "FFmpeg has dropped support for the non-free amr libraries in favour of opencore-amr". See his opencore-amr post for more info.

    Quote Originally Posted by tdn View Post
    I would like to be able to convert the AMR files to FLAC, OGG or some other open format.

    Is this possible?
    How?
    You can use ffmpeg. If you're using Ubuntu Hardy you can use ffmpeg from the Medibuntu repository. I believe it has support to decode AMR.

    If you're using Ubuntu Intrepid you will have to compile ffmpeg yourself:
    HOWTO: Compile the latest ffmpeg and x264 from source

    If you follow that guide, you will need some additional steps to use AMR. First download the amr development packages from the Medibuntu repository:
    Code:
    sudo apt-get install libamrnb-dev libamrwb-dev
    Then when you configure ffmpeg (step 5 in the guide), you will need to add additional configuration options:
    Code:
    --enable-libamr-nb --enable-libamr-wb
    The ffmpeg command to convert to flac is relatively simple:
    Code:
    ffmpeg -i inputfile.amr outputfile.flac
    For ogg vorbis you have several choices depending on how you configured ffmpeg:
    Code:
    ffmpeg -i inputfile.amr -acodec vorbis outputfile.ogg
    or:
    Code:
    ffmpeg -i inputfile.amr -acodec libvorbis outputfile.ogg
    Last edited by FakeOutdoorsman; July 10th, 2009 at 09:04 PM.

  10. #10
    Join Date
    Dec 2006
    Location
    Manila, Philippines
    Beans
    1,886
    Distro
    Ubuntu Development Release

    Re: How to play AMR audio files

    Quote Originally Posted by FakeOutdoorsman View Post
    Update: This post is now outdated because as andrew.46 notes, "FFmpeg has dropped support for the non-free amr libraries in favour of opencore-amr". See his opencore-amr post for more info.


    You can use ffmpeg. If you're using Ubuntu Hardy you can use ffmpeg from the Medibuntu repository. I believe it has support to decode AMR.

    If you're using Ubuntu Intrepid you will have to compile ffmpeg yourself:
    HOWTO: Compile the latest ffmpeg and x264 from source

    If you follow that guide, you will need some additional steps to use AMR. First download the amr development packages from the Medibuntu repository:
    Code:
    sudo apt-get install libamrnb-dev libamrwb-dev
    Then when you configure ffmpeg (step 5 in the guide), you will need to add additional configuration options:
    Code:
    --enable-libamr-nb --enable-libamr-wb
    The ffmpeg command to convert to flac is relatively simple:
    Code:
    ffmpeg -i inputfile.amr outputfile.flac
    For ogg vorbis you have several choices depending on how you configured ffmpeg:
    Code:
    ffmpeg -i inputfile.amr -acodec vorbis outputfile.ogg
    or:
    Code:
    ffmpeg -i inputfile.amr -acodec libvorbis outputfile.ogg
    Thanks for the update!
    MacBook Air 3,1 128gb | Fujitsu Esprimo U9200 | Google Nexus One

    Pinoy ka ba? | Google Profile | Twitter: @AllanCaeg| Identi.ca: allancaeg

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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