Compress MPG Online — Free File Size Reducer

Compress MPG files in your browser by re-encoding with MPEG-2 video and MP2 audio at reduced quality settings. This tool is ideal for shrinking legacy MPEG program stream files while preserving full compatibility with DVD players, broadcast systems, and VCD/DVD authoring pipelines.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

Compressing an MPG file is a full re-encoding operation — unlike container remuxing, the video stream is decoded from its existing MPEG-1 or MPEG-2 encoding and then re-encoded as MPEG-2 video using the -q:v quality scale (1 = best, 31 = most compressed). The audio is similarly decoded and re-encoded as MP2 at your chosen bitrate. Because MPEG-2 is a lossy format, each re-encode introduces some generation loss, but by targeting a higher -q:v value (e.g., 6–12) you can achieve meaningful file size reductions while keeping the output fully compliant with the MPEG program stream spec that MPG files use.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg binary. In the browser version this runs via FFmpeg.wasm compiled to WebAssembly, executing the identical command logic locally in your browser without any server upload.
-i input.mpg Specifies the input file — an MPEG program stream (.mpg) containing MPEG-1 or MPEG-2 video and MP2 audio. FFmpeg detects the program stream container and demuxes the interleaved audio and video for re-encoding.
-c:v mpeg2video Sets the video encoder to MPEG-2, the codec native to the MPG container. This ensures the output is a valid MPEG-2 program stream compatible with DVD players, broadcast equipment, and VCD/DVD authoring tools.
-q:v 2 Controls MPEG-2 video quality using the quantizer scale, where 1 is maximum quality and 31 is maximum compression. The default of 2 targets near-lossless MPEG-2 output; raise this value (e.g., to 6–15) to achieve meaningful file size reduction at the cost of increased quantization artifacts.
-c:a mp2 Encodes the audio as MPEG-1 Audio Layer II (MP2), the standard audio codec for both VCD and DVD-Video. Using MP2 keeps the output fully spec-compliant with MPEG program stream requirements and compatible with hardware DVD players.
-b:a 192k Sets the MP2 audio bitrate to 192 kilobits per second, which is above the VCD standard of 128k and provides good stereo fidelity for music and speech in compressed MPEG-2 material. Lower this to 128k to further reduce file size with minimal perceptual impact on voice content.
output.mpg The output filename, written as an MPEG program stream. The .mpg extension signals FFmpeg to mux the re-encoded MPEG-2 video and MP2 audio into the same interleaved program stream format as the input, ensuring downstream compatibility with the same tools and devices.

Common Use Cases

  • Shrinking large VHS-captured MPG recordings before archiving to optical media or NAS storage where space is limited
  • Reducing the file size of MPEG-2 broadcast recordings so they fit within DVD-5 (4.7 GB) capacity limits before authoring
  • Compressing MPG files from legacy camcorders or DVD rips to share over slow connections or older file-transfer systems that have size caps
  • Producing a lower-bitrate proxy MPG for video editing preview, keeping the output in the same MPEG program stream format so legacy NLE software can ingest it without conversion
  • Batch-preparing MPG files captured from broadcast for long-term storage at a target quality tier without changing the container format

Frequently Asked Questions

Yes — because MPG uses lossy MPEG-2 encoding and this tool re-encodes the video, some quality loss is unavoidable. The default -q:v 2 setting targets near-maximum quality for MPEG-2, so file size reduction at that setting is modest. To achieve significant compression you should raise -q:v to a value like 6–15, which visibly reduces detail in high-motion scenes typical of MPEG-2 material. For archival use, avoid re-encoding if you only need to trim; re-encoding should be reserved for cases where size reduction is the explicit goal.
At the default -q:v 2 setting the encoder targets very high quality, which can produce a bitrate similar to or even higher than the source if the source was already heavily compressed. To meaningfully reduce file size, increase the -q:v value in the FFmpeg command — values in the 6–18 range typically yield 30–70% size reductions compared to a standard DVD-quality MPEG-2 source. The sweet spot depends heavily on the motion complexity and original bitrate of your specific MPG file.
The output remains a valid MPEG-2 program stream with MP2 audio, which is the native format of DVD video and VCD. However, DVD players enforce specific bitrate and resolution constraints — if your source MPG was already within DVD spec, compressing to a very low quality (high -q:v) could push the bitrate below the minimum expected by some hardware players. For guaranteed compatibility, keep -q:v at 6 or below and ensure the video resolution matches standard DVD resolutions (720x480 NTSC or 720x576 PAL).
Replace the -b:a 192k value in the command with a lower option such as -b:a 128k. For example: ffmpeg -i input.mpg -c:v mpeg2video -q:v 2 -c:a mp2 -b:a 128k output.mpg. MP2 at 128k is the standard bitrate for VCD and is still highly intelligible for speech and music, while cutting audio data roughly in third compared to 192k. Note that reducing audio bitrate has a much smaller effect on total file size than adjusting the video quality scale, since MPEG-2 video typically dominates MPG file size.
Yes — on Linux or macOS you can wrap the command in a shell loop: for f in *.mpg; do ffmpeg -i "$f" -c:v mpeg2video -q:v 6 -c:a mp2 -b:a 192k "compressed_$f"; done. On Windows Command Prompt use: for %f in (*.mpg) do ffmpeg -i "%f" -c:v mpeg2video -q:v 6 -c:a mp2 -b:a 192k "compressed_%f". The browser tool processes one file at a time, so the FFmpeg command is especially useful when you have a folder of MPG files larger than 1 GB or need to automate compression in a pipeline.
The MPEG program stream format used by MPG files does not carry subtitle tracks or chapter metadata in the same way that MKV or MP4 containers do. Any DVD subtitle streams (private stream data) present in a VOB-derived MPG are not preserved by this re-encode, and the format inherently does not support chapter markers. If your source material has subtitles you need to keep, extract them separately before compressing, as there is no lossless subtitle passthrough available in the MPEG-2 program stream context.

Technical Notes

MPEG-2 video uses a variable quantizer scale where -q:v values map to quantization matrices — lower numbers mean finer quantization and larger files, while values above 10 begin to introduce blocking artifacts characteristic of heavily quantized DCT-based codecs. The MPEG-2 program stream (the container inside .mpg files) interleaves audio and video into a single multiplexed stream with no discrete track separation, which is why the format cannot carry multiple audio tracks, subtitles, or chapters. MP2 audio (MPEG-1 Audio Layer II) is the mandatory audio codec for VCD and DVD-Video standards; substituting AAC or libmp3lame audio technically breaks conformance with those specs, though most software players will still decode the result. Re-encoding introduces generation loss on top of the original lossy encoding, so if the source MPG was captured from a DVD or broadcast at a high quality setting, target -q:v values below 8 to avoid visible blocking in panning shots or scenes with fine texture. FFmpeg's mpeg2video encoder also respects the MPEG-2 GOP structure, so the output remains seekable and compatible with hardware decoders that rely on I-frame boundaries.

Related Tools