ffmpeg – How to Convert AVI video files to 3gp for phone

I know some people love to store their favorite movies or video clips in their phone (especially nokia phones). Here’s a quick how to, to convert movies and video clips to a format suitable for use in mobile phone.

For this thing to work, we will be using the multipurpose encoder/decoder – ffmpeg.

Convert from MPG to 3GP
ffmpeg -i video_clip.mpg -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -ab 32 -y clip.3gp

Convert from AVI to 3GP
ffmpeg -i video_clip.avi-s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -r 25 -ab 32 -y clip.3gp

Convert from 3GP to AVI
ffmpeg -i clip.3gp -f avi -vcodec xvid -acodec mp3 -ar 22050 file.avi

With these method you wont need to spend a dime on expensive proprietary encoder anymore to transfer your favorite music files into your phone.

It should be noted that, the ffmpeg package from the default installation in Ubuntu are pretty useless for practical purposes. Please read this to enable 3gp encoding in Ubuntu : Enable mp3 and amr support in ffmpeg ( Ubuntu )

[tags]ubuntu, linux, nokia, 3gp, ffmpeg, debian, windows media player, media player, open source, encoding, ripping[/tags]

30 Replies to “ffmpeg – How to Convert AVI video files to 3gp for phone”

  1. assalamualaikum

    tambahan skit en papit…

    ffmpeg -i video_clip.avi -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -r 25 -ab 32 -y clip.3gp

    kalau nak video yang bagus, bleh guna codec h264 dan kalau nak kualiti audio yang bagus .. bleh letak codec audio tu .. -ar 22050 ( saya dah try guna 44100 . tak support) dan -ac 2 ( streo )

    ni arahan yang biasa saya gunakan dan saya dah test ..
    http://hardyw3b.wordpress.com/2006/12/20/mini-ebook-arahan-ffmpeg/

Comments are closed.