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.

When we use different internet connection in one laptop, and if one of those connections is proxy server network connection, then we may have a problem with accessing internet in Ubuntu Software Center and in Terminal. I don’t know it is a bug or just settings reset, but problem exists. I am describing a problem:

In direct connection we haven’t any problem with internet access. But when we switch to proxy connection, at first everything is ok, internet works in Gnome.(and all applications can take access from GNOME). But Terminal and Software Center gives connection error. I investigated this problem in internet. And at last i have found solution. We can do this simple action in Terminal.

cd etc/apt sudo gedit apt.conf

Then we see this document empty. So we write in it:

Acquire::http::Proxy “http://proxy_url:proxy_port/”; Acquire::ftp::Proxy “http://proxy_url:proxy_port/”;

We save it and close. That’s all, internet access has been restored in Terminal and in Ubuntu Software Center.

First posted in e-haci.net