DVD info file
application/x-dvd-ifo
Magic Bytes
Offset: 0
44 56 44 56 49 44 45 4F 2D 56 54 53
The DVD Info File is a metadata container format defined by the DVD Forum as an integral component of the DVD-Video specification. These files store critical navigational data, including chapter points, audio stream selection, and menu structures, enabling media players to correctly sequence and reproduce associated video content. As a legacy format tied to optical media, IFO files are static information containers that present no executable security risks to the user.
Validation Code
How to validate .ifo files in Python
Python
def is_ifo(file_path: str) -> bool:
"""Check if file is a valid IFO by magic bytes."""
signature = bytes([0x44, 0x56, 0x44, 0x56, 0x49, 0x44, 0x45, 0x4F, 0x2D, 0x56, 0x54, 0x53])
with open(file_path, "rb") as f:
return f.read(12) == signature
How to validate .ifo files in Node.js
Node.js
function isIFO(buffer: Buffer): boolean {
const signature = Buffer.from([0x44, 0x56, 0x44, 0x56, 0x49, 0x44, 0x45, 0x4F, 0x2D, 0x56, 0x54, 0x53]);
return buffer.subarray(0, 12).equals(signature);
}
Go
func IsIFO(data []byte) bool {
signature := []byte{0x44, 0x56, 0x44, 0x56, 0x49, 0x44, 0x45, 0x4F, 0x2D, 0x56, 0x54, 0x53}
if len(data) < 12 {
return false
}
return bytes.Equal(data[:12], signature)
}
API Endpoint
GET
/api/v1/ifo
curl https://filesignature.org/api/v1/ifo