How to Convert AVI To MPG in Linux
January 28, 2019
- Download FFmpeg and install it.
- Navigate to your home folder and create a new folder for ?My Videos? (or whatever you want to call it).
- Move avi into "My Videos" folder, and make sure it has a good name (such as video.avi for ease).
- Right click somewhere in the folder and select ?Open in Terminal?. This will launch a terminal specific to "My Videos" folder.
- 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