Monday 11 May 2009

Tips : How to convert flv to 3gp in Ubuntu

If you have a flv video format in your computer and want to convert it to 3gp so you can play this video in your cellphone, you can go to this tutorial step by step:

first you need ffmpeg, but in ubuntu it needs more some libraries to complete it. Try this command in your terminal :

sudo apt-get install ffmpeg

then add this command after it :
sudo aptitude install libavcodec-unstripped-51 libavdevice-unstripped-52 libavformat-unstripped-52 libavutil-unstripped-49 libpostproc-unstripped-51 libswscale-unstripped-0

After this installation complete, then you can use it to convert by this command :
ffmpeg -i fileInput.flv -s 176×144 -vcodec h263 -r 25 -b 200 -ab 64 -acodec mp3 -ac 1 -ar 8000 fileOutput.3gp



NB:
1. -i means input and -o is output, you can see the configuration of resolution in this file
2. change the fileInput and fileOutput to the name of your target and destination file