Convert RM to MPG — Free Online Tool

Convert RealMedia (.rm) files to MPG using MPEG-2 video and MP2 audio encoding — the same standards used for DVD and broadcast television. This tool brings legacy RealNetworks streaming content into a widely playable MPEG format directly in your browser, no upload 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

RealMedia files typically contain video encoded with RealVideo and audio encoded with RealAudio — proprietary codecs developed by RealNetworks for low-bandwidth internet streaming. During this conversion, FFmpeg decodes the RealVideo and RealAudio streams and re-encodes both: video is transcoded to MPEG-2 (mpeg2video), the same codec used in DVD-Video and broadcast MPEG, and audio is transcoded to MPEG-1 Audio Layer II (MP2), the standard audio codec for MPEG-2 program streams. This is a full re-encode of both streams, not a remux, because RM and MPG share no compatible codecs. The output is an MPEG program stream (.mpg) at a high-quality default of -q:v 2 and 192k audio bitrate.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg command-line tool, which handles all decoding, encoding, and container operations for this conversion.
-i input.rm Specifies the input RealMedia file. FFmpeg uses its RM demuxer to read the container and its built-in RealVideo/RealAudio decoders to decode the proprietary streams for re-encoding.
-c:v mpeg2video Sets the video encoder to MPEG-2, the standard used for DVD-Video and broadcast television. This re-encodes the decoded RealVideo frames into MPEG-2 intra- and inter-coded frames compatible with the .mpg container.
-c:a mp2 Sets the audio encoder to MPEG-1 Audio Layer II (MP2), the standard audio codec for MPEG-2 program streams. MP2 is required for proper compatibility with DVD players and broadcast MPEG equipment, and replaces the proprietary RealAudio encoding from the source RM file.
-q:v 2 Sets the MPEG-2 video quality scale to 2 out of 31, where 1 is the highest quality and 31 is the lowest. A value of 2 produces near-maximum visual quality at the cost of a larger file, which is appropriate given that the source RealVideo was likely already compressed at low quality for streaming.
-b:a 192k Sets the MP2 audio bitrate to 192 kilobits per second, a standard high-quality bitrate for MP2 audio in MPEG-2 streams, providing clear audio reproduction from the decoded RealAudio source.
output.mpg Specifies the output filename and format. The .mpg extension tells FFmpeg to write an MPEG program stream container, which wraps the MPEG-2 video and MP2 audio streams in a format compatible with DVD players, broadcast systems, and most modern media players.

Common Use Cases

  • Recovering archived RealMedia video files from the late 1990s or early 2000s and converting them to MPG for playback on modern media players and smart TVs that no longer support RealPlayer.
  • Migrating a collection of RealMedia lecture recordings or training videos from an old e-learning platform into MPEG-2 format for archival on DVD or broadcast-compatible storage.
  • Converting RM files downloaded from legacy streaming sites into MPG so they can be authored onto a Video CD (VCD) or played on standalone DVD players that support MPEG-1/2.
  • Preparing RealMedia news or documentary footage from early internet archives into MPG format for import into video editing software that supports MPEG-2 but not RealVideo.
  • Digitizing and standardizing a media library of .rm files from old corporate intranet streaming servers into a format that does not require proprietary RealPlayer software or plugins to play.
  • Extracting and re-encoding content from RealMedia files for use in broadcast production pipelines that require MPEG-2 program stream delivery.

Frequently Asked Questions

Yes, some quality loss is unavoidable because both the RealVideo and RealAudio streams must be fully decoded and re-encoded — there is no way to copy the streams directly since RealMedia's proprietary codecs are incompatible with the MPG container. However, at the default settings of -q:v 2 (near the top of MPEG-2's quality scale) and 192k MP2 audio, the output quality is high and the degradation is generally imperceptible for standard-definition content. Original RM files were often highly compressed for streaming, so the MPG output at these settings may actually look cleaner on modern displays.
RealMedia was specifically engineered for low-bandwidth internet streaming in the dial-up era, meaning RealVideo and RealAudio used aggressive compression to achieve very small file sizes. MPEG-2 at high quality settings (-q:v 2) targets visual fidelity rather than minimum file size, so the resulting MPG file will typically be significantly larger than the source RM file. If file size is a concern, you can increase the -q:v value (e.g., to 5 or higher) to reduce bitrate, at the cost of some visual quality.
The MPG output uses MPEG-2 video and MP2 audio, which are the correct codecs for DVD-Video. However, DVD authoring also requires specific resolutions (e.g., 720x480 for NTSC or 720x576 for PAL) and precise bitrate constraints. If your source RM file was encoded at a non-standard resolution or frame rate — common for early internet streaming content — you may need to add scaling and frame rate flags to the FFmpeg command before the output file is fully DVD-spec compliant.
Neither RealMedia nor the MPG format in this configuration supports embedded subtitles or chapter markers in a way that FFmpeg will transfer between them. RealMedia has its own proprietary metadata and navigation structures that are not mapped to MPEG program stream conventions. Any timing-based navigation or text overlay data in the original RM file will be lost during conversion.
The -q:v flag controls MPEG-2 video quality on a scale from 1 (highest quality, largest file) to 31 (lowest quality, smallest file). The default is -q:v 2, which is near-maximum quality. To reduce file size at the cost of quality, try -q:v 5 or -q:v 8. To change audio bitrate, replace -b:a 192k with -b:a 128k, -b:a 256k, or -b:a 320k. For example: ffmpeg -i input.rm -c:v mpeg2video -c:a mp2 -q:v 5 -b:a 128k output.mpg.
Yes. On Linux or macOS, you can run: for f in *.rm; do ffmpeg -i "$f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "${f%.rm}.mpg"; done. On Windows Command Prompt, use: for %f in (*.rm) do ffmpeg -i "%f" -c:v mpeg2video -c:a mp2 -q:v 2 -b:a 192k "%~nf.mpg". This processes every .rm file in the current directory and outputs a matching .mpg file using the same quality settings.

Technical Notes

RealMedia (.rm) is a proprietary container format that encapsulates RealVideo and RealAudio streams, codecs developed exclusively by RealNetworks and heavily optimized for streaming over low-bandwidth connections in the late 1990s and early 2000s. FFmpeg has read-only support for these proprietary codecs via its librm demuxer, meaning it can decode the streams but cannot encode to them. The output MPEG-2 program stream (.mpg) uses standardized codecs: mpeg2video for video and MP2 (MPEG-1 Audio Layer II) for audio, both of which are defined in the ISO/IEC 13818 standard. MP2 is the required audio codec for MPEG-2 program streams used in broadcast and DVD contexts — AAC or MP3 audio, while technically wrappable in an MPEG container, may cause compatibility issues with older hardware players. Because RealMedia was designed around variable and often low frame rates and resolutions (sometimes as low as 15fps at 320x240), the MPEG-2 output will preserve whatever resolution and frame rate the source file contains, which may not align with broadcast standards. No metadata from the RM container (title, author, copyright fields) is reliably mapped to the MPG output, and the format supports neither transparency nor multiple audio tracks in either the input or output.

Related Tools