Convert MPG to RMVB — Free Online Tool
Convert MPG files (MPEG-1/2 video with MP2 audio) to RMVB format by re-encoding the video stream with H.264 (libx264) and the audio with AAC — replacing aging broadcast-era codecs with efficient modern compression. This is especially useful for preserving legacy VCD or DVD-sourced MPG content in a more compact, streaming-friendly container.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MPG 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
MPG files typically carry MPEG-2 video and MP2 audio — codecs designed for broadcast and physical media in the 1990s and early 2000s. Because RMVB uses RealNetworks' container structure and is paired here with H.264 video and AAC audio, both the video and audio streams must be fully re-encoded — there is no stream copying possible in this conversion. The MPEG-2 video is decoded frame by frame and re-encoded using libx264 with a CRF value of 23, which uses variable bitrate compression to allocate more bits to complex scenes and fewer to simple ones. The MP2 audio is simultaneously decoded and re-encoded as AAC at 128k. The result is typically a significantly smaller file that retains comparable visual quality, using the variable bitrate nature of RMVB to its advantage.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg tool — in this browser-based tool, it runs as a WebAssembly (FFmpeg.wasm) instance entirely within your browser. When running locally on your desktop, this calls your installed FFmpeg binary. |
-i input.mpg
|
Specifies the input file — an MPG container carrying MPEG-1 or MPEG-2 video and typically MP2 audio, commonly sourced from VCD rips, DVD captures, or broadcast recordings. |
-c:v libx264
|
Re-encodes the video stream using the H.264 codec via libx264, replacing the source MPEG-2 (or MPEG-1) video with a far more compression-efficient modern codec that RMVB can carry. |
-c:a aac
|
Re-encodes the audio stream as AAC, replacing the MPG source's MP2 audio with a more efficient modern audio codec — AAC generally achieves better quality than MP2 at the same or lower bitrate. |
-crf 23
|
Sets the Constant Rate Factor for the H.264 encode to 23, the libx264 default. This controls visual quality using variable bitrate compression — lower values (e.g., 18) give higher quality and larger files, higher values (e.g., 28) give smaller files with more compression artifacts. |
-b:a 128k
|
Sets the AAC audio bitrate to 128 kilobits per second. For standard-definition MPG content with typical MP2 audio, 128k AAC is generally sufficient to preserve dialogue and ambient audio without perceptible quality loss. |
output.rmvb
|
Defines the output filename with the .rmvb extension, instructing FFmpeg to write the result into a RealMedia Variable Bitrate container — the file format used by RealNetworks-compatible players and historically popular for video distribution in certain regional markets. |
Common Use Cases
- Sharing archived VCD or DVD-ripped MPG content with users who have legacy RealPlayer-based media players or set-top boxes that expect RMVB files
- Reducing the file size of large MPEG-2 broadcast recordings (e.g., captured TV content) for storage or distribution, where H.264 in RMVB offers far better compression than the original MPEG-2
- Preparing MPG home video transfers or digitized VHS recordings for distribution on older Chinese video-sharing platforms and communities where RMVB was the dominant format
- Converting MPG training or educational videos from DVD sources into RMVB for distribution to users with bandwidth-limited connections, leveraging H.264's superior efficiency
- Archiving MPG broadcast captures in a more space-efficient format while keeping a recognizable container format for compatibility with specific regional media ecosystems
- Batch-converting a library of legacy MPG files received from broadcast or production archives into a smaller RMVB collection for long-term offline storage on constrained hardware
Frequently Asked Questions
Yes, in most cases quite substantially. MPG files using MPEG-2 video are not nearly as compression-efficient as H.264, which libx264 uses in this conversion. MPEG-2 was designed for reliable broadcast and physical media delivery, not minimal file size. H.264 at CRF 23 can typically achieve the same perceived visual quality at 30–50% of the MPEG-2 bitrate, so your RMVB output will usually be noticeably smaller than the source MPG.
Yes — this is a lossy-to-lossy transcode, meaning both the input and output use compression that discards some data. The MPEG-2 video is decoded and then re-encoded with H.264 at CRF 23, which introduces a new generation of compression artifacts while removing the original ones. For most standard-definition MPG content from VCD or DVD sources, the quality difference at CRF 23 is minimal and often imperceptible, but if the source MPG was already heavily compressed, artifacts can accumulate. Lowering the CRF value (e.g., to 18) will improve output quality at the cost of a larger file.
Native RealVideo and RealAudio codecs are proprietary formats that are not supported by FFmpeg's open-source codec library. As a result, FFmpeg writes the RMVB container structure but uses widely supported open codecs — libx264 for video and AAC for audio. This is a common and accepted approach; the resulting RMVB file plays correctly in modern media players like VLC that handle both the container and the codecs independently.
No. MPG files from DVD sources can carry subtitle streams and navigation data, but this conversion does not transfer subtitles or chapter markers to the output — RMVB does not support these features in this workflow, and the FFmpeg command does not include flags to handle subtitle streams. If your MPG contains subtitles you need to retain, you would need to either burn them into the video (hardsubbing) or keep the source MPG alongside the converted file.
Adjust the CRF value in the command — lower values mean higher quality and larger files, higher values mean lower quality and smaller files. The default is CRF 23, which is a balanced midpoint. For near-lossless quality use CRF 18; for a smaller file where some quality loss is acceptable, try CRF 28. For example: 'ffmpeg -i input.mpg -c:v libx264 -c:a aac -crf 18 -b:a 128k output.rmvb' will produce a noticeably higher-quality output than the default.
Yes. On Linux or macOS, you can use a shell loop: 'for f in *.mpg; do ffmpeg -i "$f" -c:v libx264 -c:a aac -crf 23 -b:a 128k "${f%.mpg}.rmvb"; done'. On Windows Command Prompt, use: 'for %f in (*.mpg) do ffmpeg -i "%f" -c:v libx264 -c:a aac -crf 23 -b:a 128k "%~nf.rmvb"'. The browser-based tool processes files individually, but the desktop FFmpeg command is well-suited to batch scripting for large libraries.
Technical Notes
This conversion involves a full transcode of both streams — there is no possibility of stream copying since MPG's native codecs (MPEG-2 video, MP2 audio) are incompatible with RMVB's expected codec pairing in this FFmpeg workflow. The libx264 encoder operates in variable bitrate mode governed by the CRF parameter, which aligns well with RMVB's variable bitrate design philosophy. One important consideration is that MPG files sourced from VCDs use MPEG-1 video (not MPEG-2), which is even less efficient — these will benefit most from the re-encode. Audio quality may perceptibly improve in some cases since AAC at 128k is generally more efficient than MP2 at equivalent bitrates. However, note that RMVB is a legacy format with very limited support in modern software ecosystems outside of VLC and a handful of regional media players; if broad compatibility is your goal, MP4 with H.264 would be a more practical output choice. Metadata such as title tags embedded in the MPG are not reliably transferred to RMVB via this command. The RMVB container also does not support multiple audio tracks, subtitles, or chapter data, so any of those elements present in a DVD-sourced MPG will be silently dropped.