VDR
application/octet-stream
Magic Bytes
Offset: 0
52 49 46 46 56 44 52 4D
The VDR file format is a signpost or frameserver file created by Avery Lee for the VirtualDub video capture and processing utility. These files allow users to stream uncompressed or processed video frames directly from VirtualDub to other third-party encoding or editing applications without generating large intermediate files. As a metadata container that points to existing video streams, the format is considered safe; however, it is largely a legacy technology in modern digital video workflows.
Validation Code
How to validate .vdr files in Python
Python
def is_vdr(file_path: str) -> bool:
"""Check if file is a valid VDR by magic bytes."""
signature = bytes([0x52, 0x49, 0x46, 0x46, 0x56, 0x44, 0x52, 0x4D])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .vdr files in Node.js
Node.js
function isVDR(buffer: Buffer): boolean {
const signature = Buffer.from([0x52, 0x49, 0x46, 0x46, 0x56, 0x44, 0x52, 0x4D]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsVDR(data []byte) bool {
signature := []byte{0x52, 0x49, 0x46, 0x46, 0x56, 0x44, 0x52, 0x4D}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/vdr
curl https://filesignature.org/api/v1/vdr