1. Download FFmpeg and install it.
  2. Navigate to your home folder and create a new folder for ?My Videos? (or whatever you want to call it).
  3. Move avi into "My Videos" folder, and make sure it has a good name (such as video.avi for ease).
  4. Right click somewhere in the folder and select ?Open in Terminal?. This will launch a terminal specific to "My Videos" folder.
  5. Edit the below code to suit your needs, paste into Terminal, and press enter.
    ffmpeg -i video.avi -ab 56 -ar 22050 -b 500 -s 320x240 test.mpg

The script, in this order:

a. Launches FFMPEG

b. Opens your avi (change to suit yours)

c. -ab : Sets the audio bitrate. Without this, it?ll be set to the default of 64kbps

d. -ar : Sets the audio samplerate. Default is 44100hz

e. -b : Sets the video bitrate. Default is 2000kbps

f. -s : Sets the size. Default is 160×128px

g. Outputs to the filename you enter

article source