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