Convert MPG to WMV — Free Online Tool

Convert MPG files to WMV by re-encoding MPEG-1/2 video into Microsoft's msmpeg4 codec wrapped in an ASF container, with audio transcoded from MP2 to WMA v2. Ideal for making legacy MPEG broadcast or DVD-ripped footage compatible with Windows Media Player and Windows-centric workflows.

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

MPG files carry MPEG-1 or MPEG-2 video streams alongside MP2 audio, formats designed for broadcast and optical disc playback. WMV uses Microsoft's Advanced Systems Format (ASF) container, which requires video encoded with msmpeg4 (a Microsoft-specific variant of MPEG-4) and audio in WMA format. Because none of the codecs overlap between these two formats, both the video and audio streams must be fully re-encoded — this is a transcoding operation, not a remux. The MPEG-2 video is decoded frame by frame and re-encoded using msmpeg4 at a target bitrate of 2000k, while the MP2 audio is decoded and re-encoded as WMA v2 at 128k. The resulting file is written with the ASF container structure (signaled by the -f asf flag) and given a .wmv extension.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg program, the open-source multimedia processing engine that handles all decoding, re-encoding, and container muxing for this MPG-to-WMV conversion.
-i input.mpg Specifies the input file — an MPG file containing MPEG-1 or MPEG-2 video and typically MP2 audio, as used in VCD, DVD, or broadcast captures. FFmpeg will auto-detect the stream types from the MPEG container.
-c:v msmpeg4 Sets the video encoder to msmpeg4 (specifically Microsoft MPEG-4 v3), the codec native to WMV files. FFmpeg will decode the incoming MPEG-2 video and re-encode every frame using this Microsoft-proprietary codec.
-c:a wmav2 Sets the audio encoder to Windows Media Audio version 2, the standard audio codec for WMV/ASF files. The incoming MP2 audio from the MPG source will be fully decoded and re-encoded in WMA v2 format.
-b:v 2000k Targets a video bitrate of 2000 kilobits per second for the msmpeg4-encoded output. This is appropriate for standard-definition video and produces a reasonably compact WMV file; raise this value (e.g., 4000k) for higher-quality output from high-bitrate MPG sources.
-b:a 128k Sets the WMA v2 audio output to 128 kilobits per second, a standard quality level for WMV audio that provides acceptable clarity for speech and music in typical broadcast or DVD-sourced MPG content.
-f asf Explicitly instructs FFmpeg to write the output using the Advanced Systems Format (ASF) container structure, which is the internal format of all WMV files. This ensures proper ASF header and index structures are written, required for correct playback in Windows Media Player.
output.wmv The name of the output file. The .wmv extension signals to Windows and media players that this is a Windows Media Video file; combined with -f asf, this produces a fully compliant WMV file ready for Windows Media Player playback.

Common Use Cases

  • Preparing VHS-captured or broadcast MPG recordings for playback in Windows Media Player on older Windows XP or Vista machines that expect WMV or ASF-wrapped content
  • Converting DVD-ripped MPG footage for use in legacy Windows-based video editing suites or corporate presentation tools that accept WMV but not raw MPEG-2 streams
  • Archiving old MPEG-1 VCD recordings into WMV for distribution on intranets or SharePoint environments where Windows Media Player is the default viewer
  • Reducing the complexity of MPG broadcast captures before uploading to older Microsoft-ecosystem platforms or digital signage systems that require ASF-container video
  • Repurposing MPG video clips from satellite or cable capture cards into WMV format for embedding in legacy PowerPoint presentations
  • Converting MPG training or instructional videos to WMV for compatibility with older Windows-based LMS (Learning Management System) players that do not support MPEG-2 streams

Frequently Asked Questions

Yes, some quality loss is expected because both the video and audio must be fully re-encoded — there is no lossless path between MPEG-2 and msmpeg4. The default settings (2000k video bitrate, 128k audio) are reasonable for standard-definition MPG content, which is typically 480i or 576i. If your source MPG was already heavily compressed (such as a low-bitrate VCD rip), the generational loss may be more visible. Increasing the video bitrate with -b:v 4000k or higher will help preserve quality at the cost of a larger file.
WMV files use the Advanced Systems Format (ASF) container internally, and FFmpeg needs the explicit -f asf flag to correctly structure the output container rather than inferring it solely from the file extension. Without this flag, FFmpeg may not correctly write ASF metadata headers, which are required for proper playback in Windows Media Player and other WMV-aware players. The .wmv extension tells the operating system what the file is, while -f asf tells FFmpeg how to encode the container structure.
Yes — replace the -b:v 2000k value with a higher bitrate such as -b:v 4000k or -b:v 6000k to improve visual quality, especially for high-motion content from broadcast MPG sources. Keep in mind that msmpeg4 is an older codec and even at high bitrates it will not match the efficiency of modern codecs like H.264. For standard-definition MPG content, 2000k–4000k is usually sufficient. You can also adjust audio quality by changing -b:a 128k to -b:a 192k or -b:a 256k for better WMA audio fidelity.
No — neither the MPG input format nor the WMV output format support subtitles or chapter markers in the context of this conversion. MPG does not carry subtitle or chapter metadata in a way FFmpeg can automatically extract, and the ASF/WMV container used here is configured without subtitle stream support. If your MPG source had embedded closed captions or VBI subtitle data, those will not be carried through to the WMV file.
MPEG-2 is a mature broadcast standard optimized for intra-frame coding and hardware decoding, commonly used in DVD and satellite video at bitrates from 2–15 Mbps. msmpeg4 is Microsoft's proprietary derivative of MPEG-4 Part 2, designed for software playback and streaming over Windows infrastructure at lower bitrates. At equivalent bitrates, msmpeg4 generally achieves slightly better compression than MPEG-2 for typical video content, but it lacks the hardware decode support and standardization of MPEG-2, making it less suitable for archival use.
Yes — on Windows you can use a simple batch script: 'for %f in (*.mpg) do ffmpeg -i "%f" -c:v msmpeg4 -c:a wmav2 -b:v 2000k -b:a 128k -f asf "%~nf.wmv"'. On macOS or Linux, use: 'for f in *.mpg; do ffmpeg -i "$f" -c:v msmpeg4 -c:a wmav2 -b:v 2000k -b:a 128k -f asf "${f%.mpg}.wmv"; done'. This is especially useful for processing large collections of broadcast recordings or VCD rips that exceed the 1GB browser limit of the online tool.

Technical Notes

MPG to WMV is a full transcode with no stream-copy shortcuts available — every frame of MPEG-1/2 video must be decoded and re-encoded into msmpeg4, and every sample of MP2 audio must be decoded and re-encoded into WMA v2. The msmpeg4 codec used here is specifically 'msmpeg4v3' (mapped as 'msmpeg4' in FFmpeg), which is the most widely compatible variant for Windows Media Player; the alternative msmpeg4v2 is slightly older and may have compatibility issues on some Windows versions. WMV via ASF does support multiple audio tracks in principle (noted in the format spec), but this tool outputs a single audio track matching the primary stream from the MPG source. The ASF container does not preserve MPEG-specific metadata such as display aspect ratio hints embedded in MPEG-2 sequence headers, so if your source MPG is anamorphic (e.g., 16:9 DVD content stored as 720x480 with a DAR flag), you should add '-vf scale=854:480' or equivalent to bake the correct pixel dimensions into the WMV output before conversion. File sizes will vary: an MPG encoded at 6–8 Mbps (typical DVD) converted to WMV at 2000k will result in a significantly smaller file, though with corresponding quality reduction.

Related Tools