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.