Convert MXF to MPG — Free Online Tool

Convert MXF broadcast files to MPG format using MPEG-2 video and MP2 audio encoding — ideal for moving professional production footage into a legacy-compatible, DVD-ready or broadcast-standard MPEG container. This tool runs entirely in your browser with no file uploads required.

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

MXF (Material Exchange Format) is a professional wrapper that can contain various codecs including H.264, MPEG-2, or MJPEG video alongside PCM audio tracks. Converting to MPG requires a full transcode: the video stream is re-encoded to MPEG-2 (mpeg2video), which MPG natively supports, and the audio is transcoded from PCM (typically pcm_s16le in MXF) to MP2, the standard compressed audio format for MPEG-2 streams. Unlike a simple remux, this is a lossy encode — MPEG-2 uses DCT-based interframe compression with I, P, and B frames, and MP2 discards audio data beyond human hearing thresholds. Any broadcast metadata, timecodes, and multiple audio tracks embedded in the MXF will not carry over to the MPG container, which has limited metadata support.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg binary — the core multimedia processing engine that handles all decoding, encoding, and muxing operations in this conversion pipeline.
-i input.mxf Specifies the MXF source file as input. FFmpeg will detect the MXF container and identify the wrapped video codec (e.g., H.264, MPEG-2, or MJPEG) and audio codec (typically PCM) automatically using its demuxer.
-c:v mpeg2video Encodes the video stream to MPEG-2, the native video codec for MPG containers and the standard used in DVD-Video and broadcast playout systems. This triggers a full re-encode regardless of the source codec.
-c:a mp2 Transcodes the audio to MPEG-1 Audio Layer II (MP2), which is the standard audio format for MPEG-2 Program Streams and is required by DVD-Video and DVB broadcast specifications. MP2 is distinct from MP3 and is better suited to broadcast use.
-q:v 2 Sets the MPEG-2 video quality using the variable bitrate quality scale, where 1 is highest quality and 31 is lowest. A value of 2 produces near-maximum quality output suitable for broadcast or DVD mastering while keeping the command simple without specifying an explicit target bitrate.
-b:a 192k Sets the MP2 audio bitrate to 192 kilobits per second, which is the standard bitrate for broadcast-quality MP2 audio and is compliant with DVD-Video audio requirements.
output.mpg Defines the output filename with the .mpg extension, which tells FFmpeg to write an MPEG Program Stream container — the correct multiplexed format for combining MPEG-2 video and MP2 audio in a single file compatible with DVD players and legacy broadcast systems.

Common Use Cases

  • Delivering broadcast footage to legacy playout systems or tape-based workflows that require MPEG-2 Program Stream (.mpg) format
  • Preparing MXF camera originals for DVD authoring, since MPEG-2 video with MP2 audio is the native codec pair for DVD-Video
  • Archiving older broadcast segments from an MXF-based NLE into a widely readable format that can be opened by virtually any media player without special codecs
  • Converting MXF rushes from a broadcast camera for compatibility with VCD or SVCD workflows used in lower-bandwidth distribution environments
  • Repurposing post-production MXF masters into MPG clips for upload to legacy broadcast ingest systems that accept only MPEG-1/2 streams
  • Generating MPEG-2 test files from MXF sources for QA testing of set-top boxes, DVD players, or broadcast decoders

Frequently Asked Questions

No. MXF is specifically designed as a metadata-rich container used in broadcast and post-production, and it can store SMPTE timecodes, clip names, production metadata, and descriptive scheme information. The MPG container format has no equivalent metadata structures to hold this data, so it will be lost during conversion. If preserving timecode is critical, you should export or log it separately before converting.
MPG does not support multiple audio tracks, so only the first audio track from the MXF file will be included in the output. If your MXF contains separate tracks for different channels, dialogue, or languages, you will need to use FFmpeg's -map flag on the command line to explicitly select which audio track to include before conversion. The browser tool automatically uses the default (first) audio stream.
The default -q:v 2 setting is the highest quality end of MPEG-2's variable bitrate scale (1–31, where lower numbers mean better quality), so visual quality loss should be minimal for most content. However, if your source MXF contains lossless or high-bitrate PCM video (e.g., MJPEG or uncompressed), the MPEG-2 encode will introduce generational loss. The audio transcode from PCM to MP2 at 192k is also lossy, though MP2 at that bitrate is generally considered broadcast-acceptable quality.
Yes. MPEG-2 video combined with MP2 audio in an MPEG Program Stream (.mpg) is the native elementary stream format accepted by most DVD authoring tools such as DVD Architect, Encore, or open-source tools like DVDAuthor. However, DVD-Video has strict requirements around resolution (e.g., 720x480 for NTSC or 720x576 for PAL) and bitrate caps. If your MXF source has a non-standard resolution or frame rate, you may need to add scaling or frame rate conversion flags to the FFmpeg command for full DVD compliance.
To change video quality, modify the -q:v value — use 1 for maximum quality or higher numbers (up to 31) for smaller files with lower quality. To switch to MPEG-1 video instead of MPEG-2, replace -c:v mpeg2video with -c:v mpeg1video and change -c:a mp2 to -c:a libmp3lame, since MPEG-1 streams typically use MP3 audio. The full adjusted command would look like: ffmpeg -i input.mxf -c:v mpeg1video -c:a libmp3lame -q:v 3 -b:a 192k output.mpg
Yes. On Linux or macOS you can use a shell loop: for f in *.mxf; do ffmpeg -i "$f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "${f%.mxf}.mpg"; done. On Windows Command Prompt, use: for %f in (*.mxf) do ffmpeg -i "%f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "%~nf.mpg". The browser-based tool processes one file at a time, so the FFmpeg command line approach is recommended for batch workflows or files over 1GB.

Technical Notes

MXF files from broadcast and professional camera sources often carry MPEG-2 video natively (e.g., Sony XDCAM or Panasonic P2 footage), but FFmpeg still performs a full decode-and-reencode cycle when writing to MPG rather than attempting a stream copy, because the packetization and GOP structure may not be directly compatible with MPEG Program Stream syntax. The output uses MPEG-2 video (-c:v mpeg2video) with variable bitrate quality mode (-q:v 2), and MP2 audio (-c:a mp2) at 192k, which matches the audio codec used in DVB broadcast and DVD-Video. One important limitation: MPG as a container supports only a single audio stream, so any additional audio tracks (common in MXF broadcast masters for multilingual or stems delivery) are silently dropped. The MPG format also has no support for subtitles or chapters, both of which are irrelevant here since MXF-to-MPG is typically a video-only workflow. File sizes will vary significantly depending on source resolution and motion complexity, but MPEG-2 at -q:v 2 typically produces bitrates between 6–15 Mbps for HD content, which is substantially larger than H.264 equivalents but consistent with broadcast MPEG-2 expectations.

Related Tools