1 2#------------------------------------------------------------------------------ 3# $File: animation,v 1.57 2015/11/29 22:11:07 christos Exp $ 4# animation: file(1) magic for animation/movie formats 5# 6# animation formats 7# MPEG, FLI, DL originally from vax@ccwf.cc.utexas.edu (VaX#n8) 8# FLC, SGI, Apple originally from Daniel Quinlan (quinlan@yggdrasil.com) 9 10# SGI and Apple formats 110 string MOVI Silicon Graphics movie file 12!:mime video/x-sgi-movie 134 string moov Apple QuickTime 14!:mime video/quicktime 15>12 string mvhd \b movie (fast start) 16>12 string mdra \b URL 17>12 string cmov \b movie (fast start, compressed header) 18>12 string rmra \b multiple URLs 194 string mdat Apple QuickTime movie (unoptimized) 20!:mime video/quicktime 21#4 string wide Apple QuickTime movie (unoptimized) 22#!:mime video/quicktime 23#4 string skip Apple QuickTime movie (modified) 24#!:mime video/quicktime 25#4 string free Apple QuickTime movie (modified) 26#!:mime video/quicktime 274 string idsc Apple QuickTime image (fast start) 28!:mime image/x-quicktime 29#4 string idat Apple QuickTime image (unoptimized) 30#!:mime image/x-quicktime 314 string pckg Apple QuickTime compressed archive 32!:mime application/x-quicktime-player 334 string/W jP JPEG 2000 image 34!:mime image/jp2 35# http://www.ftyps.com/ with local additions 364 string ftyp ISO Media 37>8 string 3g2 \b, MPEG v4 system, 3GPP2 38!:mime video/3gpp2 39>>11 byte 4 \b v4 (H.263/AMR GSM 6.10) 40>>11 byte 5 \b v5 (H.263/AMR GSM 6.10) 41>>11 byte 6 \b v6 (ITU H.264/AMR GSM 6.10) 42>>11 byte a \b C.S0050-0 V1.0 43>>11 byte b \b C.S0050-0-A V1.0.0 44>>11 byte c \b C.S0050-0-B V1.0 45>8 string 3ge \b, MPEG v4 system, 3GPP 46!:mime video/3gpp 47>>11 byte 6 \b, Release 6 MBMS Extended Presentations 48>>11 byte 7 \b, Release 7 MBMS Extended Presentations 49>8 string 3gg \b, MPEG v4 system, 3GPP 50>11 byte 6 \b, Release 6 General Profile 51!:mime video/3gpp 52>8 string 3gp \b, MPEG v4 system, 3GPP 53>11 byte 1 \b, Release %d (non existent) 54>11 byte 2 \b, Release %d (non existent) 55>11 byte 3 \b, Release %d (non existent) 56>11 byte 4 \b, Release %d 57>11 byte 5 \b, Release %d 58>11 byte 6 \b, Release %d 59>11 byte 7 \b, Release %d Streaming Servers 60!:mime video/3gpp 61>8 string 3gs \b, MPEG v4 system, 3GPP 62>11 byte 7 \b, Release %d Streaming Servers 63!:mime video/3gpp 64>8 string avc1 \b, MPEG v4 system, 3GPP JVT AVC [ISO 14496-12:2005] 65!:mime video/mp4 66>8 string/W qt \b, Apple QuickTime movie 67!:mime video/quicktime 68>8 string CAEP \b, Canon Digital Camera 69>8 string caqv \b, Casio Digital Camera 70>8 string CDes \b, Convergent Design 71>8 string da0a \b, DMB MAF w/ MPEG Layer II aud, MOT slides, DLS, JPG/PNG/MNG 72>8 string da0b \b, DMB MAF, ext DA0A, with 3GPP timed text, DID, TVA, REL, IPMP 73>8 string da1a \b, DMB MAF audio with ER-BSAC audio, JPG/PNG/MNG images 74>8 string da1b \b, DMB MAF, ext da1a, with 3GPP timed text, DID, TVA, REL, IPMP 75>8 string da2a \b, DMB MAF aud w/ HE-AAC v2 aud, MOT slides, DLS, JPG/PNG/MNG 76>8 string da2b \b, DMB MAF, ext da2a, with 3GPP timed text, DID, TVA, REL, IPMP 77>8 string da3a \b, DMB MAF aud with HE-AAC aud, JPG/PNG/MNG images 78>8 string da3b \b, DMB MAF, ext da3a w/ BIFS, 3GPP, DID, TVA, REL, IPMP 79>8 string dash \b, MPEG v4 system, Dynamic Adaptive Streaming over HTTP 80!:mime video/mp4 81>8 string dmb1 \b, DMB MAF supporting all the components defined in the spec 82>8 string dmpf \b, Digital Media Project 83>8 string drc1 \b, Dirac (wavelet compression), encap in ISO base media (MP4) 84>8 string dv1a \b, DMB MAF vid w/ AVC vid, ER-BSAC aud, BIFS, JPG/PNG/MNG, TS 85>8 string dv1b \b, DMB MAF, ext dv1a, with 3GPP timed text, DID, TVA, REL, IPMP 86>8 string dv2a \b, DMB MAF vid w/ AVC vid, HE-AAC v2 aud, BIFS, JPG/PNG/MNG, TS 87>8 string dv2b \b, DMB MAF, ext dv2a, with 3GPP timed text, DID, TVA, REL, IPMP 88>8 string dv3a \b, DMB MAF vid w/ AVC vid, HE-AAC aud, BIFS, JPG/PNG/MNG, TS 89>8 string dv3b \b, DMB MAF, ext dv3a, with 3GPP timed text, DID, TVA, REL, IPMP 90>8 string dvr1 \b, DVB (.DVB) over RTP 91!:mime video/vnd.dvb.file 92>8 string dvt1 \b, DVB (.DVB) over MPEG-2 Transport Stream 93!:mime video/vnd.dvb.file 94>8 string F4V \b, Video for Adobe Flash Player 9+ (.F4V) 95!:mime video/mp4 96>8 string F4P \b, Protected Video for Adobe Flash Player 9+ (.F4P) 97!:mime video/mp4 98>8 string F4A \b, Audio for Adobe Flash Player 9+ (.F4A) 99!:mime audio/mp4 100>8 string F4B \b, Audio Book for Adobe Flash Player 9+ (.F4B) 101!:mime audio/mp4 102>8 string isc2 \b, ISMACryp 2.0 Encrypted File 103# ?/enc-isoff-generic 104>8 string iso2 \b, MP4 Base Media v2 [ISO 14496-12:2005] 105!:mime video/mp4 106>8 string isom \b, MP4 Base Media v1 [IS0 14496-12:2003] 107!:mime video/mp4 108>8 string/W jp2 \b, JPEG 2000 109!:mime image/jp2 110>8 string JP2 \b, JPEG 2000 Image (.JP2) [ISO 15444-1 ?] 111!:mime image/jp2 112>8 string JP20 \b, Unknown, from GPAC samples (prob non-existent) 113>8 string jpm \b, JPEG 2000 Compound Image (.JPM) [ISO 15444-6] 114!:mime image/jpm 115>8 string jpx \b, JPEG 2000 w/ extensions (.JPX) [ISO 15444-2] 116!:mime image/jpx 117>8 string KDDI \b, 3GPP2 EZmovie for KDDI 3G cellphones 118!:mime video/3gpp2 119>8 string M4A \b, Apple iTunes ALAC/AAC-LC (.M4A) Audio 120!:mime audio/x-m4a 121>8 string M4B \b, Apple iTunes ALAC/AAC-LC (.M4B) Audio Book 122!:mime audio/mp4 123>8 string M4P \b, Apple iTunes ALAC/AAC-LC (.M4P) AES Protected Audio 124!:mime video/mp4 125>8 string M4V \b, Apple iTunes Video (.M4V) Video 126!:mime video/x-m4v 127>8 string M4VH \b, Apple TV (.M4V) 128!:mime video/x-m4v 129>8 string M4VP \b, Apple iPhone (.M4V) 130!:mime video/x-m4v 131>8 string mj2s \b, Motion JPEG 2000 [ISO 15444-3] Simple Profile 132!:mime video/mj2 133>8 string mjp2 \b, Motion JPEG 2000 [ISO 15444-3] General Profile 134!:mime video/mj2 135>8 string mmp4 \b, MPEG-4/3GPP Mobile Profile (.MP4 / .3GP) (for NTT) 136!:mime video/mp4 137>8 string mobi \b, MPEG-4, MOBI format 138!:mime video/mp4 139>8 string mp21 \b, MPEG-21 [ISO/IEC 21000-9] 140>8 string mp41 \b, MP4 v1 [ISO 14496-1:ch13] 141!:mime video/mp4 142>8 string mp42 \b, MP4 v2 [ISO 14496-14] 143!:mime video/mp4 144>8 string mp71 \b, MP4 w/ MPEG-7 Metadata [per ISO 14496-12] 145>8 string mp7t \b, MPEG v4 system, MPEG v7 XML 146>8 string mp7b \b, MPEG v4 system, MPEG v7 binary XML 147>8 string mmp4 \b, MPEG v4 system, 3GPP Mobile 148!:mime video/mp4 149>8 string MPPI \b, Photo Player, MAF [ISO/IEC 23000-3] 150>8 string mqt \b, Sony / Mobile QuickTime (.MQV) US Pat 7,477,830 151!:mime video/quicktime 152>8 string MSNV \b, MPEG-4 (.MP4) for SonyPSP 153!:mime audio/mp4 154>8 string NDAS \b, MP4 v2 [ISO 14496-14] Nero Digital AAC Audio 155!:mime audio/mp4 156>8 string NDSC \b, MPEG-4 (.MP4) Nero Cinema Profile 157!:mime video/mp4 158>8 string NDSH \b, MPEG-4 (.MP4) Nero HDTV Profile 159!:mime video/mp4 160>8 string NDSM \b, MPEG-4 (.MP4) Nero Mobile Profile 161!:mime video/mp4 162>8 string NDSP \b, MPEG-4 (.MP4) Nero Portable Profile 163!:mime video/mp4 164>8 string NDSS \b, MPEG-4 (.MP4) Nero Standard Profile 165!:mime video/mp4 166>8 string NDXC \b, H.264/MPEG-4 AVC (.MP4) Nero Cinema Profile 167!:mime video/mp4 168>8 string NDXH \b, H.264/MPEG-4 AVC (.MP4) Nero HDTV Profile 169!:mime video/mp4 170>8 string NDXM \b, H.264/MPEG-4 AVC (.MP4) Nero Mobile Profile 171!:mime video/mp4 172>8 string NDXP \b, H.264/MPEG-4 AVC (.MP4) Nero Portable Profile 173!:mime video/mp4 174>8 string NDXS \b, H.264/MPEG-4 AVC (.MP4) Nero Standard Profile 175!:mime video/mp4 176>8 string odcf \b, OMA DCF DRM Format 2.0 (OMA-TS-DRM-DCF-V2_0-20060303-A) 177>8 string opf2 \b, OMA PDCF DRM Format 2.1 (OMA-TS-DRM-DCF-V2_1-20070724-C) 178>8 string opx2 \b, OMA PDCF DRM + XBS ext (OMA-TS-DRM_XBS-V1_0-20070529-C) 179>8 string pana \b, Panasonic Digital Camera 180>8 string qt \b, Apple QuickTime (.MOV/QT) 181!:mime video/quicktime 182>8 string ROSS \b, Ross Video 183>8 string sdv \b, SD Memory Card Video 184>8 string ssc1 \b, Samsung stereo, single stream (patent pending) 185>8 string ssc2 \b, Samsung stereo, dual stream (patent pending) 186 187# MPEG sequences 188# Scans for all common MPEG header start codes 1890 belong 0x00000001 190>4 byte&0x1F 0x07 JVT NAL sequence, H.264 video 191>>5 byte 66 \b, baseline 192>>5 byte 77 \b, main 193>>5 byte 88 \b, extended 194>>7 byte x \b @ L %u 1950 belong&0xFFFFFF00 0x00000100 196>3 byte 0xBA MPEG sequence 197!:mime video/mpeg 198>>4 byte &0x40 \b, v2, program multiplex 199>>4 byte ^0x40 \b, v1, system multiplex 200>3 byte 0xBB MPEG sequence, v1/2, multiplex (missing pack header) 201>3 byte&0x1F 0x07 MPEG sequence, H.264 video 202>>4 byte 66 \b, baseline 203>>4 byte 77 \b, main 204>>4 byte 88 \b, extended 205>>6 byte x \b @ L %u 206# GRR too general as it catches also FoxPro Memo example NG.FPT 207>3 byte 0xB0 MPEG sequence, v4 208# TODO: maybe this extra line exclude FoxPro Memo example NG.FPT starting with 000001b0 00000100 00000000 209#>>4 byte !0 MPEG sequence, v4 210!:mime video/mpeg4-generic 211>>5 belong 0x000001B5 212>>>9 byte &0x80 213>>>>10 byte&0xF0 16 \b, video 214>>>>10 byte&0xF0 32 \b, still texture 215>>>>10 byte&0xF0 48 \b, mesh 216>>>>10 byte&0xF0 64 \b, face 217>>>9 byte&0xF8 8 \b, video 218>>>9 byte&0xF8 16 \b, still texture 219>>>9 byte&0xF8 24 \b, mesh 220>>>9 byte&0xF8 32 \b, face 221>>4 byte 1 \b, simple @ L1 222>>4 byte 2 \b, simple @ L2 223>>4 byte 3 \b, simple @ L3 224>>4 byte 4 \b, simple @ L0 225>>4 byte 17 \b, simple scalable @ L1 226>>4 byte 18 \b, simple scalable @ L2 227>>4 byte 33 \b, core @ L1 228>>4 byte 34 \b, core @ L2 229>>4 byte 50 \b, main @ L2 230>>4 byte 51 \b, main @ L3 231>>4 byte 53 \b, main @ L4 232>>4 byte 66 \b, n-bit @ L2 233>>4 byte 81 \b, scalable texture @ L1 234>>4 byte 97 \b, simple face animation @ L1 235>>4 byte 98 \b, simple face animation @ L2 236>>4 byte 99 \b, simple face basic animation @ L1 237>>4 byte 100 \b, simple face basic animation @ L2 238>>4 byte 113 \b, basic animation text @ L1 239>>4 byte 114 \b, basic animation text @ L2 240>>4 byte 129 \b, hybrid @ L1 241>>4 byte 130 \b, hybrid @ L2 242>>4 byte 145 \b, advanced RT simple @ L! 243>>4 byte 146 \b, advanced RT simple @ L2 244>>4 byte 147 \b, advanced RT simple @ L3 245>>4 byte 148 \b, advanced RT simple @ L4 246>>4 byte 161 \b, core scalable @ L1 247>>4 byte 162 \b, core scalable @ L2 248>>4 byte 163 \b, core scalable @ L3 249>>4 byte 177 \b, advanced coding efficiency @ L1 250>>4 byte 178 \b, advanced coding efficiency @ L2 251>>4 byte 179 \b, advanced coding efficiency @ L3 252>>4 byte 180 \b, advanced coding efficiency @ L4 253>>4 byte 193 \b, advanced core @ L1 254>>4 byte 194 \b, advanced core @ L2 255>>4 byte 209 \b, advanced scalable texture @ L1 256>>4 byte 210 \b, advanced scalable texture @ L2 257>>4 byte 211 \b, advanced scalable texture @ L3 258>>4 byte 225 \b, simple studio @ L1 259>>4 byte 226 \b, simple studio @ L2 260>>4 byte 227 \b, simple studio @ L3 261>>4 byte 228 \b, simple studio @ L4 262>>4 byte 229 \b, core studio @ L1 263>>4 byte 230 \b, core studio @ L2 264>>4 byte 231 \b, core studio @ L3 265>>4 byte 232 \b, core studio @ L4 266>>4 byte 240 \b, advanced simple @ L0 267>>4 byte 241 \b, advanced simple @ L1 268>>4 byte 242 \b, advanced simple @ L2 269>>4 byte 243 \b, advanced simple @ L3 270>>4 byte 244 \b, advanced simple @ L4 271>>4 byte 245 \b, advanced simple @ L5 272>>4 byte 247 \b, advanced simple @ L3b 273>>4 byte 248 \b, FGS @ L0 274>>4 byte 249 \b, FGS @ L1 275>>4 byte 250 \b, FGS @ L2 276>>4 byte 251 \b, FGS @ L3 277>>4 byte 252 \b, FGS @ L4 278>>4 byte 253 \b, FGS @ L5 279>3 byte 0xB5 MPEG sequence, v4 280!:mime video/mpeg4-generic 281>>4 byte &0x80 282>>>5 byte&0xF0 16 \b, video (missing profile header) 283>>>5 byte&0xF0 32 \b, still texture (missing profile header) 284>>>5 byte&0xF0 48 \b, mesh (missing profile header) 285>>>5 byte&0xF0 64 \b, face (missing profile header) 286>>4 byte&0xF8 8 \b, video (missing profile header) 287>>4 byte&0xF8 16 \b, still texture (missing profile header) 288>>4 byte&0xF8 24 \b, mesh (missing profile header) 289>>4 byte&0xF8 32 \b, face (missing profile header) 290>3 byte 0xB3 MPEG sequence 291!:mime video/mpeg 292>>12 belong 0x000001B8 \b, v1, progressive Y'CbCr 4:2:0 video 293>>12 belong 0x000001B2 \b, v1, progressive Y'CbCr 4:2:0 video 294>>12 belong 0x000001B5 \b, v2, 295>>>16 byte&0x0F 1 \b HP 296>>>16 byte&0x0F 2 \b Spt 297>>>16 byte&0x0F 3 \b SNR 298>>>16 byte&0x0F 4 \b MP 299>>>16 byte&0x0F 5 \b SP 300>>>17 byte&0xF0 64 \b@HL 301>>>17 byte&0xF0 96 \b@H-14 302>>>17 byte&0xF0 128 \b@ML 303>>>17 byte&0xF0 160 \b@LL 304>>>17 byte &0x08 \b progressive 305>>>17 byte ^0x08 \b interlaced 306>>>17 byte&0x06 2 \b Y'CbCr 4:2:0 video 307>>>17 byte&0x06 4 \b Y'CbCr 4:2:2 video 308>>>17 byte&0x06 6 \b Y'CbCr 4:4:4 video 309>>11 byte &0x02 310>>>75 byte &0x01 311>>>>140 belong 0x000001B8 \b, v1, progressive Y'CbCr 4:2:0 video 312>>>>140 belong 0x000001B2 \b, v1, progressive Y'CbCr 4:2:0 video 313>>>>140 belong 0x000001B5 \b, v2, 314>>>>>144 byte&0x0F 1 \b HP 315>>>>>144 byte&0x0F 2 \b Spt 316>>>>>144 byte&0x0F 3 \b SNR 317>>>>>144 byte&0x0F 4 \b MP 318>>>>>144 byte&0x0F 5 \b SP 319>>>>>145 byte&0xF0 64 \b@HL 320>>>>>145 byte&0xF0 96 \b@H-14 321>>>>>145 byte&0xF0 128 \b@ML 322>>>>>145 byte&0xF0 160 \b@LL 323>>>>>145 byte &0x08 \b progressive 324>>>>>145 byte ^0x08 \b interlaced 325>>>>>145 byte&0x06 2 \b Y'CbCr 4:2:0 video 326>>>>>145 byte&0x06 4 \b Y'CbCr 4:2:2 video 327>>>>>145 byte&0x06 6 \b Y'CbCr 4:4:4 video 328>>76 belong 0x000001B8 \b, v1, progressive Y'CbCr 4:2:0 video 329>>76 belong 0x000001B2 \b, v1, progressive Y'CbCr 4:2:0 video 330>>76 belong 0x000001B5 \b, v2, 331>>>80 byte&0x0F 1 \b HP 332>>>80 byte&0x0F 2 \b Spt 333>>>80 byte&0x0F 3 \b SNR 334>>>80 byte&0x0F 4 \b MP 335>>>80 byte&0x0F 5 \b SP 336>>>81 byte&0xF0 64 \b@HL 337>>>81 byte&0xF0 96 \b@H-14 338>>>81 byte&0xF0 128 \b@ML 339>>>81 byte&0xF0 160 \b@LL 340>>>81 byte &0x08 \b progressive 341>>>81 byte ^0x08 \b interlaced 342>>>81 byte&0x06 2 \b Y'CbCr 4:2:0 video 343>>>81 byte&0x06 4 \b Y'CbCr 4:2:2 video 344>>>81 byte&0x06 6 \b Y'CbCr 4:4:4 video 345>>4 belong&0xFFFFFF00 0x78043800 \b, HD-TV 1920P 346>>>7 byte&0xF0 0x10 \b, 16:9 347>>4 belong&0xFFFFFF00 0x50002D00 \b, SD-TV 1280I 348>>>7 byte&0xF0 0x10 \b, 16:9 349>>4 belong&0xFFFFFF00 0x30024000 \b, PAL Capture 350>>>7 byte&0xF0 0x10 \b, 4:3 351>>4 beshort&0xFFF0 0x2C00 \b, 4CIF 352>>>5 beshort&0x0FFF 0x01E0 \b NTSC 353>>>5 beshort&0x0FFF 0x0240 \b PAL 354>>>7 byte&0xF0 0x20 \b, 4:3 355>>>7 byte&0xF0 0x30 \b, 16:9 356>>>7 byte&0xF0 0x40 \b, 11:5 357>>>7 byte&0xF0 0x80 \b, PAL 4:3 358>>>7 byte&0xF0 0xC0 \b, NTSC 4:3 359>>4 belong&0xFFFFFF00 0x2801E000 \b, LD-TV 640P 360>>>7 byte&0xF0 0x10 \b, 4:3 361>>4 belong&0xFFFFFF00 0x1400F000 \b, 320x240 362>>>7 byte&0xF0 0x10 \b, 4:3 363>>4 belong&0xFFFFFF00 0x0F00A000 \b, 240x160 364>>>7 byte&0xF0 0x10 \b, 4:3 365>>4 belong&0xFFFFFF00 0x0A007800 \b, 160x120 366>>>7 byte&0xF0 0x10 \b, 4:3 367>>4 beshort&0xFFF0 0x1600 \b, CIF 368>>>5 beshort&0x0FFF 0x00F0 \b NTSC 369>>>5 beshort&0x0FFF 0x0120 \b PAL 370>>>7 byte&0xF0 0x20 \b, 4:3 371>>>7 byte&0xF0 0x30 \b, 16:9 372>>>7 byte&0xF0 0x40 \b, 11:5 373>>>7 byte&0xF0 0x80 \b, PAL 4:3 374>>>7 byte&0xF0 0xC0 \b, NTSC 4:3 375>>>5 beshort&0x0FFF 0x0240 \b PAL 625 376>>>>7 byte&0xF0 0x20 \b, 4:3 377>>>>7 byte&0xF0 0x30 \b, 16:9 378>>>>7 byte&0xF0 0x40 \b, 11:5 379>>4 beshort&0xFFF0 0x2D00 \b, CCIR/ITU 380>>>5 beshort&0x0FFF 0x01E0 \b NTSC 525 381>>>5 beshort&0x0FFF 0x0240 \b PAL 625 382>>>7 byte&0xF0 0x20 \b, 4:3 383>>>7 byte&0xF0 0x30 \b, 16:9 384>>>7 byte&0xF0 0x40 \b, 11:5 385>>4 beshort&0xFFF0 0x1E00 \b, SVCD 386>>>5 beshort&0x0FFF 0x01E0 \b NTSC 525 387>>>5 beshort&0x0FFF 0x0240 \b PAL 625 388>>>7 byte&0xF0 0x20 \b, 4:3 389>>>7 byte&0xF0 0x30 \b, 16:9 390>>>7 byte&0xF0 0x40 \b, 11:5 391>>7 byte&0x0F 1 \b, 23.976 fps 392>>7 byte&0x0F 2 \b, 24 fps 393>>7 byte&0x0F 3 \b, 25 fps 394>>7 byte&0x0F 4 \b, 29.97 fps 395>>7 byte&0x0F 5 \b, 30 fps 396>>7 byte&0x0F 6 \b, 50 fps 397>>7 byte&0x0F 7 \b, 59.94 fps 398>>7 byte&0x0F 8 \b, 60 fps 399>>11 byte &0x04 \b, Constrained 400 401# MPEG ADTS Audio (*.mpx/mxa/aac) 402# from dreesen@math.fu-berlin.de 403# modified to fully support MPEG ADTS 404 405# MP3, M1A 406# modified by Joerg Jenderek 407# GRR the original test are too common for many DOS files 408# so don't accept as MP3 until we've tested the rate 4090 beshort&0xFFFE 0xFFFA 410# rates 411>2 byte&0xF0 0x10 MPEG ADTS, layer III, v1, 32 kbps 412!:mime audio/mpeg 413>2 byte&0xF0 0x20 MPEG ADTS, layer III, v1, 40 kbps 414!:mime audio/mpeg 415>2 byte&0xF0 0x30 MPEG ADTS, layer III, v1, 48 kbps 416!:mime audio/mpeg 417>2 byte&0xF0 0x40 MPEG ADTS, layer III, v1, 56 kbps 418!:mime audio/mpeg 419>2 byte&0xF0 0x50 MPEG ADTS, layer III, v1, 64 kbps 420!:mime audio/mpeg 421>2 byte&0xF0 0x60 MPEG ADTS, layer III, v1, 80 kbps 422!:mime audio/mpeg 423>2 byte&0xF0 0x70 MPEG ADTS, layer III, v1, 96 kbps 424!:mime audio/mpeg 425>2 byte&0xF0 0x80 MPEG ADTS, layer III, v1, 112 kbps 426!:mime audio/mpeg 427>2 byte&0xF0 0x90 MPEG ADTS, layer III, v1, 128 kbps 428!:mime audio/mpeg 429>2 byte&0xF0 0xA0 MPEG ADTS, layer III, v1, 160 kbps 430!:mime audio/mpeg 431>2 byte&0xF0 0xB0 MPEG ADTS, layer III, v1, 192 kbps 432!:mime audio/mpeg 433>2 byte&0xF0 0xC0 MPEG ADTS, layer III, v1, 224 kbps 434!:mime audio/mpeg 435>2 byte&0xF0 0xD0 MPEG ADTS, layer III, v1, 256 kbps 436!:mime audio/mpeg 437>2 byte&0xF0 0xE0 MPEG ADTS, layer III, v1, 320 kbps 438!:mime audio/mpeg 439# timing 440>2 byte&0x0C 0x00 \b, 44.1 kHz 441>2 byte&0x0C 0x04 \b, 48 kHz 442>2 byte&0x0C 0x08 \b, 32 kHz 443# channels/options 444>3 byte&0xC0 0x00 \b, Stereo 445>3 byte&0xC0 0x40 \b, JntStereo 446>3 byte&0xC0 0x80 \b, 2x Monaural 447>3 byte&0xC0 0xC0 \b, Monaural 448#>1 byte ^0x01 \b, Data Verify 449#>2 byte &0x02 \b, Packet Pad 450#>2 byte &0x01 \b, Custom Flag 451#>3 byte &0x08 \b, Copyrighted 452#>3 byte &0x04 \b, Original Source 453#>3 byte&0x03 1 \b, NR: 50/15 ms 454#>3 byte&0x03 3 \b, NR: CCIT J.17 455 456# MP2, M1A 4570 beshort&0xFFFE 0xFFFC MPEG ADTS, layer II, v1 458!:mime audio/mpeg 459# rates 460>2 byte&0xF0 0x10 \b, 32 kbps 461>2 byte&0xF0 0x20 \b, 48 kbps 462>2 byte&0xF0 0x30 \b, 56 kbps 463>2 byte&0xF0 0x40 \b, 64 kbps 464>2 byte&0xF0 0x50 \b, 80 kbps 465>2 byte&0xF0 0x60 \b, 96 kbps 466>2 byte&0xF0 0x70 \b, 112 kbps 467>2 byte&0xF0 0x80 \b, 128 kbps 468>2 byte&0xF0 0x90 \b, 160 kbps 469>2 byte&0xF0 0xA0 \b, 192 kbps 470>2 byte&0xF0 0xB0 \b, 224 kbps 471>2 byte&0xF0 0xC0 \b, 256 kbps 472>2 byte&0xF0 0xD0 \b, 320 kbps 473>2 byte&0xF0 0xE0 \b, 384 kbps 474# timing 475>2 byte&0x0C 0x00 \b, 44.1 kHz 476>2 byte&0x0C 0x04 \b, 48 kHz 477>2 byte&0x0C 0x08 \b, 32 kHz 478# channels/options 479>3 byte&0xC0 0x00 \b, Stereo 480>3 byte&0xC0 0x40 \b, JntStereo 481>3 byte&0xC0 0x80 \b, 2x Monaural 482>3 byte&0xC0 0xC0 \b, Monaural 483#>1 byte ^0x01 \b, Data Verify 484#>2 byte &0x02 \b, Packet Pad 485#>2 byte &0x01 \b, Custom Flag 486#>3 byte &0x08 \b, Copyrighted 487#>3 byte &0x04 \b, Original Source 488#>3 byte&0x03 1 \b, NR: 50/15 ms 489#>3 byte&0x03 3 \b, NR: CCIT J.17 490 491# MPA, M1A 492# updated by Joerg Jenderek 493# GRR the original test are too common for many DOS files, so test 32 <= kbits <= 448 494# GRR this test is still too general as it catches a BOM of UTF-16 files (0xFFFE) 495# FIXME: Almost all little endian UTF-16 text with BOM are clobbered by these entries 496#0 beshort&0xFFFE 0xFFFE 497#>2 ubyte&0xF0 >0x0F 498#>>2 ubyte&0xF0 <0xE1 MPEG ADTS, layer I, v1 499## rate 500#>>>2 byte&0xF0 0x10 \b, 32 kbps 501#>>>2 byte&0xF0 0x20 \b, 64 kbps 502#>>>2 byte&0xF0 0x30 \b, 96 kbps 503#>>>2 byte&0xF0 0x40 \b, 128 kbps 504#>>>2 byte&0xF0 0x50 \b, 160 kbps 505#>>>2 byte&0xF0 0x60 \b, 192 kbps 506#>>>2 byte&0xF0 0x70 \b, 224 kbps 507#>>>2 byte&0xF0 0x80 \b, 256 kbps 508#>>>2 byte&0xF0 0x90 \b, 288 kbps 509#>>>2 byte&0xF0 0xA0 \b, 320 kbps 510#>>>2 byte&0xF0 0xB0 \b, 352 kbps 511#>>>2 byte&0xF0 0xC0 \b, 384 kbps 512#>>>2 byte&0xF0 0xD0 \b, 416 kbps 513#>>>2 byte&0xF0 0xE0 \b, 448 kbps 514## timing 515#>>>2 byte&0x0C 0x00 \b, 44.1 kHz 516#>>>2 byte&0x0C 0x04 \b, 48 kHz 517#>>>2 byte&0x0C 0x08 \b, 32 kHz 518## channels/options 519#>>>3 byte&0xC0 0x00 \b, Stereo 520#>>>3 byte&0xC0 0x40 \b, JntStereo 521#>>>3 byte&0xC0 0x80 \b, 2x Monaural 522#>>>3 byte&0xC0 0xC0 \b, Monaural 523##>1 byte ^0x01 \b, Data Verify 524##>2 byte &0x02 \b, Packet Pad 525##>2 byte &0x01 \b, Custom Flag 526##>3 byte &0x08 \b, Copyrighted 527##>3 byte &0x04 \b, Original Source 528##>3 byte&0x03 1 \b, NR: 50/15 ms 529##>3 byte&0x03 3 \b, NR: CCIT J.17 530 531# MP3, M2A 5320 beshort&0xFFFE 0xFFF2 MPEG ADTS, layer III, v2 533!:mime audio/mpeg 534# rate 535>2 byte&0xF0 0x10 \b, 8 kbps 536>2 byte&0xF0 0x20 \b, 16 kbps 537>2 byte&0xF0 0x30 \b, 24 kbps 538>2 byte&0xF0 0x40 \b, 32 kbps 539>2 byte&0xF0 0x50 \b, 40 kbps 540>2 byte&0xF0 0x60 \b, 48 kbps 541>2 byte&0xF0 0x70 \b, 56 kbps 542>2 byte&0xF0 0x80 \b, 64 kbps 543>2 byte&0xF0 0x90 \b, 80 kbps 544>2 byte&0xF0 0xA0 \b, 96 kbps 545>2 byte&0xF0 0xB0 \b, 112 kbps 546>2 byte&0xF0 0xC0 \b, 128 kbps 547>2 byte&0xF0 0xD0 \b, 144 kbps 548>2 byte&0xF0 0xE0 \b, 160 kbps 549# timing 550>2 byte&0x0C 0x00 \b, 22.05 kHz 551>2 byte&0x0C 0x04 \b, 24 kHz 552>2 byte&0x0C 0x08 \b, 16 kHz 553# channels/options 554>3 byte&0xC0 0x00 \b, Stereo 555>3 byte&0xC0 0x40 \b, JntStereo 556>3 byte&0xC0 0x80 \b, 2x Monaural 557>3 byte&0xC0 0xC0 \b, Monaural 558#>1 byte ^0x01 \b, Data Verify 559#>2 byte &0x02 \b, Packet Pad 560#>2 byte &0x01 \b, Custom Flag 561#>3 byte &0x08 \b, Copyrighted 562#>3 byte &0x04 \b, Original Source 563#>3 byte&0x03 1 \b, NR: 50/15 ms 564#>3 byte&0x03 3 \b, NR: CCIT J.17 565 566# MP2, M2A 5670 beshort&0xFFFE 0xFFF4 MPEG ADTS, layer II, v2 568!:mime audio/mpeg 569# rate 570>2 byte&0xF0 0x10 \b, 8 kbps 571>2 byte&0xF0 0x20 \b, 16 kbps 572>2 byte&0xF0 0x30 \b, 24 kbps 573>2 byte&0xF0 0x40 \b, 32 kbps 574>2 byte&0xF0 0x50 \b, 40 kbps 575>2 byte&0xF0 0x60 \b, 48 kbps 576>2 byte&0xF0 0x70 \b, 56 kbps 577>2 byte&0xF0 0x80 \b, 64 kbps 578>2 byte&0xF0 0x90 \b, 80 kbps 579>2 byte&0xF0 0xA0 \b, 96 kbps 580>2 byte&0xF0 0xB0 \b, 112 kbps 581>2 byte&0xF0 0xC0 \b, 128 kbps 582>2 byte&0xF0 0xD0 \b, 144 kbps 583>2 byte&0xF0 0xE0 \b, 160 kbps 584# timing 585>2 byte&0x0C 0x00 \b, 22.05 kHz 586>2 byte&0x0C 0x04 \b, 24 kHz 587>2 byte&0x0C 0x08 \b, 16 kHz 588# channels/options 589>3 byte&0xC0 0x00 \b, Stereo 590>3 byte&0xC0 0x40 \b, JntStereo 591>3 byte&0xC0 0x80 \b, 2x Monaural 592>3 byte&0xC0 0xC0 \b, Monaural 593#>1 byte ^0x01 \b, Data Verify 594#>2 byte &0x02 \b, Packet Pad 595#>2 byte &0x01 \b, Custom Flag 596#>3 byte &0x08 \b, Copyrighted 597#>3 byte &0x04 \b, Original Source 598#>3 byte&0x03 1 \b, NR: 50/15 ms 599#>3 byte&0x03 3 \b, NR: CCIT J.17 600 601# MPA, M2A 6020 beshort&0xFFFE 0xFFF6 MPEG ADTS, layer I, v2 603!:mime audio/mpeg 604# rate 605>2 byte&0xF0 0x10 \b, 32 kbps 606>2 byte&0xF0 0x20 \b, 48 kbps 607>2 byte&0xF0 0x30 \b, 56 kbps 608>2 byte&0xF0 0x40 \b, 64 kbps 609>2 byte&0xF0 0x50 \b, 80 kbps 610>2 byte&0xF0 0x60 \b, 96 kbps 611>2 byte&0xF0 0x70 \b, 112 kbps 612>2 byte&0xF0 0x80 \b, 128 kbps 613>2 byte&0xF0 0x90 \b, 144 kbps 614>2 byte&0xF0 0xA0 \b, 160 kbps 615>2 byte&0xF0 0xB0 \b, 176 kbps 616>2 byte&0xF0 0xC0 \b, 192 kbps 617>2 byte&0xF0 0xD0 \b, 224 kbps 618>2 byte&0xF0 0xE0 \b, 256 kbps 619# timing 620>2 byte&0x0C 0x00 \b, 22.05 kHz 621>2 byte&0x0C 0x04 \b, 24 kHz 622>2 byte&0x0C 0x08 \b, 16 kHz 623# channels/options 624>3 byte&0xC0 0x00 \b, Stereo 625>3 byte&0xC0 0x40 \b, JntStereo 626>3 byte&0xC0 0x80 \b, 2x Monaural 627>3 byte&0xC0 0xC0 \b, Monaural 628#>1 byte ^0x01 \b, Data Verify 629#>2 byte &0x02 \b, Packet Pad 630#>2 byte &0x01 \b, Custom Flag 631#>3 byte &0x08 \b, Copyrighted 632#>3 byte &0x04 \b, Original Source 633#>3 byte&0x03 1 \b, NR: 50/15 ms 634#>3 byte&0x03 3 \b, NR: CCIT J.17 635 636# MP3, M25A 6370 beshort&0xFFFE 0xFFE2 MPEG ADTS, layer III, v2.5 638!:mime audio/mpeg 639# rate 640>2 byte&0xF0 0x10 \b, 8 kbps 641>2 byte&0xF0 0x20 \b, 16 kbps 642>2 byte&0xF0 0x30 \b, 24 kbps 643>2 byte&0xF0 0x40 \b, 32 kbps 644>2 byte&0xF0 0x50 \b, 40 kbps 645>2 byte&0xF0 0x60 \b, 48 kbps 646>2 byte&0xF0 0x70 \b, 56 kbps 647>2 byte&0xF0 0x80 \b, 64 kbps 648>2 byte&0xF0 0x90 \b, 80 kbps 649>2 byte&0xF0 0xA0 \b, 96 kbps 650>2 byte&0xF0 0xB0 \b, 112 kbps 651>2 byte&0xF0 0xC0 \b, 128 kbps 652>2 byte&0xF0 0xD0 \b, 144 kbps 653>2 byte&0xF0 0xE0 \b, 160 kbps 654# timing 655>2 byte&0x0C 0x00 \b, 11.025 kHz 656>2 byte&0x0C 0x04 \b, 12 kHz 657>2 byte&0x0C 0x08 \b, 8 kHz 658# channels/options 659>3 byte&0xC0 0x00 \b, Stereo 660>3 byte&0xC0 0x40 \b, JntStereo 661>3 byte&0xC0 0x80 \b, 2x Monaural 662>3 byte&0xC0 0xC0 \b, Monaural 663#>1 byte ^0x01 \b, Data Verify 664#>2 byte &0x02 \b, Packet Pad 665#>2 byte &0x01 \b, Custom Flag 666#>3 byte &0x08 \b, Copyrighted 667#>3 byte &0x04 \b, Original Source 668#>3 byte&0x03 1 \b, NR: 50/15 ms 669#>3 byte&0x03 3 \b, NR: CCIT J.17 670 671# AAC (aka MPEG-2 NBC audio) and MPEG-4 audio 672 673# Stored AAC streams (instead of the MP4 format) 6740 string ADIF MPEG ADIF, AAC 675!:mime audio/x-hx-aac-adif 676>4 byte &0x80 677>>13 byte &0x10 \b, VBR 678>>13 byte ^0x10 \b, CBR 679>>16 byte&0x1E 0x02 \b, single stream 680>>16 byte&0x1E 0x04 \b, 2 streams 681>>16 byte&0x1E 0x06 \b, 3 streams 682>>16 byte &0x08 \b, 4 or more streams 683>>16 byte &0x10 \b, 8 or more streams 684>>4 byte &0x80 \b, Copyrighted 685>>13 byte &0x40 \b, Original Source 686>>13 byte &0x20 \b, Home Flag 687>4 byte ^0x80 688>>4 byte &0x10 \b, VBR 689>>4 byte ^0x10 \b, CBR 690>>7 byte&0x1E 0x02 \b, single stream 691>>7 byte&0x1E 0x04 \b, 2 streams 692>>7 byte&0x1E 0x06 \b, 3 streams 693>>7 byte &0x08 \b, 4 or more streams 694>>7 byte &0x10 \b, 8 or more streams 695>>4 byte &0x40 \b, Original Stream(s) 696>>4 byte &0x20 \b, Home Source 697 698# Live or stored single AAC stream (used with MPEG-2 systems) 6990 beshort&0xFFF6 0xFFF0 MPEG ADTS, AAC 700!:mime audio/x-hx-aac-adts 701>1 byte &0x08 \b, v2 702>1 byte ^0x08 \b, v4 703# profile 704>>2 byte &0xC0 \b LTP 705>2 byte&0xc0 0x00 \b Main 706>2 byte&0xc0 0x40 \b LC 707>2 byte&0xc0 0x80 \b SSR 708# timing 709>2 byte&0x3c 0x00 \b, 96 kHz 710>2 byte&0x3c 0x04 \b, 88.2 kHz 711>2 byte&0x3c 0x08 \b, 64 kHz 712>2 byte&0x3c 0x0c \b, 48 kHz 713>2 byte&0x3c 0x10 \b, 44.1 kHz 714>2 byte&0x3c 0x14 \b, 32 kHz 715>2 byte&0x3c 0x18 \b, 24 kHz 716>2 byte&0x3c 0x1c \b, 22.05 kHz 717>2 byte&0x3c 0x20 \b, 16 kHz 718>2 byte&0x3c 0x24 \b, 12 kHz 719>2 byte&0x3c 0x28 \b, 11.025 kHz 720>2 byte&0x3c 0x2c \b, 8 kHz 721# channels 722>2 beshort&0x01c0 0x0040 \b, monaural 723>2 beshort&0x01c0 0x0080 \b, stereo 724>2 beshort&0x01c0 0x00c0 \b, stereo + center 725>2 beshort&0x01c0 0x0100 \b, stereo+center+LFE 726>2 beshort&0x01c0 0x0140 \b, surround 727>2 beshort&0x01c0 0x0180 \b, surround + LFE 728>2 beshort &0x01C0 \b, surround + side 729#>1 byte ^0x01 \b, Data Verify 730#>2 byte &0x02 \b, Custom Flag 731#>3 byte &0x20 \b, Original Stream 732#>3 byte &0x10 \b, Home Source 733#>3 byte &0x08 \b, Copyrighted 734 735# Live MPEG-4 audio streams (instead of RTP FlexMux) 7360 beshort&0xFFE0 0x56E0 MPEG-4 LOAS 737!:mime audio/x-mp4a-latm 738#>1 beshort&0x1FFF x \b, %hu byte packet 739>3 byte&0xE0 0x40 740>>4 byte&0x3C 0x04 \b, single stream 741>>4 byte&0x3C 0x08 \b, 2 streams 742>>4 byte&0x3C 0x0C \b, 3 streams 743>>4 byte &0x08 \b, 4 or more streams 744>>4 byte &0x20 \b, 8 or more streams 745>3 byte&0xC0 0 746>>4 byte&0x78 0x08 \b, single stream 747>>4 byte&0x78 0x10 \b, 2 streams 748>>4 byte&0x78 0x18 \b, 3 streams 749>>4 byte &0x20 \b, 4 or more streams 750>>4 byte &0x40 \b, 8 or more streams 751# This magic isn't strong enough (matches plausible ISO-8859-1 text) 752#0 beshort 0x4DE1 MPEG-4 LO-EP audio stream 753#!:mime audio/x-mp4a-latm 754 755# Summary: FLI animation format 756# Created by: Daniel Quinlan <quinlan@yggdrasil.com> 757# Modified by (1): Abel Cheung <abelcheung@gmail.com> (avoid over-generic detection) 7584 leshort 0xAF11 759# standard FLI always has 320x200 resolution and 8 bit color 760>8 leshort 320 761>>10 leshort 200 762>>>12 leshort 8 FLI animation, 320x200x8 763!:mime video/x-fli 764>>>>6 leshort x \b, %d frames 765# frame speed is multiple of 1/70s 766>>>>16 leshort x \b, %d/70s per frame 767 768# Summary: FLC animation format 769# Created by: Daniel Quinlan <quinlan@yggdrasil.com> 770# Modified by (1): Abel Cheung <abelcheung@gmail.com> (avoid over-generic detection) 7714 leshort 0xAF12 772# standard FLC always use 8 bit color 773>12 leshort 8 FLC animation 774!:mime video/x-flc 775>>8 leshort x \b, %d 776>>10 leshort x \bx%dx8 777>>6 uleshort x \b, %d frames 778>>16 uleshort x \b, %dms per frame 779 780# DL animation format 781# XXX - collision with most `mips' magic 782# 783# I couldn't find a real magic number for these, however, this 784# -appears- to work. Note that it might catch other files, too, so be 785# careful! 786# 787# Note that title and author appear in the two 20-byte chunks 788# at decimal offsets 2 and 22, respectively, but they are XOR'ed with 789# 255 (hex FF)! The DL format is really bad. 790# 791#0 byte 1 DL version 1, medium format (160x100, 4 images/screen) 792#!:mime video/x-unknown 793#>42 byte x - %d screens, 794#>43 byte x %d commands 795#0 byte 2 DL version 2 796#!:mime video/x-unknown 797#>1 byte 1 - large format (320x200,1 image/screen), 798#>1 byte 2 - medium format (160x100,4 images/screen), 799#>1 byte >2 - unknown format, 800#>42 byte x %d screens, 801#>43 byte x %d commands 802# Based on empirical evidence, DL version 3 have several nulls following the 803# \003. Most of them start with non-null values at hex offset 0x34 or so. 804#0 string \3\0\0\0\0\0\0\0\0\0\0\0 DL version 3 805 806# iso 13818 transport stream 807# 808# from Oskar Schirmer <schirmer@scara.com> Feb 3, 2001 (ISO 13818.1) 809# syncbyte 8 bit 0x47 810# error_ind 1 bit - 811# payload_start 1 bit 1 812# priority 1 bit - 813# PID 13 bit 0x0000 814# scrambling 2 bit - 815# adaptfld_ctrl 2 bit 1 or 3 816# conti_count 4 bit - 8170 belong&0xFF5FFF10 0x47400010 818>188 byte 0x47 MPEG transport stream data 819 820# DIF digital video file format <mpruett@sgi.com> 8210 belong&0xffffff00 0x1f070000 DIF 822>4 byte &0x01 (DVCPRO) movie file 823>4 byte ^0x01 (DV) movie file 824>3 byte &0x80 (PAL) 825>3 byte ^0x80 (NTSC) 826 827# Microsoft Advanced Streaming Format (ASF) <mpruett@sgi.com> 8280 belong 0x3026b275 Microsoft ASF 829!:mime video/x-ms-asf 830 831# MNG Video Format, <URL:http://www.libpng.org/pub/mng/spec/> 8320 string \x8aMNG MNG video data, 833!:mime video/x-mng 834>4 belong !0x0d0a1a0a CORRUPTED, 835>4 belong 0x0d0a1a0a 836>>16 belong x %d x 837>>20 belong x %d 838 839# JNG Video Format, <URL:http://www.libpng.org/pub/mng/spec/> 8400 string \x8bJNG JNG video data, 841!:mime video/x-jng 842>4 belong !0x0d0a1a0a CORRUPTED, 843>4 belong 0x0d0a1a0a 844>>16 belong x %d x 845>>20 belong x %d 846 847# Vivo video (Wolfram Kleff) 8483 string \x0D\x0AVersion:Vivo Vivo video data 849 850# VRML (Virtual Reality Modelling Language) 8510 string/w #VRML\ V1.0\ ascii VRML 1 file 852!:mime model/vrml 8530 string/w #VRML\ V2.0\ utf8 ISO/IEC 14772 VRML 97 file 854!:mime model/vrml 855 856# X3D (Extensible 3D) [http://www.web3d.org/specifications/x3d-3.0.dtd] 857# From Michel Briand <michelbriand@free.fr> 8580 string/t \<?xml\ version=" 859!:strength +1 860>20 search/1000/cw \<!DOCTYPE\ X3D X3D (Extensible 3D) model xml text 861!:mime model/x3d 862 863#--------------------------------------------------------------------------- 864# HVQM4: compressed movie format designed by Hudson for Nintendo GameCube 865# From Mark Sheppard <msheppard@climax.co.uk>, 2002-10-03 866# 8670 string HVQM4 %s 868>6 string >\0 v%s 869>0 byte x GameCube movie, 870>0x34 ubeshort x %d x 871>0x36 ubeshort x %d, 872>0x26 ubeshort x %dus, 873>0x42 ubeshort 0 no audio 874>0x42 ubeshort >0 %dHz audio 875 876# From: "Stefan A. Haubenthal" <polluks@web.de> 8770 string DVDVIDEO-VTS Video title set, 878>0x21 byte x v%x 8790 string DVDVIDEO-VMG Video manager, 880>0x21 byte x v%x 881 882# From: Behan Webster <behanw@websterwood.com> 883# NuppelVideo used by Mythtv (*.nuv) 884# Note: there are two identical stanzas here differing only in the 885# initial string matched. It used to be done with a regex, but we're 886# trying to get rid of those. 8870 string NuppelVideo MythTV NuppelVideo 888>12 string x v%s 889>20 lelong x (%d 890>24 lelong x \bx%d), 891>36 string P \bprogressive, 892>36 string I \binterlaced, 893>40 ledouble x \baspect:%.2f, 894>48 ledouble x \bfps:%.2f 8950 string MythTV MythTV NuppelVideo 896>12 string x v%s 897>20 lelong x (%d 898>24 lelong x \bx%d), 899>36 string P \bprogressive, 900>36 string I \binterlaced, 901>40 ledouble x \baspect:%.2f, 902>48 ledouble x \bfps:%.2f 903 904# MPEG file 905# MPEG sequences 906# FIXME: This section is from the old magic.mime file and needs 907# integrating with the rest 908#0 belong 0x000001BA 909#>4 byte &0x40 910#!:mime video/mp2p 911#>4 byte ^0x40 912#!:mime video/mpeg 913#0 belong 0x000001BB 914#!:mime video/mpeg 915#0 belong 0x000001B0 916#!:mime video/mp4v-es 917#0 belong 0x000001B5 918#!:mime video/mp4v-es 919#0 belong 0x000001B3 920#!:mime video/mpv 921#0 belong&0xFF5FFF10 0x47400010 922#!:mime video/mp2t 923#0 belong 0x00000001 924#>4 byte&0x1F 0x07 925#!:mime video/h264 926 927# Type: Bink Video 928# Extension: .bik 929# URL: http://wiki.multimedia.cx/index.php?title=Bink_Container 930# From: <hoehle@users.sourceforge.net> 2008-07-18 9310 string BIK Bink Video 932>3 regex =[a-z] rev.%s 933#>4 ulelong x size %d 934>20 ulelong x \b, %d 935>24 ulelong x \bx%d 936>8 ulelong x \b, %d frames 937>32 ulelong x at rate %d/ 938>28 ulelong >1 \b%d 939>40 ulelong =0 \b, no audio 940>40 ulelong !0 \b, %d audio track 941>>40 ulelong !1 \bs 942# follow properties of the first audio track only 943>>48 uleshort x %dHz 944>>51 byte&0x20 0 mono 945>>51 byte&0x20 !0 stereo 946#>>51 byte&0x10 0 FFT 947#>>51 byte&0x10 !0 DCT 948 949# Type: NUT Container 950# URL: http://wiki.multimedia.cx/index.php?title=NUT 951# From: Adam Buchbinder <adam.buchbinder@gmail.com> 9520 string nut/multimedia\ container\0 NUT multimedia container 953 954# Type: Nullsoft Video (NSV) 955# URL: http://wiki.multimedia.cx/index.php?title=Nullsoft_Video 956# From: Mike Melanson <mike@multimedia.cx> 9570 string NSVf Nullsoft Video 958 959# Type: REDCode Video 960# URL: http://www.red.com/ ; http://wiki.multimedia.cx/index.php?title=REDCode 961# From: Mike Melanson <mike@multimedia.cx> 9624 string RED1 REDCode Video 963 964# Type: MTV Multimedia File 965# URL: http://wiki.multimedia.cx/index.php?title=MTV 966# From: Mike Melanson <mike@multimedia.cx> 9670 string AMVS MTV Multimedia File 968 969# Type: ARMovie 970# URL: http://wiki.multimedia.cx/index.php?title=ARMovie 971# From: Mike Melanson <mike@multimedia.cx> 9720 string ARMovie\012 ARMovie 973 974# Type: Interplay MVE Movie 975# URL: http://wiki.multimedia.cx/index.php?title=Interplay_MVE 976# From: Mike Melanson <mike@multimedia.cx> 9770 string Interplay\040MVE\040File\032 Interplay MVE Movie 978 979# Type: Windows Television DVR File 980# URL: http://wiki.multimedia.cx/index.php?title=WTV 981# From: Mike Melanson <mike@mutlimedia.cx> 982# This takes the form of a Windows-style GUID 9830 bequad 0xB7D800203749DA11 984>8 bequad 0xA64E0007E95EAD8D Windows Television DVR Media 985 986# Type: Sega FILM/CPK Multimedia 987# URL: http://wiki.multimedia.cx/index.php?title=Sega_FILM 988# From: Mike Melanson <mike@multimedia.cx> 9890 string FILM Sega FILM/CPK Multimedia, 990>32 belong x %d x 991>28 belong x %d 992 993# Type: Nintendo THP Multimedia 994# URL: http://wiki.multimedia.cx/index.php?title=THP 995# From: Mike Melanson <mike@multimedia.cx> 9960 string THP\0 Nintendo THP Multimedia 997 998# Type: BBC Dirac Video 999# URL: http://wiki.multimedia.cx/index.php?title=Dirac 1000# From: Mike Melanson <mike@multimedia.cx> 10010 string BBCD BBC Dirac Video 1002 1003# Type: RAD Game Tools Smacker Multimedia 1004# URL: http://wiki.multimedia.cx/index.php?title=Smacker 1005# From: Mike Melanson <mike@multimedia.cx> 10060 string SMK RAD Game Tools Smacker Multimedia 1007>3 byte x version %c, 1008>4 lelong x %d x 1009>8 lelong x %d, 1010>12 lelong x %d frames 1011