Playing (not converting) amr files on Linux
I have a few tens of .amr sound files produced on Nokia 6280's and 6288's that I need to hear on my laptop. Here is an example of such a file (my daughter laughing):
http://dotancohen.com/images/example...v_laughing.amr I have tried to play with VLC 0.8.6 and mplayer 1.0RC1 on Ubuntu 7.04, but neither of them play the files for me. I did find a program that converts the files to mp3, the Mobile Media Converter (http://www.miksoft.net/mobileMediaConverter.htm), however, I'd like to actually play the files rather than convert them. Google makes me think that Quicktime for Windows might play them but I've no windows box and anyway, I'd like to avoid wine if there is a Linux solution out there. I do see that it is possible to compile mplayer to play the files if compiled with these options: "--enable-amr_nb --enable-amr_nb-fixed --enable-amr_wb" (found on linuxquestion.org). Are those the only options that I will need? How can I find what options are recommended for Ubuntu installations? I tried searching the mplayer website, but found nothing. |
Your file plays for me with ffmpeg/ffplay. I'm using the package offered by debianmultimedia.org and it shows --enable-libamr-nb and --enable-libamr-wb among the set flags. I don't know what comparable sources are available for *buntu, but I'd be surprised if one wasn't available somewhere. And when I play it in mplayer the output shows that it's calling up the same ffmpeg/libavcodec as the audio decoder.
So I'd say yes, all you need to do is compile mplayer and/or ffmpeg with the listed libamr flags, or find a package source that already has them compiled, and you should be set to go. |
Thanks, David. How does one go about searching for an mplayer deb that was built with the proper flags? I looked at mplayer from debian-multimedia.org (not debianmultimedia.org, which is a parked page) and I don't see what it was built with.
Can I configure Ubuntu to use the debian-multimedia.org repo? Or is that not recommended? Should I just add "deb http://www.debian-multimedia.org stable main" to sources.list? |
Sorry, my mistake typing the url.
I don't know how to discover the enabled libraries in mplayer, but ffmpeg shows a list of its compiled flags whenever you run it. I think that you don't need to compile mplayer specifically with support as long as ffmpeg/libavcodec has it, since mplayer can use it as a decoder. You can probably use the debian-multimedia sources in *buntu, since it's based of Debian (sid, I believe), but I don't know how well it will work. Most programs will run, I believe, but there may be differences between the two distros that can cause problems. I was hoping someone else would pop up here and recommend a repository for *buntu that has the same kind of build. :) |
Quote:
|
Hi,
There is a solution and yes mplayer will play these files: Quote:
Code:
andrew@ilium~/Desktop$ mplayer meirav_laughing.amr Quote:
http://www.penguin.cz/~utx/amr and mplayer documentation references them here: http://www.mplayerhq.hu/DOCS/HTML/en/audio-codecs.html Can I suggest as well that you would be better to use the svn mplayer? I believe you use Ubuntu, if so you could use a walkthrough I have written at: http://ubuntuforums.org/showthread.php?t=558538 For which I have added an amr section specifically to address your needs: http://ubuntuforums.org/showpost.php...&postcount=195 Simply install the amr material first, install the svn mplayer and all will be well :-) Andrew |
Thank you Andrew. The instructions that you posted on the Ubuntu forum were almost too easy to follow. And you explained _why_, not only _how_. Great job and I thank you.
|
Hi again!
Quote:
Andrew |
All times are GMT -5. The time now is 11:44 AM. |