0
|
1 |
/////////////////////////////////////////////////////////////////
|
|
2 |
/// getID3() by James Heinrich <info@getid3.org> //
|
|
3 |
// available at http://getid3.sourceforge.net //
|
|
4 |
// or http://www.getid3.org //
|
5
|
5 |
// also https://github.com/JamesHeinrich/getID3 //
|
0
|
6 |
/////////////////////////////////////////////////////////////////
|
|
7 |
|
|
8 |
*****************************************************************
|
|
9 |
*****************************************************************
|
|
10 |
|
|
11 |
getID3() is released under multiple licenses. You may choose
|
|
12 |
from the following licenses, and use getID3 according to the
|
|
13 |
terms of the license most suitable to your project.
|
|
14 |
|
|
15 |
GNU GPL: https://gnu.org/licenses/gpl.html (v3)
|
|
16 |
https://gnu.org/licenses/old-licenses/gpl-2.0.html (v2)
|
|
17 |
https://gnu.org/licenses/old-licenses/gpl-1.0.html (v1)
|
|
18 |
|
|
19 |
GNU LGPL: https://gnu.org/licenses/lgpl.html (v3)
|
|
20 |
|
|
21 |
Mozilla MPL: http://www.mozilla.org/MPL/2.0/ (v2)
|
|
22 |
|
|
23 |
getID3 Commercial License: http://getid3.org/#gCL (payment required)
|
|
24 |
|
|
25 |
*****************************************************************
|
|
26 |
*****************************************************************
|
|
27 |
Copies of each of the above licenses are included in the 'licenses'
|
|
28 |
directory of the getID3 distribution.
|
|
29 |
|
|
30 |
|
|
31 |
+---------------------------------------------+
|
|
32 |
| If you want to donate, there is a link on |
|
|
33 |
| http://www.getid3.org for PayPal donations. |
|
|
34 |
+---------------------------------------------+
|
|
35 |
|
|
36 |
|
|
37 |
Quick Start
|
|
38 |
===========================================================================
|
|
39 |
|
|
40 |
Q: How can I check that getID3() works on my server/files?
|
|
41 |
A: Unzip getID3() to a directory, then access /demos/demo.browse.php
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
Support
|
|
46 |
===========================================================================
|
|
47 |
|
|
48 |
Q: I have a question, or I found a bug. What do I do?
|
|
49 |
A: The preferred method of support requests and/or bug reports is the
|
|
50 |
forum at http://support.getid3.org/
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
Sourceforge Notification
|
|
55 |
===========================================================================
|
|
56 |
|
|
57 |
It's highly recommended that you sign up for notification from
|
|
58 |
Sourceforge for when new versions are released. Please visit:
|
|
59 |
http://sourceforge.net/project/showfiles.php?group_id=55859
|
|
60 |
and click the little "monitor package" icon/link. If you're
|
|
61 |
previously signed up for the mailing list, be aware that it has
|
|
62 |
been discontinued, only the automated Sourceforge notification
|
|
63 |
will be used from now on.
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
What does getID3() do?
|
|
68 |
===========================================================================
|
|
69 |
|
|
70 |
Reads & parses (to varying degrees):
|
5
|
71 |
¤ tags:
|
0
|
72 |
* APE (v1 and v2)
|
|
73 |
* ID3v1 (& ID3v1.1)
|
|
74 |
* ID3v2 (v2.4, v2.3, v2.2)
|
|
75 |
* Lyrics3 (v1 & v2)
|
|
76 |
|
5
|
77 |
¤ audio-lossy:
|
0
|
78 |
* MP3/MP2/MP1
|
|
79 |
* MPC / Musepack
|
|
80 |
* Ogg (Vorbis, OggFLAC, Speex)
|
|
81 |
* AAC / MP4
|
|
82 |
* AC3
|
|
83 |
* DTS
|
|
84 |
* RealAudio
|
|
85 |
* Speex
|
|
86 |
* DSS
|
|
87 |
* VQF
|
|
88 |
|
5
|
89 |
¤ audio-lossless:
|
0
|
90 |
* AIFF
|
|
91 |
* AU
|
|
92 |
* Bonk
|
|
93 |
* CD-audio (*.cda)
|
|
94 |
* FLAC
|
|
95 |
* LA (Lossless Audio)
|
|
96 |
* LiteWave
|
|
97 |
* LPAC
|
|
98 |
* MIDI
|
|
99 |
* Monkey's Audio
|
|
100 |
* OptimFROG
|
|
101 |
* RKAU
|
|
102 |
* Shorten
|
|
103 |
* TTA
|
|
104 |
* VOC
|
|
105 |
* WAV (RIFF)
|
|
106 |
* WavPack
|
|
107 |
|
5
|
108 |
¤ audio-video:
|
0
|
109 |
* ASF: ASF, Windows Media Audio (WMA), Windows Media Video (WMV)
|
|
110 |
* AVI (RIFF)
|
|
111 |
* Flash
|
|
112 |
* Matroska (MKV)
|
|
113 |
* MPEG-1 / MPEG-2
|
|
114 |
* NSV (Nullsoft Streaming Video)
|
|
115 |
* Quicktime (including MP4)
|
|
116 |
* RealVideo
|
|
117 |
|
5
|
118 |
¤ still image:
|
0
|
119 |
* BMP
|
|
120 |
* GIF
|
|
121 |
* JPEG
|
|
122 |
* PNG
|
|
123 |
* TIFF
|
|
124 |
* SWF (Flash)
|
|
125 |
* PhotoCD
|
|
126 |
|
5
|
127 |
¤ data:
|
0
|
128 |
* ISO-9660 CD-ROM image (directory structure)
|
|
129 |
* SZIP (limited support)
|
|
130 |
* ZIP (directory structure)
|
|
131 |
* TAR
|
|
132 |
* CUE
|
|
133 |
|
|
134 |
|
|
135 |
Writes:
|
|
136 |
* ID3v1 (& ID3v1.1)
|
|
137 |
* ID3v2 (v2.3 & v2.4)
|
|
138 |
* VorbisComment on OggVorbis
|
|
139 |
* VorbisComment on FLAC (not OggFLAC)
|
|
140 |
* APE v2
|
|
141 |
* Lyrics3 (delete only)
|
|
142 |
|
|
143 |
|
|
144 |
|
|
145 |
Requirements
|
|
146 |
===========================================================================
|
|
147 |
|
|
148 |
* PHP 4.2.0 up to 5.2.x for getID3() 1.7.x (and earlier)
|
|
149 |
* PHP 5.0.5 (or higher) for getID3() 1.8.x (and up)
|
|
150 |
* PHP 5.0.5 (or higher) for getID3() 2.0.x (and up)
|
|
151 |
* at least 4MB memory for PHP. 8MB or more is highly recommended.
|
|
152 |
12MB is required with all modules loaded.
|
|
153 |
|
|
154 |
|
|
155 |
|
|
156 |
Usage
|
|
157 |
===========================================================================
|
|
158 |
|
|
159 |
See /demos/demo.basic.php for a very basic use of getID3() with no
|
|
160 |
fancy output, just scanning one file.
|
|
161 |
|
|
162 |
See structure.txt for the returned data structure.
|
|
163 |
|
|
164 |
*> For an example of a complete directory-browsing, <*
|
|
165 |
*> file-scanning implementation of getID3(), please run <*
|
|
166 |
*> /demos/demo.browse.php <*
|
|
167 |
|
|
168 |
See /demos/demo.mysql.php for a sample recursive scanning code that
|
|
169 |
scans every file in a given directory, and all sub-directories, stores
|
|
170 |
the results in a database and allows various analysis / maintenance
|
|
171 |
operations
|
|
172 |
|
|
173 |
To analyze remote files over HTTP or FTP you need to copy the file
|
|
174 |
locally first before running getID3(). Your code would look something
|
|
175 |
like this:
|
|
176 |
|
|
177 |
// Copy remote file locally to scan with getID3()
|
|
178 |
$remotefilename = 'http://www.example.com/filename.mp3';
|
|
179 |
if ($fp_remote = fopen($remotefilename, 'rb')) {
|
|
180 |
$localtempfilename = tempnam('/tmp', 'getID3');
|
|
181 |
if ($fp_local = fopen($localtempfilename, 'wb')) {
|
|
182 |
while ($buffer = fread($fp_remote, 8192)) {
|
|
183 |
fwrite($fp_local, $buffer);
|
|
184 |
}
|
|
185 |
fclose($fp_local);
|
|
186 |
|
|
187 |
// Initialize getID3 engine
|
|
188 |
$getID3 = new getID3;
|
|
189 |
|
|
190 |
$ThisFileInfo = $getID3->analyze($filename);
|
|
191 |
|
|
192 |
// Delete temporary file
|
|
193 |
unlink($localtempfilename);
|
|
194 |
}
|
|
195 |
fclose($fp_remote);
|
|
196 |
}
|
|
197 |
|
|
198 |
|
|
199 |
See /demos/demo.write.php for how to write tags.
|
|
200 |
|
|
201 |
|
|
202 |
|
|
203 |
What does the returned data structure look like?
|
|
204 |
===========================================================================
|
|
205 |
|
|
206 |
See structure.txt
|
|
207 |
|
|
208 |
It is recommended that you look at the output of
|
|
209 |
/demos/demo.browse.php scanning the file(s) you're interested in to
|
|
210 |
confirm what data is actually returned for any particular filetype in
|
|
211 |
general, and your files in particular, as the actual data returned
|
|
212 |
may vary considerably depending on what information is available in
|
|
213 |
the file itself.
|
|
214 |
|
|
215 |
|
|
216 |
|
|
217 |
Notes
|
|
218 |
===========================================================================
|
|
219 |
|
|
220 |
getID3() 1.x:
|
|
221 |
If the format parser encounters a critical problem, it will return
|
|
222 |
something in $fileinfo['error'], describing the encountered error. If
|
|
223 |
a less critical error or notice is generated it will appear in
|
|
224 |
$fileinfo['warning']. Both keys may contain more than one warning or
|
|
225 |
error. If something is returned in ['error'] then the file was not
|
|
226 |
correctly parsed and returned data may or may not be correct and/or
|
|
227 |
complete. If something is returned in ['warning'] (and not ['error'])
|
|
228 |
then the data that is returned is OK - usually getID3() is reporting
|
|
229 |
errors in the file that have been worked around due to known bugs in
|
|
230 |
other programs. Some warnings may indicate that the data that is
|
|
231 |
returned is OK but that some data could not be extracted due to
|
|
232 |
errors in the file.
|
|
233 |
|
|
234 |
getID3() 2.x:
|
|
235 |
See above except errors are thrown (so you will only get one error).
|
|
236 |
|
|
237 |
|
|
238 |
|
|
239 |
Disclaimer
|
|
240 |
===========================================================================
|
|
241 |
|
|
242 |
getID3() has been tested on many systems, on many types of files,
|
|
243 |
under many operating systems, and is generally believe to be stable
|
|
244 |
and safe. That being said, there is still the chance there is an
|
|
245 |
undiscovered and/or unfixed bug that may potentially corrupt your
|
|
246 |
file, especially within the writing functions. By using getID3() you
|
|
247 |
agree that it's not my fault if any of your files are corrupted.
|
|
248 |
In fact, I'm not liable for anything :)
|
|
249 |
|
|
250 |
|
|
251 |
|
|
252 |
License
|
|
253 |
===========================================================================
|
|
254 |
|
|
255 |
GNU General Public License - see license.txt
|
|
256 |
|
|
257 |
This program is free software; you can redistribute it and/or
|
|
258 |
modify it under the terms of the GNU General Public License
|
|
259 |
as published by the Free Software Foundation; either version 2
|
|
260 |
of the License, or (at your option) any later version.
|
|
261 |
|
|
262 |
This program is distributed in the hope that it will be useful,
|
|
263 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
264 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
265 |
GNU General Public License for more details.
|
|
266 |
|
|
267 |
You should have received a copy of the GNU General Public License
|
|
268 |
along with this program; if not, write to:
|
|
269 |
Free Software Foundation, Inc.
|
|
270 |
59 Temple Place - Suite 330
|
|
271 |
Boston, MA 02111-1307, USA.
|
|
272 |
|
|
273 |
FAQ:
|
|
274 |
Q: Can I use getID3() in my program? Do I need a commercial license?
|
|
275 |
A: You're generally free to use getID3 however you see fit. The only
|
|
276 |
case in which you would require a commercial license is if you're
|
|
277 |
selling your closed-source program that integrates getID3. If you
|
|
278 |
sell your program including a copy of getID3, that's fine as long
|
|
279 |
as you include a copy of the sourcecode when you sell it. Or you
|
|
280 |
can distribute your code without getID3 and say "download it from
|
|
281 |
getid3.sourceforge.net"
|
|
282 |
|
|
283 |
|
|
284 |
|
|
285 |
Why is it called "getID3()" if it does so much more than just that?
|
|
286 |
===========================================================================
|
|
287 |
|
|
288 |
v0.1 did in fact just do that. I don't have a copy of code that old, but I
|
|
289 |
could essentially write it today with a one-line function:
|
|
290 |
function getID3($filename) { return unpack('a3TAG/a30title/a30artist/a30album/a4year/a28comment/c1track/c1genreid', substr(file_get_contents($filename), -128)); }
|
|
291 |
|
|
292 |
|
|
293 |
Future Plans
|
|
294 |
===========================================================================
|
|
295 |
http://www.getid3.org/phpBB3/viewforum.php?f=7
|
|
296 |
|
|
297 |
* Better support for MP4 container format
|
|
298 |
* Scan for appended ID3v2 tag at end of file per ID3v2.4 specs (Section 5.0)
|
|
299 |
* Support for JPEG-2000 (http://www.morgan-multimedia.com/jpeg2000_overview.htm)
|
|
300 |
* Support for MOD (mod/stm/s3m/it/xm/mtm/ult/669)
|
|
301 |
* Support for ACE (thanks Vince)
|
|
302 |
* Support for Ogg other than Vorbis, Speex and OggFlac (ie. Ogg+Xvid)
|
|
303 |
* Ability to create Xing/LAME VBR header for VBR MP3s that are missing VBR header
|
|
304 |
* Ability to "clean" ID3v2 padding (replace invalid padding with valid padding)
|
|
305 |
* Warn if MP3s change version mid-stream (in full-scan mode)
|
|
306 |
* check for corrupt/broken mid-file MP3 streams in histogram scan
|
|
307 |
* Support for lossless-compression formats
|
|
308 |
(http://www.firstpr.com.au/audiocomp/lossless/#Links)
|
|
309 |
(http://compression.ca/act-sound.html)
|
|
310 |
(http://web.inter.nl.net/users/hvdh/lossless/lossless.htm)
|
|
311 |
* Support for RIFF-INFO chunks
|
|
312 |
* http://lotto.st-andrews.ac.uk/~njh/tag_interchange.html
|
5
|
313 |
(thanks Nick Humfrey <njhØsurgeradio*co*uk>)
|
0
|
314 |
* http://abcavi.narod.ru/sof/abcavi/infotags.htm
|
|
315 |
(thanks Kibi)
|
|
316 |
* Better support for Bink video
|
|
317 |
* http://www.hr/josip/DSP/AudioFile2.html
|
|
318 |
* http://www.pcisys.net/~melanson/codecs/
|
|
319 |
* Detect mp3PRO
|
|
320 |
* Support for PSD
|
|
321 |
* Support for JPC
|
|
322 |
* Support for JP2
|
|
323 |
* Support for JPX
|
|
324 |
* Support for JB2
|
|
325 |
* Support for IFF
|
|
326 |
* Support for ICO
|
|
327 |
* Support for ANI
|
5
|
328 |
* Support for EXE (comments, author, etc) (thanks p*quaedackersØplanet*nl)
|
0
|
329 |
* Support for DVD-IFO (region, subtitles, aspect ratio, etc)
|
5
|
330 |
(thanks p*quaedackersØplanet*nl)
|
0
|
331 |
* More complete support for SWF - parsing encapsulated MP3 and/or JPEG content
|
5
|
332 |
(thanks n8n8Øyahoo*com)
|
0
|
333 |
* Support for a2b
|
|
334 |
* Optional scan-through-frames for AVI verification
|
5
|
335 |
(thanks rockcohenØmassive-interactive*nl)
|
|
336 |
* Support for TTF (thanks infoØbutterflyx*com)
|
0
|
337 |
* Support for DSS (http://www.getid3.org/phpBB3/viewtopic.php?t=171)
|
|
338 |
* Support for SMAF (http://smaf-yamaha.com/what/demo.html)
|
|
339 |
http://www.getid3.org/phpBB3/viewtopic.php?t=182
|
|
340 |
* Support for AMR (http://www.getid3.org/phpBB3/viewtopic.php?t=195)
|
|
341 |
* Support for 3gpp (http://www.getid3.org/phpBB3/viewtopic.php?t=195)
|
5
|
342 |
* Support for ID4 (http://www.wackysoft.cjb.net grizlyY2KØhotmail*com)
|
0
|
343 |
* Parse XML data returned in Ogg comments
|
5
|
344 |
* Parse XML data from Quicktime SMIL metafiles (klausrathØmac*com)
|
0
|
345 |
* ID3v2 genre string creator function
|
|
346 |
* More complete parsing of JPG
|
|
347 |
* Support for all old-style ASF packets
|
|
348 |
* ASF/WMA/WMV tag writing
|
|
349 |
* Parse declared T??? ID3v2 text information frames, where appropriate
|
|
350 |
(thanks Christian Fritz for the idea)
|
|
351 |
* Recognize encoder:
|
|
352 |
http://www.guerillasoft.com/EncSpot2/index.html
|
|
353 |
http://ff123.net/identify.html
|
|
354 |
http://www.hydrogenaudio.org/?act=ST&f=16&t=9414
|
|
355 |
http://www.hydrogenaudio.org/?showtopic=11785
|
|
356 |
* Support for other OS/2 bitmap structures: Bitmap Array('BA'),
|
|
357 |
Color Icon('CI'), Color Pointer('CP'), Icon('IC'), Pointer ('PT')
|
|
358 |
http://netghost.narod.ru/gff/graphics/summary/os2bmp.htm
|
|
359 |
* Support for WavPack RAW mode
|
|
360 |
* ASF/WMA/WMV data packet parsing
|
|
361 |
* ID3v2FrameFlagsLookupTagAlter()
|
|
362 |
* ID3v2FrameFlagsLookupFileAlter()
|
|
363 |
* obey ID3v2 tag alter/preserve/discard rules
|
|
364 |
* http://www.geocities.com/SiliconValley/Sector/9654/Softdoc/Illyrium/Aolyr.htm
|
|
365 |
* proper checking for LINK/LNK frame validity in ID3v2 writing
|
|
366 |
* proper checking for ASPI-TLEN frame validity in ID3v2 writing
|
|
367 |
* proper checking for COMR frame validity in ID3v2 writing
|
|
368 |
* http://www.geocities.co.jp/SiliconValley-Oakland/3664/index.html
|
|
369 |
* decode GEOB ID3v2 structure as encoded by RealJukebox,
|
|
370 |
decode NCON ID3v2 structure as encoded by MusicMatch
|
|
371 |
(probably won't happen - the formats are proprietary)
|
|
372 |
|
|
373 |
|
|
374 |
|
|
375 |
Known Bugs/Issues in getID3() that may be fixed eventually
|
|
376 |
===========================================================================
|
|
377 |
http://www.getid3.org/phpBB3/viewtopic.php?t=25
|
|
378 |
|
|
379 |
* Cannot determine bitrate for MPEG video with VBR video data
|
|
380 |
(need documentation)
|
|
381 |
* Interlace/progressive cannot be determined for MPEG video
|
|
382 |
(need documentation)
|
|
383 |
* MIDI playtime is sometimes inaccurate
|
|
384 |
* AAC-RAW mode files cannot be identified
|
|
385 |
* WavPack-RAW mode files cannot be identified
|
|
386 |
* mp4 files report lots of "Unknown QuickTime atom type"
|
|
387 |
(need documentation)
|
|
388 |
* Encrypted ASF/WMA/WMV files warn about "unhandled GUID
|
|
389 |
ASF_Content_Encryption_Object"
|
|
390 |
* Bitrate split between audio and video cannot be calculated for
|
|
391 |
NSV, only the total bitrate. (need documentation)
|
|
392 |
* All Ogg formats (Vorbis, OggFLAC, Speex) are affected by the
|
|
393 |
problem of large VorbisComments spanning multiple Ogg pages, but
|
|
394 |
but only OggVorbis files can be processed with vorbiscomment.
|
|
395 |
* The version of "head" supplied with Mac OS 10.2.8 (maybe other
|
|
396 |
versions too) does only understands a single option (-n) and
|
|
397 |
therefore fails. getID3 ignores this and returns wrong md5_data.
|
|
398 |
|
|
399 |
|
|
400 |
|
|
401 |
Known Bugs/Issues in getID3() that cannot be fixed
|
|
402 |
--------------------------------------------------
|
|
403 |
http://www.getid3.org/phpBB3/viewtopic.php?t=25
|
|
404 |
|
|
405 |
* 32-bit PHP installations only:
|
|
406 |
Files larger than 2GB cannot always be parsed fully by getID3()
|
|
407 |
due to limitations in the 32-bit PHP filesystem functions.
|
|
408 |
NOTE: Since v1.7.8b3 there is partial support for larger-than-
|
|
409 |
2GB files, most of which will parse OK, as long as no critical
|
|
410 |
data is located beyond the 2GB offset.
|
|
411 |
Known will-work:
|
|
412 |
* all file formats on 64-bit PHP
|
|
413 |
* ZIP (format doesn't support files >2GB)
|
|
414 |
* FLAC (current encoders don't support files >2GB)
|
|
415 |
Known will-not-work:
|
|
416 |
* ID3v1 tags (always located at end-of-file)
|
|
417 |
* Lyrics3 tags (always located at end-of-file)
|
|
418 |
* APE tags (always located at end-of-file)
|
|
419 |
Maybe-will-work:
|
|
420 |
* Quicktime (will work if needed metadata is before 2GB offset,
|
|
421 |
that is if the file has been hinted/optimized for streaming)
|
|
422 |
* RIFF.WAV (should work fine, but gives warnings about not being
|
|
423 |
able to parse all chunks)
|
|
424 |
* RIFF.AVI (playtime will probably be wrong, is only based on
|
|
425 |
"movi" chunk that fits in the first 2GB, should issue error
|
|
426 |
to show that playtime is incorrect. Other data should be mostly
|
|
427 |
correct, assuming that data is constant throughout the file)
|
5
|
428 |
* PHP <= v5 on Windows cannot read UTF-8 filenames
|
0
|
429 |
|
|
430 |
|
|
431 |
Known Bugs/Issues in other programs
|
|
432 |
-----------------------------------
|
|
433 |
http://www.getid3.org/phpBB3/viewtopic.php?t=25
|
|
434 |
|
|
435 |
* Windows Media Player (up to v11) and iTunes (up to v10+) do
|
|
436 |
not correctly handle ID3v2.3 tags with UTF-16BE+BOM
|
|
437 |
encoding (they assume the data is UTF-16LE+BOM and either
|
|
438 |
crash (WMP) or output Asian character set (iTunes)
|
|
439 |
* Winamp (up to v2.80 at least) does not support ID3v2.4 tags,
|
|
440 |
only ID3v2.3
|
|
441 |
see: http://forums.winamp.com/showthread.php?postid=387524
|
|
442 |
* Some versions of Helium2 (www.helium2.com) do not write
|
|
443 |
ID3v2.4-compliant Frame Sizes, even though the tag is marked
|
|
444 |
as ID3v2.4) (detected by getID3())
|
|
445 |
* MP3ext V3.3.17 places a non-compliant padding string at the end
|
|
446 |
of the ID3v2 header. This is supposedly fixed in v3.4b21 but
|
|
447 |
only if you manually add a registry key. This fix is not yet
|
|
448 |
confirmed. (detected by getID3())
|
|
449 |
* CDex v1.40 (fixed by v1.50b7) writes non-compliant Ogg comment
|
|
450 |
strings, supposed to be in the format "NAME=value" but actually
|
|
451 |
written just "value" (detected by getID3())
|
|
452 |
* Oggenc 0.9-rc3 flags the encoded file as ABR whether it's
|
|
453 |
actually ABR or VBR.
|
|
454 |
* iTunes (versions "X v2.0.3", "v3.0.1" are known-guilty, probably
|
|
455 |
other versions are too) writes ID3v2.3 comment tags using a
|
|
456 |
frame name 'COM ' which is not valid for ID3v2.3+ (it's an
|
|
457 |
ID3v2.2-style frame name) (detected by getID3())
|
|
458 |
* MP2enc does not encode mono CBR MP2 files properly (half speed
|
|
459 |
sound and double playtime)
|
|
460 |
* MP2enc does not encode mono VBR MP2 files properly (actually
|
|
461 |
encoded as stereo)
|
|
462 |
* tooLAME does not encode mono VBR MP2 files properly (actually
|
|
463 |
encoded as stereo)
|
|
464 |
* AACenc encodes files in VBR mode (actually ABR) even if CBR is
|
|
465 |
specified
|
|
466 |
* AAC/ADIF - bitrate_mode = cbr for vbr files
|
|
467 |
* LAME 3.90-3.92 prepends one frame of null data (space for the
|
|
468 |
LAME/VBR header, but it never gets written) when encoding in CBR
|
|
469 |
mode with the DLL
|
|
470 |
* Ahead Nero encodes TwinVQF with a DSIZ value (which is supposed
|
|
471 |
to be the filesize in bytes) of "0" for TwinVQF v1.0 and "1" for
|
|
472 |
TwinVQF v2.0 (detected by getID3())
|
|
473 |
* Ahead Nero encodes TwinVQF files 1 second shorter than they
|
|
474 |
should be
|
|
475 |
* AAC-ADTS files are always actually encoded VBR, even if CBR mode
|
|
476 |
is specified (the CBR-mode switches on the encoder enable ABR
|
|
477 |
mode, not CBR as such, but it's not possible to tell the
|
|
478 |
difference between such ABR files and true VBR)
|
|
479 |
* STREAMINFO.audio_signature in OggFLAC is always null. "The reason
|
|
480 |
it's like that is because there is no seeking support in
|
|
481 |
libOggFLAC yet, so it has no way to go back and write the
|
|
482 |
computed sum after encoding. Seeking support in Ogg FLAC is the
|
|
483 |
#1 item for the next release." - Josh Coalson (FLAC developer)
|
|
484 |
NOTE: getID3() will calculate md5_data in a method similar to
|
|
485 |
other file formats, but that value cannot be compared to the
|
|
486 |
md5_data value from FLAC data in a FLAC file format.
|
|
487 |
* STREAMINFO.audio_signature is not calculated in FLAC v0.3.0 &
|
|
488 |
v0.4.0 - getID3() will calculate md5_data in a method similar to
|
|
489 |
other file formats, but that value cannot be compared to the
|
|
490 |
md5_data value from FLAC v0.5.0+
|
|
491 |
* RioPort (various versions including 2.0 and 3.11) tags ID3v2 with
|
|
492 |
a WCOM frame that has no data portion
|
|
493 |
* Earlier versions of Coolplayer adds illegal ID3 tags to Ogg Vorbis
|
|
494 |
files, thus making them corrupt.
|
|
495 |
* Meracl ID3 Tag Writer v1.3.4 (and older) incorrectly truncates the
|
|
496 |
last byte of data from an MP3 file when appending a new ID3v1 tag.
|
|
497 |
(detected by getID3())
|
|
498 |
* Lossless-Audio files encoded with and without the -noseek switch
|
|
499 |
do actually differ internally and therefore cannot match md5_data
|
|
500 |
* iTunes has been known to append a new ID3v1 tag on the end of an
|
|
501 |
existing ID3v1 tag when ID3v2 tag is also present
|
|
502 |
(detected by getID3())
|
|
503 |
* MediaMonkey may write a blank RGAD ID3v2 frame but put actual
|
|
504 |
replay gain adjustments in a series of user-defined TXXX frames
|
|
505 |
(detected and handled by getID3() since v1.9.2)
|
|
506 |
|
|
507 |
|
|
508 |
|
|
509 |
|
|
510 |
Reference material:
|
|
511 |
===========================================================================
|
|
512 |
|
|
513 |
[www.id3.org material now mirrored at http://id3lib.sourceforge.net/id3/]
|
|
514 |
* http://www.id3.org/id3v2.4.0-structure.txt
|
|
515 |
* http://www.id3.org/id3v2.4.0-frames.txt
|
|
516 |
* http://www.id3.org/id3v2.4.0-changes.txt
|
|
517 |
* http://www.id3.org/id3v2.3.0.txt
|
|
518 |
* http://www.id3.org/id3v2-00.txt
|
|
519 |
* http://www.id3.org/mp3frame.html
|
|
520 |
* http://minnie.tuhs.org/pipermail/mp3encoder/2001-January/001800.html <mathewhendry@hotmail.com>
|
|
521 |
* http://www.dv.co.yu/mpgscript/mpeghdr.htm
|
|
522 |
* http://www.mp3-tech.org/programmer/frame_header.html
|
|
523 |
* http://users.belgacom.net/gc247244/extra/tag.html
|
|
524 |
* http://gabriel.mp3-tech.org/mp3infotag.html
|
|
525 |
* http://www.id3.org/iso4217.html
|
|
526 |
* http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-1.TXT
|
|
527 |
* http://www.xiph.org/ogg/vorbis/doc/framing.html
|
|
528 |
* http://www.xiph.org/ogg/vorbis/doc/v-comment.html
|
|
529 |
* http://leknor.com/code/php/class.ogg.php.txt
|
|
530 |
* http://www.id3.org/iso639-2.html
|
|
531 |
* http://www.id3.org/lyrics3.html
|
|
532 |
* http://www.id3.org/lyrics3200.html
|
|
533 |
* http://www.psc.edu/general/software/packages/ieee/ieee.html
|
|
534 |
* http://www.scri.fsu.edu/~jac/MAD3401/Backgrnd/ieee-expl.html
|
|
535 |
* http://www.scri.fsu.edu/~jac/MAD3401/Backgrnd/binary.html
|
|
536 |
* http://www.jmcgowan.com/avi.html
|
|
537 |
* http://www.wotsit.org/
|
|
538 |
* http://www.herdsoft.com/ti/davincie/davp3xo2.htm
|
|
539 |
* http://www.mathdogs.com/vorbis-illuminated/bitstream-appendix.html
|
|
540 |
* "Standard MIDI File Format" by Dustin Caldwell (from www.wotsit.org)
|
|
541 |
* http://midistudio.com/Help/GMSpecs_Patches.htm
|
|
542 |
* http://www.xiph.org/archives/vorbis/200109/0459.html
|
|
543 |
* http://www.replaygain.org/
|
|
544 |
* http://www.lossless-audio.com/
|
|
545 |
* http://download.microsoft.com/download/winmediatech40/Doc/1.0/WIN98MeXP/EN-US/ASF_Specification_v.1.0.exe
|
|
546 |
* http://mediaxw.sourceforge.net/files/doc/Active%20Streaming%20Format%20(ASF)%201.0%20Specification.pdf
|
|
547 |
* http://www.uni-jena.de/~pfk/mpp/sv8/ (archived at http://www.hydrogenaudio.org/musepack/klemm/www.personal.uni-jena.de/~pfk/mpp/sv8/)
|
|
548 |
* http://jfaul.de/atl/
|
|
549 |
* http://www.uni-jena.de/~pfk/mpp/ (archived at http://www.hydrogenaudio.org/musepack/klemm/www.personal.uni-jena.de/~pfk/mpp/)
|
|
550 |
* http://www.libpng.org/pub/png/spec/png-1.2-pdg.html
|
|
551 |
* http://www.real.com/devzone/library/creating/rmsdk/doc/rmff.htm
|
|
552 |
* http://www.fastgraph.com/help/bmp_os2_header_format.html
|
|
553 |
* http://netghost.narod.ru/gff/graphics/summary/os2bmp.htm
|
|
554 |
* http://flac.sourceforge.net/format.html
|
|
555 |
* http://www.research.att.com/projects/mpegaudio/mpeg2.html
|
|
556 |
* http://www.audiocoding.com/wiki/index.php?page=AAC
|
|
557 |
* http://libmpeg.org/mpeg4/doc/w2203tfs.pdf
|
|
558 |
* http://www.geocities.com/xhelmboyx/quicktime/formats/qtm-layout.txt
|
|
559 |
* http://developer.apple.com/techpubs/quicktime/qtdevdocs/RM/frameset.htm
|
|
560 |
* http://www.nullsoft.com/nsv/
|
|
561 |
* http://www.wotsit.org/download.asp?f=iso9660
|
|
562 |
* http://sandbox.mc.edu/~bennet/cs110/tc/tctod.html
|
|
563 |
* http://www.cdroller.com/htm/readdata.html
|
|
564 |
* http://www.speex.org/manual/node10.html
|
|
565 |
* http://www.harmony-central.com/Computer/Programming/aiff-file-format.doc
|
|
566 |
* http://www.faqs.org/rfcs/rfc2361.html
|
|
567 |
* http://ghido.shelter.ro/
|
|
568 |
* http://www.ebu.ch/tech_t3285.pdf
|
|
569 |
* http://www.sr.se/utveckling/tu/bwf
|
|
570 |
* http://ftp.aessc.org/pub/aes46-2002.pdf
|
|
571 |
* http://cartchunk.org:8080/
|
|
572 |
* http://www.broadcastpapers.com/radio/cartchunk01.htm
|
|
573 |
* http://www.hr/josip/DSP/AudioFile2.html
|
|
574 |
* http://home.attbi.com/~chris.bagwell/AudioFormats-11.html
|
|
575 |
* http://www.pure-mac.com/extkey.html
|
|
576 |
* http://cesnet.dl.sourceforge.net/sourceforge/bonkenc/bonk-binary-format-0.9.txt
|
|
577 |
* http://www.headbands.com/gspot/
|
|
578 |
* http://www.openswf.org/spec/SWFfileformat.html
|
|
579 |
* http://j-faul.virtualave.net/
|
|
580 |
* http://www.btinternet.com/~AnthonyJ/Atari/programming/avr_format.html
|
|
581 |
* http://cui.unige.ch/OSG/info/AudioFormats/ap11.html
|
|
582 |
* http://sswf.sourceforge.net/SWFalexref.html
|
|
583 |
* http://www.geocities.com/xhelmboyx/quicktime/formats/qti-layout.txt
|
|
584 |
* http://www-lehre.informatik.uni-osnabrueck.de/~fbstark/diplom/docs/swf/Flash_Uncovered.htm
|
|
585 |
* http://developer.apple.com/quicktime/icefloe/dispatch012.html
|
|
586 |
* http://www.csdn.net/Dev/Format/graphics/PCD.htm
|
|
587 |
* http://tta.iszf.irk.ru/
|
|
588 |
* http://www.atsc.org/standards/a_52a.pdf
|
|
589 |
* http://www.alanwood.net/unicode/
|
|
590 |
* http://www.freelists.org/archives/matroska-devel/07-2003/msg00010.html
|
|
591 |
* http://www.its.msstate.edu/net/real/reports/config/tags.stats
|
|
592 |
* http://homepages.slingshot.co.nz/~helmboy/quicktime/formats/qtm-layout.txt
|
|
593 |
* http://brennan.young.net/Comp/LiveStage/things.html
|
|
594 |
* http://www.multiweb.cz/twoinches/MP3inside.htm
|
|
595 |
* http://www.geocities.co.jp/SiliconValley-Oakland/3664/alittle.html#GenreExtended
|
|
596 |
* http://www.mactech.com/articles/mactech/Vol.06/06.01/SANENormalized/
|
|
597 |
* http://www.unicode.org/unicode/faq/utf_bom.html
|
|
598 |
* http://tta.corecodec.org/?menu=format
|
|
599 |
* http://www.scvi.net/nsvformat.htm
|
|
600 |
* http://pda.etsi.org/pda/queryform.asp
|
|
601 |
* http://cpansearch.perl.org/src/RGIBSON/Audio-DSS-0.02/lib/Audio/DSS.pm
|
|
602 |
* http://trac.musepack.net/trac/wiki/SV8Specification
|
|
603 |
* http://wyday.com/cuesharp/specification.php
|
5
|
604 |
* http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Nikon.html |