HOWTO: Convert 3gp videos to mpeg
I really dont like the 3gp format, but most mobile phones use it. So when I download the movies from my phone to my Ubuntu box I like to convert them to mpeg.
Here’s how:
First we need ffmpeg, a complete solution to record, convert and stream
audio and video.
apt-get install ffmpeg
After the install, converting videos is easy:
ffmpeg -y -i file.3gp -sameq -f mpegvideo -s cif -r25 -ar 32000 -ac 1 file.mpg
This HowTo should work on any distro as long you install ffmpeg correctly. Enjoy!
If you like this post, please consider buying me a beer.












did you try to use also mencoder? did you use Ubuntu on your server, it seems that is is down.
nah, I belive the server is running suse
I belive that that should be -r 25, not -r25
I get an “Unsupported codec” error when trying to convert. The video is from a sony erricson phone. Any ideas? Cheers
Unsupported codec (id=73728) for input stream #0.1
it doesn’t work for me.
With the correction of Christian J, it works great!
(tested on xubuntu 7.10)
Thanks!!!
Unsupported codec (id=86043) for input stream #0.1
LG 8300 phone
Unsupported codec (id=73728) for input stream #0.1
Nokia 6300
Works fine here, though the filesize grows extremely when converting to mpeg.
I use this instead, as the video is already compressed in h263 and I only need to convert the sound:
ffmpeg -y -i file.3gp -sameq -vcodec copy -acodec mp3 -s cif -r 25 -ar 32000 -ac 1 file.avi
This gives only slightly larger files.
Unsupported codec might be the libamr_nb and the libamr_wb (in short AMR in narrowband and wideband). i fixt this problem by compiling with ffmpeg svn and mplayer suport. the libamr_na and libamr_wb must be enabled wile compiling from svn and thera ar some how to out there. i have done this backword and forward many times so i do not know exaktly how you sold do this.
Best of luck.
This does not work. -r25 is not recognized.
Also, the sound does not work. It is just noise. I think mushroom is right that this is because the AMR codec is unsupported.
I would like to know how to compile ffmpeg with AMR support. I cannot find a working HOWTO on this for Ubuntu.