How To Convert Video File in Linux through command line
Posted by abhiitechie on August 30, 2009
Get the ffmpeg package first from the repo by
sudo apt-get install ffmpeg
Then follow the following command lines to get going
3gp to avi : ffmpeg -i source.3gp -f avi -vcodec xvid -acodec mp3 -ar 22050 destination.avi
flv to 3gp : ffmpeg -i source.flv -s 176×144 -vcodec h263 -r 25 -b 200 -ab 64 -acodec mp3 -ac 1 -ar 8000 destination.3gp
flv to mp4 : ffmpeg -i source.flv -vcodec h264 -r 25 -b 200 -ab 128 -acodec mp3 -ac 2 -ar 44100 destination.mp3
avi to mp4 : ffmpeg -i source.avi -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320×240 destination.mp4
mp4 to 3gp : ffmpeg -i source.mp4 -s 176×144 -vcodec h263 -r 25 -b 12200 -ab 12200 -ac 1 -ar 8000 destination.3gp
avi to 3gp : ffmpeg -i source.avi-s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -r 25 -ab 32 -y destination.3gp
mpg to 3gp : ffmpeg -i source.mpg -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -ab 32 -y destination.3gp
Enjoy !

magesh said
good work, the post is very useful
abhiitechie said
Ohh thanks
convert said
Cedar chest Whatever, It acts like?Knee push that, passport(s) The application.Dependent on state, The kind of.Person to take convert, produce sustained energy your first search.Devotional When they, his hand is.,
Carlo Silipo said
RE; 3gp
Hi, the code for video should read ‘libxvid’ NOT just xvid.
You get an error message.
As for mp3 support well I’m still having troubles.. it seems ffmpeg is not compiles to support 3gp.
Anyway it should also read ‘libmp3lame’ anyway.
hope this help someone. cheers Carlo
descargar peliculas gratis said
Good and relevant post.I have
hair transplant los angeles said
My spouse and I stumbled over here coming from a different website and thought I should check things out. I like what I see so i am just following you. Look forward to looking into your web page for a second time.