I've been wanting to convert sound/video recorded on my Sony Ericsson W800i phone for awhile, but haven't been able to until recently.
Sony Ericsson records sound in AMR format and video in 3GP format. In order to convert these to regular MP3 or MPG format, I have found that you will need to install a few extra packages that are not available in Ubuntu, but are available from Debian Multimedia.
The easiest way to do this install the debian multimedia keyring. (sudo dpkg -i debian-multimedia-keyring_2007.02.14_all.deb)
Afterwards, add the following line to the end of your sources.list (sudo gedit /etc/apt/sources.list)
deb http://www.debian-multimedia.org testing main
Now, do an update of your package list (sudo apt-get update)
Then, install ffmpeg and amrnb (sudo apt-get install ffmpeg amrnb). Accept any additional dependencies.
Once it is installed, to convert AMR format to MP3, simply run the following:
ffmpeg -i inputfile.amr outputfile.mp3
To convert 3GP format to MPG, simply run:
ffmpeg -i inputfile.3gp -ar 16000 outputfile.mpg
To convert MPG to 3GP for playback on your phone, run:
ffmpeg -i inputfile.mpg -s qcif -ar 8000 -ac 1 outputfile.3gp
Comments
Ubuntu 8.10
The dependency issue in Hardy is resolved with the latest version of Ubuntu 8.10, since the libraries in the Ibex repository are now up to date.
Package Dependency
With Hardy, you may need to get a package from Intrepid repository (http://packages.ubuntu.com/intrepid/libdc1394-22) in order to install ffmpeg and its dependencies.