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]