xref: /dflybsd-src/contrib/file/magic/Magdir/riff (revision 6fca56fb90a257291c53bba3b861b751027c3e3d)
1327e51cbSPeter Avalos
2327e51cbSPeter Avalos#------------------------------------------------------------------------------
3*6fca56fbSSascha Wildner# $File: riff,v 1.34 2019/04/19 00:42:27 christos Exp $
4327e51cbSPeter Avalos# riff:  file(1) magic for RIFF format
5327e51cbSPeter Avalos# See
6327e51cbSPeter Avalos#
7*6fca56fbSSascha Wildner#	https://www.seanet.com/users/matts/riffmci/riffmci.htm
8*6fca56fbSSascha Wildner#	http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/Docs/riffmci.pdf
9327e51cbSPeter Avalos#
10e8af9738SPeter Avalos
11e8af9738SPeter Avalos# audio format tag. Assume limits: max 1024 bit, 128 channels, 1 MHz
12e8af9738SPeter Avalos0   name    riff-wave
13e8af9738SPeter Avalos>0	leshort		1		\b, Microsoft PCM
14e8af9738SPeter Avalos>>14	leshort		>0
15e8af9738SPeter Avalos>>>14	leshort		<1024	\b, %d bit
16e8af9738SPeter Avalos>0	leshort		2		\b, Microsoft ADPCM
17e8af9738SPeter Avalos>0	leshort		6		\b, ITU G.711 A-law
18e8af9738SPeter Avalos>0	leshort		7		\b, ITU G.711 mu-law
19e8af9738SPeter Avalos>0	leshort		8		\b, Microsoft DTS
20e8af9738SPeter Avalos>0	leshort		17		\b, IMA ADPCM
21e8af9738SPeter Avalos>0	leshort		20		\b, ITU G.723 ADPCM (Yamaha)
22e8af9738SPeter Avalos>0	leshort		49		\b, GSM 6.10
23e8af9738SPeter Avalos>0	leshort		64		\b, ITU G.721 ADPCM
24e8af9738SPeter Avalos>0	leshort		80		\b, MPEG
25e8af9738SPeter Avalos>0	leshort		85		\b, MPEG Layer 3
26e8af9738SPeter Avalos>0	leshort		0x2001		\b, DTS
27e8af9738SPeter Avalos>2	leshort		=1		\b, mono
28e8af9738SPeter Avalos>2	leshort		=2		\b, stereo
29e8af9738SPeter Avalos>2	leshort		>2
30e8af9738SPeter Avalos>>2	leshort		<128	\b, %d channels
31e8af9738SPeter Avalos>4	lelong		>0
32e8af9738SPeter Avalos>>4	lelong		<1000000	%d Hz
33e8af9738SPeter Avalos
34e8af9738SPeter Avalos# try to find "fmt "
35e8af9738SPeter Avalos0   name    riff-walk
36e8af9738SPeter Avalos>0  string  fmt\x20
37e8af9738SPeter Avalos>>4 lelong  <0x80
38e8af9738SPeter Avalos>>>8 use    riff-wave
39e8af9738SPeter Avalos>0  string  LIST
40e8af9738SPeter Avalos>>&(4.l+4)  use riff-walk
41e8af9738SPeter Avalos>0  string  DISP
42e8af9738SPeter Avalos>>&(4.l+4)  use riff-walk
43e8af9738SPeter Avalos>0  string  bext
44e8af9738SPeter Avalos>>&(4.l+4)  use riff-walk
45e8af9738SPeter Avalos>0  string  Fake
46e8af9738SPeter Avalos>>&(4.l+4)  use riff-walk
47e8af9738SPeter Avalos>0  string  fact
48e8af9738SPeter Avalos>>&(4.l+4)  use riff-walk
4982c5fa3eSPeter Avalos>0  string  VP8
5082c5fa3eSPeter Avalos>>11		byte		0x9d
5182c5fa3eSPeter Avalos>>>12		byte		0x01
5282c5fa3eSPeter Avalos>>>>13		byte		0x2a	\b, VP8 encoding
5382c5fa3eSPeter Avalos>>>>>14		leshort&0x3fff	x	\b, %d
5482c5fa3eSPeter Avalos>>>>>16		leshort&0x3fff	x	\bx%d, Scaling:
5582c5fa3eSPeter Avalos>>>>>14		leshort&0xc000	0x0000	\b [none]
5682c5fa3eSPeter Avalos>>>>>14		leshort&0xc000	0x1000	\b [5/4]
5782c5fa3eSPeter Avalos>>>>>14		leshort&0xc000	0x2000	\b [5/3]
5882c5fa3eSPeter Avalos>>>>>14		leshort&0xc000	0x3000	\b [2]
5982c5fa3eSPeter Avalos>>>>>14		leshort&0xc000	0x0000	\bx[none]
6082c5fa3eSPeter Avalos>>>>>14		leshort&0xc000	0x1000	\bx[5/4]
6182c5fa3eSPeter Avalos>>>>>14		leshort&0xc000	0x2000	\bx[5/3]
6282c5fa3eSPeter Avalos>>>>>14		leshort&0xc000	0x3000	\bx[2]
6382c5fa3eSPeter Avalos>>>>>15		byte&0x80	=0x00	\b, YUV color
6482c5fa3eSPeter Avalos>>>>>15		byte&0x80	=0x80	\b, bad color specification
6582c5fa3eSPeter Avalos>>>>>15		byte&0x40	=0x40	\b, no clamping required
6682c5fa3eSPeter Avalos>>>>>15		byte&0x40	=0x00	\b, decoders should clamp
6782c5fa3eSPeter Avalos#>0  string  x		we got %s
6882c5fa3eSPeter Avalos#>>&(4.l+4)  use riff-walk
69e8af9738SPeter Avalos
70e8af9738SPeter Avalos# AVI section extended by Patrik Radman <patrik+file-magic@iki.fi>
71327e51cbSPeter Avalos#
72327e51cbSPeter Avalos0	string		RIFF		RIFF (little-endian) data
73327e51cbSPeter Avalos# RIFF Palette format
74*6fca56fbSSascha Wildner# Update: Joerg Jenderek
75*6fca56fbSSascha Wildner# URL: https://en.wikipedia.org/wiki/Resource_Interchange_File_Format
76*6fca56fbSSascha Wildner# Reference: https://worms2d.info/Palette_file
77*6fca56fbSSascha Wildner>8	string		PAL\ 		\b, palette
78*6fca56fbSSascha Wildner!:mime	application/x-riff
79*6fca56fbSSascha Wildner# color palette by Microsoft Corporation
80*6fca56fbSSascha Wildner!:ext	pal
81*6fca56fbSSascha Wildner# file size =  chunk size + 8 in most cases
82*6fca56fbSSascha Wildner>>4	ulelong+8	x		\b, %u bytes
83*6fca56fbSSascha Wildner# Extended PAL Format
84*6fca56fbSSascha Wildner>>12	string		plth		\b, extended
85*6fca56fbSSascha Wildner# Simple PAL Format
86*6fca56fbSSascha Wildner>>12	string		data
87*6fca56fbSSascha Wildner# data chunk size = color entries * 4 + 4 + sometimes extra (4) appended bytes
88*6fca56fbSSascha Wildner>>>16	ulelong		x		\b, data size %u
89*6fca56fbSSascha Wildner# palVersion is always 0x0300
90*6fca56fbSSascha Wildner#>>>20	leshort		x		\b, version 0x%4.4x
91*6fca56fbSSascha Wildner# palNumEntries specifies the number of palette color entries
92*6fca56fbSSascha Wildner>>>22	uleshort	x		\b, %u entries
93*6fca56fbSSascha Wildner# after palPalEntry sized (number of color entries * 4 ) vector
94*6fca56fbSSascha Wildner>>>(22.s*4)	ubequad	x
95*6fca56fbSSascha Wildner# jump relative 22 ( 8 + 16) bytes forward points after end of file or to
96*6fca56fbSSascha Wildner# appended extra bytes like in http://safecolours.rigdenage.com/set(ms).zip/Protan(MS).pal
97*6fca56fbSSascha Wildner>>>>&16		ubelong	x		\b, extra bytes
98*6fca56fbSSascha Wildner>>>>>&-4	ubelong	>0		0x%8.8x
99327e51cbSPeter Avalos# RIFF Device Independent Bitmap format
100327e51cbSPeter Avalos>8	string		RDIB		\b, device-independent bitmap
101327e51cbSPeter Avalos>>16	string		BM
102327e51cbSPeter Avalos>>>30	leshort		12		\b, OS/2 1.x format
103327e51cbSPeter Avalos>>>>34	leshort		x		\b, %d x
104327e51cbSPeter Avalos>>>>36	leshort		x		%d
105327e51cbSPeter Avalos>>>30	leshort		64		\b, OS/2 2.x format
106327e51cbSPeter Avalos>>>>34	leshort		x		\b, %d x
107327e51cbSPeter Avalos>>>>36	leshort		x		%d
108327e51cbSPeter Avalos>>>30	leshort		40		\b, Windows 3.x format
109327e51cbSPeter Avalos>>>>34	lelong		x		\b, %d x
110327e51cbSPeter Avalos>>>>38	lelong		x		%d x
111327e51cbSPeter Avalos>>>>44	leshort		x		%d
112327e51cbSPeter Avalos# RIFF MIDI format
113327e51cbSPeter Avalos>8	string		RMID		\b, MIDI
114327e51cbSPeter Avalos# RIFF Multimedia Movie File format
115327e51cbSPeter Avalos>8	string		RMMP		\b, multimedia movie
116327e51cbSPeter Avalos# RIFF wrapper for MP3
117327e51cbSPeter Avalos>8	string		RMP3		\b, MPEG Layer 3 audio
118327e51cbSPeter Avalos# Microsoft WAVE format (*.wav)
119327e51cbSPeter Avalos>8	string		WAVE		\b, WAVE audio
12079343712SPeter Avalos!:mime	audio/x-wav
121e8af9738SPeter Avalos>>12    string  >\0
122e8af9738SPeter Avalos>>>12   use     riff-walk
123327e51cbSPeter Avalos# Corel Draw Picture
124327e51cbSPeter Avalos>8	string		CDRA		\b, Corel Draw Picture
12579343712SPeter Avalos!:mime	image/x-coreldraw
126e8af9738SPeter Avalos>8	string		CDR6		\b, Corel Draw Picture, version 6
127e8af9738SPeter Avalos!:mime	image/x-coreldraw
128e8af9738SPeter Avalos>8	string		NUNDROOT	\b, Steinberg CuBase
129327e51cbSPeter Avalos# AVI == Audio Video Interleave
130327e51cbSPeter Avalos>8	string		AVI\040		\b, AVI
13179343712SPeter Avalos!:mime	video/x-msvideo
132327e51cbSPeter Avalos>>12    string          LIST
133327e51cbSPeter Avalos>>>20   string          hdrlavih
13482c5fa3eSPeter Avalos>>>>&36 lelong          x               \b, %u x
13582c5fa3eSPeter Avalos>>>>&40 lelong          x               %u,
136327e51cbSPeter Avalos>>>>&4  lelong          >1000000        <1 fps,
137327e51cbSPeter Avalos>>>>&4  lelong          1000000         1.00 fps,
138327e51cbSPeter Avalos>>>>&4  lelong          500000          2.00 fps,
139327e51cbSPeter Avalos>>>>&4  lelong          333333          3.00 fps,
140327e51cbSPeter Avalos>>>>&4  lelong          250000          4.00 fps,
141327e51cbSPeter Avalos>>>>&4  lelong          200000          5.00 fps,
142327e51cbSPeter Avalos>>>>&4  lelong          166667          6.00 fps,
143327e51cbSPeter Avalos>>>>&4  lelong          142857          7.00 fps,
144327e51cbSPeter Avalos>>>>&4  lelong          125000          8.00 fps,
145327e51cbSPeter Avalos>>>>&4  lelong          111111          9.00 fps,
146327e51cbSPeter Avalos>>>>&4  lelong          100000          10.00 fps,
147327e51cbSPeter Avalos# ]9.9,10.1[
148327e51cbSPeter Avalos>>>>&4  lelong          <101010
149327e51cbSPeter Avalos>>>>>&-4        lelong  >99010
150327e51cbSPeter Avalos>>>>>>&-4       lelong  !100000         ~10 fps,
151327e51cbSPeter Avalos>>>>&4  lelong          83333           12.00 fps,
152327e51cbSPeter Avalos# ]11.9,12.1[
153327e51cbSPeter Avalos>>>>&4  lelong          <84034
154327e51cbSPeter Avalos>>>>>&-4        lelong  >82645
155327e51cbSPeter Avalos>>>>>>&-4       lelong  !83333          ~12 fps,
156327e51cbSPeter Avalos>>>>&4  lelong          66667           15.00 fps,
157327e51cbSPeter Avalos# ]14.9,15.1[
158327e51cbSPeter Avalos>>>>&4  lelong          <67114
159327e51cbSPeter Avalos>>>>>&-4        lelong  >66225
160327e51cbSPeter Avalos>>>>>>&-4       lelong  !66667          ~15 fps,
161327e51cbSPeter Avalos>>>>&4  lelong          50000           20.00 fps,
162327e51cbSPeter Avalos>>>>&4  lelong          41708           23.98 fps,
163327e51cbSPeter Avalos>>>>&4  lelong          41667           24.00 fps,
164327e51cbSPeter Avalos# ]23.9,24.1[
165327e51cbSPeter Avalos>>>>&4  lelong          <41841
166327e51cbSPeter Avalos>>>>>&-4        lelong  >41494
167327e51cbSPeter Avalos>>>>>>&-4       lelong  !41708
168327e51cbSPeter Avalos>>>>>>>&-4      lelong  !41667          ~24 fps,
169327e51cbSPeter Avalos>>>>&4  lelong          40000           25.00 fps,
170327e51cbSPeter Avalos# ]24.9,25.1[
171327e51cbSPeter Avalos>>>>&4  lelong          <40161
172327e51cbSPeter Avalos>>>>>&-4        lelong  >39841
173327e51cbSPeter Avalos>>>>>>&-4       lelong  !40000          ~25 fps,
174327e51cbSPeter Avalos>>>>&4  lelong          33367           29.97 fps,
175327e51cbSPeter Avalos>>>>&4  lelong          33333           30.00 fps,
176327e51cbSPeter Avalos# ]29.9,30.1[
177327e51cbSPeter Avalos>>>>&4  lelong          <33445
178327e51cbSPeter Avalos>>>>>&-4        lelong  >33223
179327e51cbSPeter Avalos>>>>>>&-4       lelong  !33367
180327e51cbSPeter Avalos>>>>>>>&-4      lelong  !33333          ~30 fps,
181327e51cbSPeter Avalos>>>>&4  lelong          <32224          >30 fps,
182327e51cbSPeter Avalos##>>>>&4  lelong          x               (%lu)
183327e51cbSPeter Avalos##>>>>&20 lelong          x               %lu frames,
184327e51cbSPeter Avalos# Note: The tests below assume that the AVI has 1 or 2 streams,
185327e51cbSPeter Avalos#       "vids" optionally followed by "auds".
186327e51cbSPeter Avalos#       (Should cover 99.9% of all AVIs.)
187327e51cbSPeter Avalos# assuming avih length = 56
188327e51cbSPeter Avalos>>>88   string  LIST
189327e51cbSPeter Avalos>>>>96  string  strlstrh
190327e51cbSPeter Avalos>>>>>108        string  vids    video:
191327e51cbSPeter Avalos>>>>>>&0        lelong  0               uncompressed
192327e51cbSPeter Avalos# skip past vids strh
193327e51cbSPeter Avalos>>>>>>(104.l+108)       string  strf
194327e51cbSPeter Avalos>>>>>>>(104.l+132)      lelong          1       RLE 8bpp
195327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        cvid    Cinepak
196327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        i263    Intel I.263
197327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        iv32    Indeo 3.2
198327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        iv41    Indeo 4.1
199327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        iv50    Indeo 5.0
200327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        mp42    Microsoft MPEG-4 v2
201327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        mp43    Microsoft MPEG-4 v3
202327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        fmp4    FFMpeg MPEG-4
203327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        mjpg    Motion JPEG
204327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        div3    DivX 3
205327e51cbSPeter Avalos>>>>>>>>112             string/c        div3    Low-Motion
206327e51cbSPeter Avalos>>>>>>>>112             string/c        div4    Fast-Motion
207327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        divx    DivX 4
208327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        dx50    DivX 5
209327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        xvid    XviD
21079343712SPeter Avalos>>>>>>>(104.l+132)	string/c	h264	H.264
211327e51cbSPeter Avalos>>>>>>>(104.l+132)      string/c        wmv3    Windows Media Video 9
21279343712SPeter Avalos>>>>>>>(104.l+132)      string/c        h264    X.264 or H.264
213327e51cbSPeter Avalos>>>>>>>(104.l+132)      lelong  0
214327e51cbSPeter Avalos##>>>>>>>(104.l+132)      string  x       (%.4s)
215327e51cbSPeter Avalos# skip past first (video) LIST
216327e51cbSPeter Avalos>>>>(92.l+96)   string  LIST
217327e51cbSPeter Avalos>>>>>(92.l+104) string  strlstrh
218327e51cbSPeter Avalos>>>>>>(92.l+116)        string          auds    \b, audio:
219327e51cbSPeter Avalos# auds strh length = 56:
220327e51cbSPeter Avalos>>>>>>>(92.l+172)       string          strf
221327e51cbSPeter Avalos>>>>>>>>(92.l+180)      leshort 0x0001  uncompressed PCM
222327e51cbSPeter Avalos>>>>>>>>(92.l+180)      leshort 0x0002  ADPCM
223327e51cbSPeter Avalos>>>>>>>>(92.l+180)      leshort 0x0006  aLaw
224327e51cbSPeter Avalos>>>>>>>>(92.l+180)      leshort 0x0007  uLaw
225327e51cbSPeter Avalos>>>>>>>>(92.l+180)      leshort 0x0050  MPEG-1 Layer 1 or 2
226327e51cbSPeter Avalos>>>>>>>>(92.l+180)      leshort 0x0055  MPEG-1 Layer 3
227327e51cbSPeter Avalos>>>>>>>>(92.l+180)      leshort 0x2000  Dolby AC3
228327e51cbSPeter Avalos>>>>>>>>(92.l+180)      leshort 0x0161  DivX
229327e51cbSPeter Avalos##>>>>>>>>(92.l+180)      leshort x       (0x%.4x)
230327e51cbSPeter Avalos>>>>>>>>(92.l+182)      leshort 1       (mono,
231327e51cbSPeter Avalos>>>>>>>>(92.l+182)      leshort 2       (stereo,
232327e51cbSPeter Avalos>>>>>>>>(92.l+182)      leshort >2      (%d channels,
233327e51cbSPeter Avalos>>>>>>>>(92.l+184)      lelong  x       %d Hz)
234327e51cbSPeter Avalos# auds strh length = 64:
235327e51cbSPeter Avalos>>>>>>>(92.l+180)       string          strf
236327e51cbSPeter Avalos>>>>>>>>(92.l+188)      leshort 0x0001  uncompressed PCM
237327e51cbSPeter Avalos>>>>>>>>(92.l+188)      leshort 0x0002  ADPCM
238327e51cbSPeter Avalos>>>>>>>>(92.l+188)      leshort 0x0055  MPEG-1 Layer 3
239327e51cbSPeter Avalos>>>>>>>>(92.l+188)      leshort 0x2000  Dolby AC3
240327e51cbSPeter Avalos>>>>>>>>(92.l+188)      leshort 0x0161  DivX
241327e51cbSPeter Avalos##>>>>>>>>(92.l+188)      leshort x       (0x%.4x)
242327e51cbSPeter Avalos>>>>>>>>(92.l+190)      leshort 1       (mono,
243327e51cbSPeter Avalos>>>>>>>>(92.l+190)      leshort 2       (stereo,
244327e51cbSPeter Avalos>>>>>>>>(92.l+190)      leshort >2      (%d channels,
245327e51cbSPeter Avalos>>>>>>>>(92.l+192)      lelong  x       %d Hz)
246327e51cbSPeter Avalos# Animated Cursor format
247327e51cbSPeter Avalos>8	string		ACON		\b, animated cursor
248327e51cbSPeter Avalos# SoundFont 2 <mpruett@sgi.com>
249327e51cbSPeter Avalos>8	string		sfbk		SoundFont/Bank
250327e51cbSPeter Avalos# MPEG-1 wrapped in a RIFF, apparently
251327e51cbSPeter Avalos>8      string          CDXA            \b, wrapped MPEG-1 (CDXA)
252327e51cbSPeter Avalos>8	string		4XMV		\b, 4X Movie file
253*6fca56fbSSascha Wildner# AMV-type AVI file: https://wiki.multimedia.cx/index.php?title=AMV
254a96e001bSPeter Avalos>8	string		AMV\040		\b, AMV
25582c5fa3eSPeter Avalos>8      string          WEBP            \b, Web/P image
256c30bd091SSascha Wildner!:mime	image/webp
25782c5fa3eSPeter Avalos>>12	use		riff-walk
258327e51cbSPeter Avalos
259327e51cbSPeter Avalos#
260327e51cbSPeter Avalos# XXX - some of the below may only appear in little-endian form.
261327e51cbSPeter Avalos#
262327e51cbSPeter Avalos# Also "MV93" appears to be for one form of Macromedia Director
263327e51cbSPeter Avalos# files, and "GDMF" appears to be another multimedia format.
264327e51cbSPeter Avalos#
265327e51cbSPeter Avalos0	string		RIFX		RIFF (big-endian) data
266327e51cbSPeter Avalos# RIFF Palette format
267327e51cbSPeter Avalos>8	string		PAL		\b, palette
268327e51cbSPeter Avalos>>16	beshort		x		\b, version %d
269327e51cbSPeter Avalos>>18	beshort		x		\b, %d entries
270327e51cbSPeter Avalos# RIFF Device Independent Bitmap format
271327e51cbSPeter Avalos>8	string		RDIB		\b, device-independent bitmap
272327e51cbSPeter Avalos>>16	string		BM
273327e51cbSPeter Avalos>>>30	beshort		12		\b, OS/2 1.x format
274327e51cbSPeter Avalos>>>>34	beshort		x		\b, %d x
275327e51cbSPeter Avalos>>>>36	beshort		x		%d
276327e51cbSPeter Avalos>>>30	beshort		64		\b, OS/2 2.x format
277327e51cbSPeter Avalos>>>>34	beshort		x		\b, %d x
278327e51cbSPeter Avalos>>>>36	beshort		x		%d
279327e51cbSPeter Avalos>>>30	beshort		40		\b, Windows 3.x format
280327e51cbSPeter Avalos>>>>34	belong		x		\b, %d x
281327e51cbSPeter Avalos>>>>38	belong		x		%d x
282327e51cbSPeter Avalos>>>>44	beshort		x		%d
283327e51cbSPeter Avalos# RIFF MIDI format
284327e51cbSPeter Avalos>8	string		RMID		\b, MIDI
285327e51cbSPeter Avalos# RIFF Multimedia Movie File format
286327e51cbSPeter Avalos>8	string		RMMP		\b, multimedia movie
287327e51cbSPeter Avalos# Microsoft WAVE format (*.wav)
288327e51cbSPeter Avalos>8	string		WAVE		\b, WAVE audio
289327e51cbSPeter Avalos>>20	leshort		1		\b, Microsoft PCM
290327e51cbSPeter Avalos>>>34	leshort		>0		\b, %d bit
291327e51cbSPeter Avalos>>22	beshort		=1		\b, mono
292327e51cbSPeter Avalos>>22	beshort		=2		\b, stereo
293327e51cbSPeter Avalos>>22	beshort		>2		\b, %d channels
294327e51cbSPeter Avalos>>24	belong		>0		%d Hz
295327e51cbSPeter Avalos# Corel Draw Picture
296327e51cbSPeter Avalos>8	string		CDRA		\b, Corel Draw Picture
297e8af9738SPeter Avalos>8	string		CDR6		\b, Corel Draw Picture, version 6
298327e51cbSPeter Avalos# AVI == Audio Video Interleave
299327e51cbSPeter Avalos>8	string		AVI\040		\b, AVI
300327e51cbSPeter Avalos# Animated Cursor format
301327e51cbSPeter Avalos>8	string		ACON		\b, animated cursor
302327e51cbSPeter Avalos# Notation Interchange File Format (big-endian only)
303327e51cbSPeter Avalos>8	string		NIFF		\b, Notation Interchange File Format
304327e51cbSPeter Avalos# SoundFont 2 <mpruett@sgi.com>
305327e51cbSPeter Avalos>8	string		sfbk		SoundFont/Bank
306e4d4ce0cSPeter Avalos
307e4d4ce0cSPeter Avalos#------------------------------------------------------------------------------
308e4d4ce0cSPeter Avalos# Sony Wave64
309e4d4ce0cSPeter Avalos# see http://www.vcs.de/fileadmin/user_upload/MBS/PDF/Whitepaper/Informations_about_Sony_Wave64.pdf
310e4d4ce0cSPeter Avalos# 128 bit RIFF-GUID { 66666972-912E-11CF-A5D6-28DB04C10000 } in little-endian
311e4d4ce0cSPeter Avalos0	string	riff\x2E\x91\xCF\x11\xA5\xD6\x28\xDB\x04\xC1\x00\x00		Sony Wave64 RIFF data
312e4d4ce0cSPeter Avalos# 128 bit + total file size (64 bits) so 24 bytes
313e4d4ce0cSPeter Avalos# then WAVE-GUID { 65766177-ACF3-11D3-8CD1-00C04F8EDB8A }
314e4d4ce0cSPeter Avalos>24	string		wave\xF3\xAC\xD3\x11\x8C\xD1\x00\xC0\x4F\x8E\xDB\x8A		\b, WAVE 64 audio
315e4d4ce0cSPeter Avalos!:mime	audio/x-w64
316e4d4ce0cSPeter Avalos# FMT-GUID { 20746D66-ACF3-11D3-8CD1-00C04F8EDB8A }
317e4d4ce0cSPeter Avalos>>40	search/256	fmt\x20\xF3\xAC\xD3\x11\x8C\xD1\x00\xC0\x4F\x8E\xDB\x8A		\b
318e4d4ce0cSPeter Avalos>>>&10	leshort		=1		\b, mono
319e4d4ce0cSPeter Avalos>>>&10	leshort		=2		\b, stereo
320e4d4ce0cSPeter Avalos>>>&10	leshort		>2		\b, %d channels
321e4d4ce0cSPeter Avalos>>>&12	lelong		>0		%d Hz
322e4d4ce0cSPeter Avalos
323e4d4ce0cSPeter Avalos#------------------------------------------------------------------------------
324e4d4ce0cSPeter Avalos# MBWF/RF64
325*6fca56fbSSascha Wildner# see EBU TECH 3306 https://tech.ebu.ch/docs/tech/tech3306-2009.pdf
326e4d4ce0cSPeter Avalos0	string	RF64\xff\xff\xff\xffWAVEds64		MBWF/RF64 audio
327e4d4ce0cSPeter Avalos!:mime	audio/x-wav
328ff91a668SPeter Avalos>40	search/256	fmt\x20		\b
329e4d4ce0cSPeter Avalos>>&6	leshort		=1		\b, mono
330e4d4ce0cSPeter Avalos>>&6	leshort		=2		\b, stereo
331e4d4ce0cSPeter Avalos>>&6	leshort		>2		\b, %d channels
332e4d4ce0cSPeter Avalos>>&8	lelong		>0		%d Hz
333