Search Windows and Linux Networking

Friday, April 29, 2011

Total video converting solution in linux (Ubuntu)


Convert any video file to any format in Ubuntu


Why to spend money when opensourse software free and do our work.

ffmpeg and mencoder are the two most popular in Linux to convert files by using these tool you can be convert any video or audio file to any format.

To install it give the following command:-

apt-get install ffmpeg mplayer mencoder libmp3lame-dev lame


wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2

tar -xjvf all-20061022.tar.bz2

sudo mkdir-p / usr / lib / codecs

sudo cp all-20061022 / * / usr / lib / codecs /

 Now it ready to use .

Examples:-

Convert from avi to flv

Using ffmpeg

ffmpeg -i inputfile.avi outputfile.flv

convert from flv to avi file

ffmpeg -i inputfile.flv outputfile.avi


Using mencoder

mencoder inputfile.avi -oac mp3lame -ovc lavc -o outputfile.flv

OR


mencoder {SOURCE_VIDEO} -o {OUTPUT_VIDEO}.flv -of lavf -oac mp3lame -lameopts abr:br=56
 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
 -lavfopts


There are many over option you can use for that see the help.

No comments:

Post a Comment