Convert MPG to AVI

Turn MPG videos into AVI. MPEG-4 Part 2 video with MP3 sound in an AVI file, for old players and editors.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop MPG files on the dialor turn it to pick what to do

An AVI file for old players and editors.MPEG-4 Part 2 video with MP3 sound, packed in one AVI file.

  1. What you get

    One AVI file. The picture is MPEG-4 Part 2 video and the sound is MP3, a pairing meant for old players and editors that expect AVI.

    MPG holds MPEG-1 and MPEG-2 video, the formats of VCDs and DVDs. AVI is Microsoft's original video container. It is old, large and still around.

  2. Resize, trim and adjust

    Set Max width or Max height to shrink a video that is wider or taller than the value. The shape stays the same, and a video that is already smaller is never enlarged.

    Set Start at to cut seconds from the beginning. Set Stop at to end at a given second of the original. It counts from the start of the original, not from where trimming starts, so it must be later than Start at.

    Set Rotate to turn the result by 90, 180 or 270 degrees clockwise. Set Speed to play faster or slower, where 2 is twice as fast and 0.5 is half as fast. Voices keep their pitch.

  3. Frame rate and sound

    Set Frame rate (fps) to change how many frames each second holds. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural.

    Turn on Mute to drop the sound track and keep only the picture.

  4. When it fails

    If the MPG file cannot be parsed, the conversion stops with input_corrupted. To go the other way, use AVI to MPG.

MPG and AVI.What each format is, and the options this conversion takes.

  1. 01 · max_height

    Max height (px)

    Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.

    16 to 20000
  2. 02 · max_width

    Max width (px)

    Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.

    16 to 20000
  3. 03 · rotate

    Rotate

    Turns the result clockwise by a quarter, a half or three quarters.

    90 · 180 · 270
  4. 04 · speed

    Speed

    Plays faster or slower. 2 is twice as fast and 0.5 half as fast. Voices keep their pitch.

    0.25 to 4
  5. 05 · trim_end

    Stop at (s)

    Stops at this second of the original. It counts from the start of the original, not from where trimming starts, so it must be later than Start at.

    0 to 86400
  6. 06 · trim_start

    Start at (s)

    Cuts this many seconds from the beginning. Decimals such as 1.5 work.

    0 to 86400
  7. 07 · video.fps

    Frame rate (fps)

    Frames per second. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural, and 10 to 15 is common for animated pictures.

    1 to 120
  8. 08 · video.mute

    Mute

    Drops the sound track and keeps only the picture.

The formats

From · MPG

MPEG Video

MPEG-1 and MPEG-2 video, the formats of VCDs and DVDs.

Extensions
.mpg .mpeg .vob
MIME type
video/mpeg
Kind
Video
To · AVI

AVI Video

Microsoft's original video container. Old, large and still around.

Extensions
.avi .divx .xvid
MIME type
video/x-msvideo
Kind
Video

In your code.The same MPG to AVI conversion through the API, for your app or your agent.

terminal
$ cv convert clip.mpg clip.avi
$ cv convert clip.mpg clip.avi

Questions.What people ask about MPG to AVI.

01OF 04

MPEG-4 Part 2 video with MP3 sound. This is meant for old players and editors.

Yes. Set Start at to cut seconds from the beginning, and set Stop at to end at a later second of the original.

Yes. Turn on Mute, and the AVI keeps only the picture.

The MPG file could not be parsed. The conversion stops with this code when that happens.

More conversions.Other ways in and out of MPG and AVI.