MPEG to MP4 Converter
Pick a free desktop tool and follow the step-by-step commands to convert any MPEG or MPG file to MP4.
Choose Your Conversion Tool
All three tools are free. FFmpeg is the fastest; VLC and HandBrake offer a graphical interface.
1
Install FFmpeg
- Windows: Download from ffmpeg.org/download.html, extract, and add the bin/ folder to your PATH.
- macOS: Run brew install ffmpeg in Terminal.
- Linux: Run sudo apt install ffmpeg (Debian/Ubuntu) or sudo dnf install ffmpeg (Fedora).
2
Run the conversion command
Open a terminal (Command Prompt on Windows) in the folder containing your MPEG file and run one of these commands:
Fast re-wrap (no quality loss, if input is H.264)
ffmpeg -i input.mpeg -c copy output.mp4
Re-encode to H.264 (universal compatibility)
ffmpeg -i input.mpeg -c:v libx264 -crf 23 -c:a aac output.mp4
Batch convert all .mpg files in a folder
for f in *.mpg; do ffmpeg -i "$f" -c:v libx264 -crf 23 -c:a aac "${f%.mpg}.mp4"; done
macOS / Linux / Git Bash on Windows
3
Check the output
Open output.mp4 in VLC or Windows Media Player. If playback works, the conversion is complete. Replace input.mpeg with your actual filename.
CRF Quality Reference
18
Near-lossless
Large file
Large file
23
Default
Balanced
Balanced
28
Smaller file
Visible loss
Visible loss
MPEG vs MP4 — Format Comparison
| Property | MPEG / MPG | MP4 |
|---|---|---|
| Container type | MPEG Program Stream | ISO Base Media (MPEG-4 Part 12) |
| Common codecs inside | MPEG-1, MPEG-2 video; MP2 audio | H.264, H.265; AAC audio |
| Device support | DVD players, older hardware | Universal — phones, TVs, browsers |
| Typical file size | Larger (older compression) | Smaller (H.264 is 2–4× more efficient) |
| Streaming support | Limited | Full (moov atom can be front-loaded) |
| Browser playback | Not supported natively | Supported in all modern browsers |
FFmpeg Command Builder
Fill in the fields below to generate a ready-to-run FFmpeg command.
ffmpeg -i video.mpeg -c:v libx264 -crf 23 -c:a aac video.mp4
Copied!
Summary
Pick a free desktop tool and follow the step-by-step commands to convert any MPEG or MPG file to MP4.
How it works
- Choose a free tool: FFmpeg (command-line), VLC (GUI), or HandBrake (GUI).
- Install the tool on Windows, macOS, or Linux using the links provided.
- Follow the step-by-step instructions for your chosen tool.
- Run the conversion command or use the export dialog to produce an MP4 file.
- Verify the output plays correctly in your media player.
Use cases
- Convert old MPEG/MPG recordings to MP4 for modern device playback.
- Prepare video files for upload to YouTube, Vimeo, or social media.
- Reduce file size by re-encoding MPEG-1/MPEG-2 to H.264 inside MP4.
- Make DVD-ripped MPEG files compatible with iPhones, Android, and smart TVs.
- Batch-convert a folder of MPG files to MP4 using an FFmpeg one-liner.
- Archive home videos from old camcorders in a universally playable format.
Frequently Asked Questions
Last updated: 2026-06-11 ·
Reviewed by Nham Vu