Convert AVI to RM — Free Online Tool

Convert AVI files to RealMedia (.rm) format using MJPEG video encoding and AAC audio — entirely in your browser with no uploads required. This tool is ideal for archiving or testing legacy RealMedia streaming content from early web video 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

AVI files store video in a variety of codecs (commonly H.264/libx264 or MJPEG) interleaved with audio tracks. During conversion to RealMedia, the video stream is re-encoded to MJPEG — the only video codec supported by the RM container in this tool — which uses discrete cosine transform compression on individual frames, similar to a sequence of JPEG images with no inter-frame prediction. The audio is transcoded to AAC, regardless of whether the source AVI used MP3 or another format. Because MJPEG encodes each frame independently, the output file is typically much larger than an H.264-encoded AVI of the same content, and the RM container supports only a single audio track, so only the first audio stream from a multi-track AVI will be preserved.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg program, the open-source multimedia processing engine that powers this conversion both in the browser (via WebAssembly) and on your local desktop.
-i input.avi Specifies the input file as an AVI container. FFmpeg will detect the internal video and audio codecs automatically — commonly H.264 video and MP3 audio in modern AVI files — and use them as the source streams for re-encoding.
-c:v mjpeg Encodes the video stream using the MJPEG codec, which is the only video codec supported for RealMedia output in this pipeline. Unlike H.264 (common in AVI), MJPEG compresses each frame independently as a JPEG image, making it intra-frame only with no temporal prediction.
-c:a aac Transcodes the audio stream to AAC, the default and preferred audio codec for the RM container in this tool. If the source AVI contained MP3 or Vorbis audio, this re-encodes it to AAC, which offers better compression efficiency than MP3 at equivalent bitrates.
-q:v 5 Sets the MJPEG video quality level to 5 on a scale of 1 (best quality, largest file) to 10 (lowest quality, smallest file). A value of 5 is the default midpoint that balances visual fidelity against file size for typical AVI source material.
-b:a 128k Sets the AAC audio bitrate to 128 kilobits per second, which is sufficient for clear stereo audio reproduction of speech and music content typical in AVI recordings. This is the default and matches common streaming audio quality expectations for RealMedia content.
output.rm Defines the output filename with the .rm extension, which signals FFmpeg to use the RealMedia container format (libavformat's rm muxer). The .rm extension is the standard file extension for RealMedia video files as originally used by RealPlayer.

Common Use Cases

  • Reproducing early 2000s web video archives or educational media that were originally distributed as RealMedia streams for playback in legacy environments or emulators
  • Testing RealPlayer or RealMedia-compatible playback pipelines in retro software setups where the exact container format is required
  • Converting an AVI recording of a presentation or tutorial to RM format to match the file format requirements of an older content management system that expects RealMedia input
  • Generating MJPEG-encoded video from an AVI source for frame-accurate editing workflows that benefit from intra-frame-only compression
  • Archiving digitized VHS or camcorder footage originally stored as AVI into RealMedia format to match a legacy media library's original cataloging conventions
  • Experimenting with proprietary RealNetworks container output to understand historical streaming format constraints for digital media research or journalism

Frequently Asked Questions

This is a direct consequence of transcoding to MJPEG video. Unlike the H.264 codec commonly used in AVI files — which achieves high compression by predicting differences between frames — MJPEG compresses each frame independently as a still JPEG image with no inter-frame reference. This intra-frame-only approach preserves frame accuracy but produces significantly larger files, often 3–10x bigger than an H.264 source at equivalent visual quality.
No. The RealMedia container does not support multiple audio tracks, so only the first audio stream from the AVI source will be included in the output. If your AVI contains multiple language tracks or commentary streams, those secondary tracks will be silently dropped during conversion. If preserving alternate audio tracks is important, you should extract them separately before converting.
No. Neither subtitles nor chapter markers are supported by the RealMedia container as handled by this tool, and AVI itself has limited subtitle support. Any subtitle streams embedded in the AVI source will not be carried over to the RM output. If your workflow requires subtitles, a more modern container like MKV or MP4 would be a better target format.
The MJPEG video quality is controlled by the -q:v flag, which accepts values from 1 (highest quality, largest file) to 10 (lowest quality, smallest file). The default is 5, which balances file size and visual fidelity. To improve quality at the cost of file size, run: ffmpeg -i input.avi -c:v mjpeg -c:a aac -q:v 2 -b:a 128k output.rm. Note that unlike the CRF scale used for H.264, lower numbers mean better quality for MJPEG's -q:v parameter.
Yes. On Linux or macOS, you can use a shell loop: for f in *.avi; do ffmpeg -i "$f" -c:v mjpeg -c:a aac -q:v 5 -b:a 128k "${f%.avi}.rm"; done. On Windows Command Prompt, use: for %f in (*.avi) do ffmpeg -i "%f" -c:v mjpeg -c:a aac -q:v 5 -b:a 128k "%~nf.rm". This is particularly useful for the desktop FFmpeg command when processing large batches or files over 1GB that exceed the browser tool's practical range.
Yes, this conversion is lossy and the quality loss is not reversible. Even if your source AVI used lossless video encoding, the output will be re-encoded to MJPEG, which discards information to achieve compression. The AAC audio transcode also introduces generation loss compared to the original, especially if the source audio was already MP3-compressed in the AVI. You should always keep your original AVI file, as converting the RM back to AVI would compound the quality loss with a second round of re-encoding.

Technical Notes

The RealMedia (.rm) container is a proprietary format developed by RealNetworks and saw peak usage in the late 1990s and early 2000s for dial-up and broadband streaming. When converting from AVI, the most significant technical constraint is that the RM container — as supported via FFmpeg's libavformat — is limited to MJPEG for video encoding. This means any AVI using H.264, MPEG-4, or other inter-frame codecs must be fully re-encoded rather than remuxed, which increases both processing time and output file size. MJPEG quality in FFmpeg is governed by the -q:v scale (1–10), not the CRF scale used for H.264 in AVI. Audio is transcoded to AAC at 128k by default, which is generally adequate for speech and moderate-quality music; the RM container does not support the Vorbis codec available in AVI. Metadata such as title, artist, and comment tags from the AVI source are unlikely to be preserved faithfully in the RM output due to differing metadata schemas between the two containers. The RM format does not support transparency, subtitles, chapters, or multiple audio tracks, making it a significant functional downgrade from modern containers — its primary relevance today is historical compatibility.

Related Tools