{"success":true,"data":{"ext":"ytt","name":"YouTube Timed Text","description":"YouTube Timed Text (YTT) is a subtitle and caption file format used by YouTube to store synchronized text, and it is managed as part of the platform’s timed-text infrastructure. It is used for closed captions, translations, and subtitle delivery in YouTube videos and associated playback workflows. The format is generally safe and lightweight, with limited historical significance outside YouTube’s captioning systems.","mime":[],"risk_level":"Safe","signatures":[{"hex":"EF BB BF 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["wsf"],"usage":{"python":"def is_ytt(file_path: str) -> bool:\n    \"\"\"Check if file is a valid YTT by magic bytes.\"\"\"\n    signature = bytes([0xEF, 0xBB, 0xBF, 0x3C, 0x3F, 0x78, 0x6D, 0x6C, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E])\n    with open(file_path, \"rb\") as f:\n        return f.read(16) == signature","node":"function isYTT(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xEF, 0xBB, 0xBF, 0x3C, 0x3F, 0x78, 0x6D, 0x6C, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E]);\n  return buffer.subarray(0, 16).equals(signature);\n}","go":"func IsYTT(data []byte) bool {\n    signature := []byte{0xEF, 0xBB, 0xBF, 0x3C, 0x3F, 0x78, 0x6D, 0x6C, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E}\n    if len(data) < 16 {\n        return false\n    }\n    return bytes.Equal(data[:16], signature)\n}"}}}