VideoVCD
application/octet-stream
Magic Bytes
Offset: 0
45 52 02 00 00
VideoVCD is a proprietary disc image format developed by FarStone Technology for creating virtual clones of optical media. This format is primarily used to emulate physical CD and DVD drives, allowing users to run disc-based applications and multimedia content without requiring the original hardware. As a legacy utility, it is mostly obsolete in modern computing environments, though it remains a secure format with no significant known vulnerabilities for archival data access.
Validation Code
How to validate .vcd files in Python
Python
def is_vcd(file_path: str) -> bool:
"""Check if file is a valid VCD by magic bytes."""
signature = bytes([0x45, 0x52, 0x02, 0x00, 0x00])
with open(file_path, "rb") as f:
return f.read(5) == signature
How to validate .vcd files in Node.js
Node.js
function isVCD(buffer: Buffer): boolean {
const signature = Buffer.from([0x45, 0x52, 0x02, 0x00, 0x00]);
return buffer.subarray(0, 5).equals(signature);
}
Go
func IsVCD(data []byte) bool {
signature := []byte{0x45, 0x52, 0x02, 0x00, 0x00}
if len(data) < 5 {
return false
}
return bytes.Equal(data[:5], signature)
}
API Endpoint
GET
/api/v1/vcd
curl https://filesignature.org/api/v1/vcd