RealMedia streaming media file

application/vnd.rn-realmedia

Safe

Magic Bytes

Offset: 0
2E 52 4D 46

RealMedia (RM) is a proprietary multimedia container format developed by RealNetworks for the delivery of streaming content over the internet. It primarily serves to encapsulate video and audio streams, often used in conjunction with RealAudio and RealVideo codecs for early online broadcasting and web-based media consumption. Although largely superseded by modern standards like MP4, the format is considered safe for playback, provided it is opened with compatible, up-to-date media software that handles legacy streams securely.

Extension

.rm

MIME Type

application/vnd.rn-realmedia

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .rm files in Python

Python
def is_rm(file_path: str) -> bool:
    """Check if file is a valid RM by magic bytes."""
    signature = bytes([0x2E, 0x52, 0x4D, 0x46])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .rm files in Node.js

Node.js
function isRM(buffer: Buffer): boolean {
  const signature = Buffer.from([0x2E, 0x52, 0x4D, 0x46]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsRM(data []byte) bool {
    signature := []byte{0x2E, 0x52, 0x4D, 0x46}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

GET /api/v1/rm
curl https://filesignature.org/api/v1/rm

Related Formats