{"success":true,"data":{"ext":"ifo","name":"DVD info file","description":"The IFO (DVD info) file is a metadata file used in the DVD-Video format, defined and maintained by the DVD Forum. It stores navigation data, menus, playback commands, and chapter information for DVD players and authoring tools, helping them locate content on a disc. As a legacy format associated with optical media, it is generally safe to open, though corrupted files can prevent discs from playing correctly.","mime":["application/x-dvd-ifo"],"risk_level":"Safe","signatures":[{"hex":"44 56 44 56 49 44 45 4F 2D 56 54 53","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"44 56 44 56 49 44 45 4F 2D 56 4D 47","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"44 56 44","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["bup"],"usage":{"python":"def is_ifo(file_path: str) -> bool:\n    \"\"\"Check if file is a valid IFO by magic bytes.\"\"\"\n    signature = bytes([0x44, 0x56, 0x44, 0x56, 0x49, 0x44, 0x45, 0x4F, 0x2D, 0x56, 0x54, 0x53])\n    with open(file_path, \"rb\") as f:\n        return f.read(12) == signature","node":"function isIFO(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x44, 0x56, 0x44, 0x56, 0x49, 0x44, 0x45, 0x4F, 0x2D, 0x56, 0x54, 0x53]);\n  return buffer.subarray(0, 12).equals(signature);\n}","go":"func IsIFO(data []byte) bool {\n    signature := []byte{0x44, 0x56, 0x44, 0x56, 0x49, 0x44, 0x45, 0x4F, 0x2D, 0x56, 0x54, 0x53}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[:12], signature)\n}"}}}