Convert MPEG to WMV — Free Online Tool
Convert MPEG files (MPEG-1/MPEG-2 video with MP2 audio) to WMV using the Microsoft MPEG-4 v3 codec wrapped in an ASF container — ideal for making legacy broadcast-era footage compatible with Windows Media Player and Windows-centric workflows.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MPEG file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
MPEG files carry MPEG-1 or MPEG-2 video alongside MP2 or MP3 audio, all in an MPEG program stream or transport stream container. WMV uses Microsoft's ASF (Advanced Systems Format) container, which requires video encoded with a Microsoft-specific MPEG-4 variant (msmpeg4) and audio encoded with WMA (wmav2). Because none of these codecs are compatible with the originals, this conversion requires a full transcode of both streams: the MPEG-2 video is decoded and re-encoded to msmpeg4 at a target bitrate of 2000k, and the MP2 audio is decoded and re-encoded to WMA v2 at 128k. The output is then muxed with the '-f asf' flag to ensure proper ASF container formatting, since FFmpeg must be explicitly told to write ASF rather than infer a container from the .wmv extension alone.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg tool. In the browser-based version of this tool, FFmpeg runs locally via WebAssembly (FFmpeg.wasm) — no data leaves your machine. |
-i input.mpeg
|
Specifies the input file — an MPEG program stream or transport stream containing MPEG-1 or MPEG-2 video and typically MP2 audio. |
-c:v msmpeg4
|
Sets the video encoder to Microsoft MPEG-4 v3, the codec that produces video streams compatible with the WMV/ASF container and natively playable in Windows Media Player. |
-c:a wmav2
|
Sets the audio encoder to Windows Media Audio v2, replacing the MPEG source's MP2 audio with the WMA format expected inside an ASF/WMV file. |
-b:v 2000k
|
Targets a video bitrate of 2000 kilobits per second for the msmpeg4 encoder — a balanced default for standard-definition MPEG footage that keeps file sizes reasonable while maintaining acceptable quality. |
-b:a 128k
|
Targets an audio bitrate of 128 kilobits per second for the WMA v2 encoder, sufficient for stereo dialogue and moderate-quality music content typical of broadcast MPEG recordings. |
-f asf
|
Explicitly forces the output container format to ASF (Advanced Systems Format), ensuring the file has correct WMV-compliant headers regardless of how FFmpeg interprets the .wmv extension. |
output.wmv
|
The name of the output file. The .wmv extension signals a Windows Media Video file to the operating system and media players, and combined with '-f asf', ensures the file is correctly identified and played. |
Common Use Cases
- Preparing digitized VHS or broadcast recordings (originally saved as MPEG-2) for playback in Windows Media Player on older Windows XP or Windows 7 machines that handle WMV natively
- Submitting video content to corporate intranet portals or legacy enterprise CMS platforms that only accept WMV uploads
- Converting DVD-ripped MPEG-2 footage into WMV for embedding in older PowerPoint presentations that use Windows Media Player ActiveX controls
- Archiving MPEG footage from early 2000s digital camcorders into WMV for compatibility with Windows-based kiosk or digital signage systems
- Transcoding MPEG files captured from set-top boxes or PVRs into WMV for sharing with colleagues who rely on Windows-native media workflows
Frequently Asked Questions
Yes — this is a lossy-to-lossy transcode, meaning quality is lost at each generation. The original MPEG-2 video is decoded and re-encoded into the msmpeg4 codec, which is an older Microsoft MPEG-4 variant with less compression efficiency than modern codecs like H.264. At the default bitrate of 2000k the output is generally watchable for standard-definition footage, but fine detail and motion sequences will show more compression artifacts than the source. If quality is a priority, increase the '-b:v' value (e.g., to 4000k or 6000k) before converting.
WMV files are contained inside Microsoft's ASF (Advanced Systems Format) container, but FFmpeg does not always reliably infer ASF from the .wmv extension when using Microsoft MPEG-4 video codecs. The '-f asf' flag explicitly tells FFmpeg to mux the output into a valid ASF container, which ensures the resulting file is correctly structured for Windows Media Player and other WMV-compatible players. Omitting it can occasionally produce a file that plays but lacks proper ASF headers.
Replace the value after '-b:v' with a higher bitrate. For example, use '-b:v 4000k' for better quality at the cost of a larger file, or '-b:v 500k' for a smaller file with reduced quality. WMV with msmpeg4 encoding tends to show visible degradation below 1000k for standard-definition MPEG source material, so 2000k–4000k is a practical range for most conversions.
Mostly, but with some limitations. Both MPEG and WMV/ASF are lossy formats without subtitle or chapter support in this conversion, so neither feature is lost in a meaningful way. However, WMV/ASF does support multiple audio tracks while standard MPEG program streams typically carry only one, so the output could theoretically accommodate additional tracks if added. Metadata embedded in the MPEG stream (such as program information from broadcast recordings) is generally not preserved in the WMV output.
No — msmpeg4 (specifically the v3 variant used here, sometimes called 'MS-MPEG4 v3') is a proprietary Microsoft codec developed before the MPEG-4 Part 2 standard was finalized. It is incompatible with standard MPEG-4 ASP (used in DivX/Xvid) and unrelated to H.264/AVC. It was designed specifically for Windows Media Player and ASF containers, which is why it is the correct codec choice for genuine WMV output, but it offers significantly lower compression efficiency than modern codecs.
Yes, with a simple shell loop. On Linux or macOS, run: 'for f in *.mpeg; do ffmpeg -i "$f" -c:v msmpeg4 -c:a wmav2 -b:v 2000k -b:a 128k -f asf "${f%.mpeg}.wmv"; done'. On Windows Command Prompt, use: 'for %f in (*.mpeg) do ffmpeg -i "%f" -c:v msmpeg4 -c:a wmav2 -b:v 2000k -b:a 128k -f asf "%~nf.wmv"'. This processes every MPEG file in the current directory and saves a corresponding WMV file with the same base name.
Technical Notes
The msmpeg4 codec (v3) written into an ASF container is what Windows historically identifies as 'WMV' in the classic sense — distinct from the later VC-1-based WMV HD format. FFmpeg's msmpeg4 encoder uses constant bitrate mode controlled by '-b:v', so unlike the MPEG source (which used the quantizer-based '-q:v' parameter), output file size is more predictable but quality can vary across complex scenes. The WMA v2 audio codec (wmav2) is a reasonable match for the MP2 audio typical of MPEG-2 sources; at 128k it delivers acceptable stereo quality, though MP2 at 192k (the MPEG default) actually has a slight edge in perceived quality for music content, so users with high-fidelity audio in their source may want to raise '-b:a' to 192k or 256k. Neither subtitles nor chapters are carried by either format in this pipeline, so no stream data is silently dropped. One known limitation: the msmpeg4 codec caps out at standard-definition resolutions in practice — attempting to encode 1080p MPEG-2 footage to WMV with msmpeg4 may produce errors or degraded output, and such high-resolution sources are better served by a modern codec like H.264.