{"success":true,"data":{"ext":"drc","name":"DRC","description":"Dirac (DRC) is a video compression format developed by the BBC Research & Development department and later standardized by the Dirac project. It was designed for storing and transmitting digital video, particularly in broadcasting, streaming, and archival workflows. The format is generally safe to process, though compatibility is limited and it is now largely a legacy codec compared with more widely adopted modern video standards.","mime":["video/x-dirac"],"risk_level":"Safe","signatures":[{"hex":"4F 67 67 53 00 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 2E 42 42 43 44","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 52 41 43 4F","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["ogm","ogv","oga","ogg","ogx","opus"],"usage":{"python":"def is_drc(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DRC by magic bytes.\"\"\"\n    signature = bytes([0x4F, 0x67, 0x67, 0x53, 0x00, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x42, 0x42, 0x43, 0x44])\n    with open(file_path, \"rb\") as f:\n        return f.read(32) == signature","node":"function isDRC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4F, 0x67, 0x67, 0x53, 0x00, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x42, 0x42, 0x43, 0x44]);\n  return buffer.subarray(0, 32).equals(signature);\n}","go":"func IsDRC(data []byte) bool {\n    signature := []byte{0x4F, 0x67, 0x67, 0x53, 0x00, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x2E, 0x42, 0x42, 0x43, 0x44}\n    if len(data) < 32 {\n        return false\n    }\n    return bytes.Equal(data[:32], signature)\n}"},"category":"Video"}}