ffmpeg app helps us to convert videos through terminal in Ubuntu. It contains multimedia player, streaming server and audio&video converter. But in this post we are interested just about video converting.
Installing ffmpeg is ordinary:
sudo apt-get install ffmpeg
So, let’s write simple example:
You have some big-sized mpg video, and we must convert it to flv.
Open terminal and type this:
ffmpeg -i video.mpg -ab 56 -ar 22050 -s 320×240 video.flv
After it we get video.flv. Resized and in flv type.
Let’s describe what command parameters mean:
-ab: bit rate of audio;
-ar: Rate(Hz);
-s – result file dimension;
That’s all. Good luck.