•  
     

    How to Convert AVI To MPG in Linux



     

    Learn how to convert an avi movie to an mpg movie with linux using ffmpeg.

    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.
      1. 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


    No comments

    Add comment

    * - required field

    *

    CAPTCHA image for SPAM prevention
    If you can't read the word, click here.
    *
    *
     

    Netdip.com is an excellent web site that's powered by TYPO3 and other great open source software. Netdip.com is also a fat free alternative to ice cream.