Convert WebM to MPG — Free Online Tool

Convert WebM files (VP9 video, Opus audio) to MPG format using MPEG-2 video and MP2 audio codecs — ideal for compatibility with legacy DVD authoring tools, broadcast systems, and hardware players that predate the modern web video era. This conversion fully re-encodes both the video and audio streams, since WebM's VP9 and Opus codecs are incompatible with the MPEG-1/2 container.

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

WebM uses VP9 for video and Opus for audio — both modern, royalty-free codecs designed for web delivery. Neither codec is supported by the MPG container, so this conversion requires a full re-encode of both streams. The VP9 video is decoded and re-encoded as MPEG-2 video (mpeg2video), and the Opus audio is decoded and re-encoded as MPEG-1 Audio Layer II (MP2), which is the standard audio codec for MPEG-2 program streams. The result is an MPEG-2 program stream (.mpg) file compatible with DVD players, legacy editing software, and broadcast infrastructure. Because both streams are transcoded from scratch, expect some generation loss and a processing time proportional to the length and resolution of your source file. Features present in the WebM source — such as transparency (alpha channel), embedded subtitles, chapters, and multiple audio tracks — are all dropped, as the MPG container does not support any of these.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg multimedia processing tool. In this browser-based tool, FFmpeg runs entirely via WebAssembly (FFmpeg.wasm) inside your browser — no data leaves your device.
-i input.webm Specifies the input file in WebM format, which contains a VP9 video stream and an Opus (or Vorbis) audio stream inside a Matroska-derived container.
-c:v mpeg2video Re-encodes the VP9 video stream from the WebM source using the MPEG-2 video codec, which is the standard video codec for the MPG container and is required for DVD and broadcast compatibility.
-c:a mp2 Re-encodes the Opus audio stream from the WebM source as MPEG-1 Audio Layer II (MP2), the conventional audio codec paired with MPEG-2 video in program streams for broadcast and DVD use.
-q:v 2 Sets the MPEG-2 video encoder to near-maximum quality using a variable bitrate quality scale where 1 is highest quality and 31 is lowest. A value of 2 prioritizes visual fidelity over file size, which is appropriate since MPEG-2 is already less efficient than the VP9 source.
-b:a 192k Sets the MP2 audio output bitrate to 192 kilobits per second, which is the standard bitrate for MP2 audio in MPEG-2 broadcast and DVD contexts and provides a good balance of audio quality and file size.
output.mpg Specifies the output filename with the .mpg extension, which tells FFmpeg to write an MPEG-2 program stream container — the standard file format for MPEG-1/2 video used in VCD, DVD, and broadcast applications.

Common Use Cases

  • Importing a web-sourced WebM clip into legacy DVD authoring software like DVD Architect or Nero Vision that only accepts MPEG-2 program streams
  • Preparing WebM video content for playback on standalone DVD players or older set-top boxes that have no VP9 decoder
  • Feeding video into broadcast encoding or playout systems that require MPEG-2 as their ingest format
  • Archiving or delivering web video to clients or institutions whose editing workflows are built around MPEG-2 timelines in older versions of Avid or Premiere
  • Converting animated WebM files (e.g., downloaded web animations or screen recordings) to MPG for use in PowerPoint presentations on systems without VP9 support
  • Submitting video to a digital signage platform or kiosk system whose firmware only supports MPEG-1/2 playback

Frequently Asked Questions

Yes — this is a lossy-to-lossy transcode, so some quality degradation is unavoidable. VP9 is a significantly more efficient codec than MPEG-2: at the same bitrate, VP9 produces noticeably better image quality. When re-encoding to MPEG-2 at the default quality setting (-q:v 2, which is near the top of the quality scale), the output will look good, but the file size will typically be larger than the source WebM for equivalent perceived quality. If your source WebM was already heavily compressed, the MPEG-2 output may show more visible artifacts.
No. The MPG (MPEG-2 program stream) container does not support alpha channel transparency, embedded subtitle tracks, chapter markers, or multiple audio tracks. All of these will be silently dropped during conversion. If your WebM file contains a transparent background (used in overlays or motion graphics), it will be composited onto a black background in the MPG output. If subtitles are important, you should burn them into the video before converting, using FFmpeg's subtitle filter.
VP9 (used in WebM) is a generation newer than MPEG-2 and achieves significantly better compression — often 2x to 3x more efficient at the same quality level. When you re-encode to MPEG-2 at high quality (-q:v 2), the encoder uses a high bitrate to preserve detail, resulting in a much larger file. This is expected and normal. If file size is a concern, you can increase the -q:v value (e.g., -q:v 5 or -q:v 8) to reduce bitrate, at the cost of some visual quality.
The Opus audio track is fully decoded and re-encoded as MPEG-1 Audio Layer II (MP2) at 192k bitrate. MP2 is a much older codec than Opus — Opus at 128k typically sounds better than MP2 at 192k. For music or high-fidelity content, this audio transcode represents a meaningful quality step down. For speech or narration, the difference is less perceptible. MP2 is the required audio codec for standard MPEG-2 program streams used in DVD and broadcast contexts.
To change video quality, modify the -q:v value: lower numbers mean higher quality and larger files (1 is best, 31 is worst; default is 2). For example, use -q:v 5 for a smaller file with slightly reduced quality. To change audio bitrate, replace 192k in -b:a 192k with another value such as 128k, 256k, or 320k. Higher audio bitrates improve fidelity but the improvement is limited given MP2's codec ceiling. For batch processing multiple WebM files in a shell, you can wrap the command in a loop: for f in *.webm; do ffmpeg -i "$f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "${f%.webm}.mpg"; done
Yes. To target MPEG-1 (used for VCD format), change -c:v mpeg2video to -c:v mpeg1video in the command. MPEG-1 video is compatible with an even wider range of legacy hardware but is limited to lower resolutions (VCD standard is 352x240 for NTSC). If you need strict VCD compliance, you would also need to constrain the resolution, framerate (29.97 fps NTSC or 25 fps PAL), and bitrate. For most modern use cases where legacy compatibility is needed, MPEG-2 is the better default choice.

Technical Notes

This conversion involves a complete decode-and-reencode pipeline for both streams, making it one of the more computationally intensive format pairs on this site. The source VP9 stream must be fully decoded to raw frames before MPEG-2 encoding begins — there is no possibility of stream copying (remuxing) because the codecs are entirely incompatible. MPEG-2 video uses a DCT-based inter-frame compression scheme with I, P, and B frames, similar in structure to VP9 but far less efficient. The -q:v 2 default sets a near-maximum quality variable bitrate for the MPEG-2 encoder; the resulting bitrate will vary depending on scene complexity. WebM's support for HDR content (via VP9 Profile 2) is not preserved in MPG, as MPEG-2 has no HDR signaling and the color space will be mapped to standard dynamic range. The MPG container also does not carry stream metadata such as language tags, title, or creation date from the WebM source. For files destined for DVD authoring, note that strict DVD compliance may require additional constraints on resolution (720x480 NTSC or 720x576 PAL), framerate, and bitrate that this tool does not enforce by default.

Related Tools