How to convert AVI to 3GP

3GP or 3GPP is one of famous video format at present because most mobilephones could play video in this format. It is possible to upload a full-length movie into your mobilephone for watching in a bus. All you need to do is to convert movie to 3GP.

First of all, you need to have a special version of FFmpeg to convert and MPlayer to play video in 3GP. If you don't have one, compile them as follows.

  1. Download MPlayer and FFmpeg
  2. Download AMR Float codec from 3GPP 26104-5xx
  3. Extract 26104-5xx.zip into libavcodec/amr_float of both MPlayer and FFmpeg

  4. Run ./configure with --enable-amr_nb

  5. Run make and make install as usual

Done! Now you can convert any video files to 3GP with following commands.

mencoder input.avi \
    -ovc lavc -lavcopts vcodec=mpeg1video \
    -oac pcm \
    -sws 2 -vf scale=176:144 \
    -o output.avi
ffmpeg -i input.avi \
    -vcodec h263 -s 176x144 -r 5.814 -b 30 \
    -acodec amr_nb -ac 1 -ar 8000 -ab 12 \
    output.3gp

Enjoy yourself.

Tags: , , ,

Post new comment