RealPlayer video file
application/octet-stream
Magic Bytes
Offset: 0
2E 52 4D 46
The IVR file format is a proprietary video container developed by RealNetworks, structured specifically upon the foundational RealMedia architecture. It was primarily utilized by the RealPlayer application to store and play back video content that users recorded or downloaded directly from internet sources. As a specific iteration of the now-legacy RealMedia standard, this format requires specialized media players for viewing and has been largely superseded by modern container formats like MP4 in contemporary streaming workflows.
Validation Code
How to validate .ivr files in Python
Python
def is_ivr(file_path: str) -> bool:
"""Check if file is a valid IVR by magic bytes."""
signature = bytes([0x2E, 0x52, 0x4D, 0x46])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .ivr files in Node.js
Node.js
function isIVR(buffer: Buffer): boolean {
const signature = Buffer.from([0x2E, 0x52, 0x4D, 0x46]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsIVR(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/ivr
curl https://filesignature.org/api/v1/ivr