{"success":true,"data":{"ext":"vtt","name":"VTT","description":"WebVTT (VTT) is a text-based caption and subtitle file format standardized by the W3C and WHATWG for use with web media. It is used for subtitles, captions, chapter markers, and text tracks in HTML5 video players, streaming platforms, and media authoring tools. The format is generally safe because it is plain text, though untrusted files may still be used to mislead viewers or reference external resources in some players.","mime":["text/vtt"],"risk_level":"Safe","signatures":[{"hex":"57 45 42 56 54 54 0D","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":"57 45 42 56 54 54 0A","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":"57 45 42 56 54 54 20 46 49 4C 45 0D","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":"57 45 42 56 54 54 20 46 49 4C 45 0A","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":"57 45 42 56 54 54 20","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"}]}],"related":[],"usage":{"python":"def is_vtt(file_path: str) -> bool:\n    \"\"\"Check if file is a valid VTT by magic bytes.\"\"\"\n    signature = bytes([0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x0D])\n    with open(file_path, \"rb\") as f:\n        return f.read(7) == signature","node":"function isVTT(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x0D]);\n  return buffer.subarray(0, 7).equals(signature);\n}","go":"func IsVTT(data []byte) bool {\n    signature := []byte{0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x0D}\n    if len(data) < 7 {\n        return false\n    }\n    return bytes.Equal(data[:7], signature)\n}"}}}