MPEG to AVI Converter

Generate a ready-to-run FFmpeg command to convert MPEG-1 or MPEG-2 files to AVI with your choice of video codec, bitrate, and audio settings.

FFmpeg Command Builder

Generated Command

ffmpeg -i input.mpg -c:v libxvid -b:v 4000k -c:a libmp3lame -b:a 128k output.avi

Replace input.mpg with your actual file path. FFmpeg must be installed — download free from ffmpeg.org.

Common Presets

MPEG vs AVI — Format Comparison

Attribute MPEG-2 AVI
Developed by ISO / IEC Microsoft (1992)
Typical use DVD, broadcast TV Legacy recordings, Windows NLEs
Common codecs mpeg2video, MP2 audio Xvid, DivX, H.264, MPEG-4
DVD authoring Supported Not supported
Windows NLE support Varies by software Excellent
Seeking accuracy Limited in PS streams Frame-accurate
File extension .mpg / .mpeg / .vob .avi

Install FFmpeg

Copied!

Summary

Generate a ready-to-run FFmpeg command to convert MPEG-1 or MPEG-2 files to AVI with your choice of video codec, bitrate, and audio settings.

How it works

  1. Choose your target video codec: Xvid (maximum legacy compatibility), MPEG-4 (libxvid / ffmpeg mpeg4), or H.264 (libx264, modern players).
  2. Set the video bitrate — higher values produce better quality and larger files.
  3. Optionally adjust the audio bitrate and frame rate, or keep source values.
  4. Click "Build Command" to generate the exact FFmpeg command in the output panel.
  5. Copy the command and run it in a terminal on a machine with FFmpeg installed.
  6. FFmpeg reads the .mpg / .mpeg input and writes an AVI container to the same directory.

Use cases

  • Prepare MPEG-2 footage for legacy Windows video editing software that requires AVI input.
  • Convert VCD or DVD MPEG-1 recordings to Xvid AVI for archiving on older media players.
  • Supply AVI files to NLEs or CCTV systems that do not accept MPEG program streams.
  • Convert MPEG broadcast captures to AVI for use with Windows Movie Maker or older Premiere versions.
  • Repackage MPEG-2 video into an AVI container expected by industrial playback hardware.
  • Replace paid conversion software with a free, scriptable FFmpeg workflow.
  • Batch-convert a folder of .mpg files to .avi for a uniform archive format.

Frequently Asked Questions

Last updated: 2026-06-11 · Reviewed by Nham Vu