Changeset 46112 for trunk/src/wp-includes/ID3/readme.txt
- Timestamp:
- 09/14/2019 07:06:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ID3/readme.txt
r29734 r46112 2 2 /// getID3() by James Heinrich <info@getid3.org> // 3 3 // available at http://getid3.sourceforge.net // 4 // or http ://www.getid3.org//4 // or https://www.getid3.org // 5 5 // also https://github.com/JamesHeinrich/getID3 // 6 6 ///////////////////////////////////////////////////////////////// … … 19 19 GNU LGPL: https://gnu.org/licenses/lgpl.html (v3) 20 20 21 Mozilla MPL: http ://www.mozilla.org/MPL/2.0/(v2)22 23 getID3 Commercial License: http ://getid3.org/#gCL (payment required)21 Mozilla MPL: https://www.mozilla.org/MPL/2.0/ (v2) 22 23 getID3 Commercial License: https://www.getid3.org/#gCL (payment required) 24 24 25 25 ***************************************************************** … … 29 29 30 30 31 +--------------------------------------------- +32 | If you want to donate, there is a link on |33 | http ://www.getid3.org for PayPal donations. |34 +--------------------------------------------- +31 +----------------------------------------------+ 32 | If you want to donate, there is a link on | 33 | https://www.getid3.org for PayPal donations. | 34 +----------------------------------------------+ 35 35 36 36 … … 78 78 * MP3/MP2/MP1 79 79 * MPC / Musepack 80 * Ogg (Vorbis, OggFLAC, Speex )80 * Ogg (Vorbis, OggFLAC, Speex, Opus) 81 81 * AAC / MP4 82 82 * AC3 … … 146 146 =========================================================================== 147 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) 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.3.0 (or higher) for getID3() 1.9.17 (and up) 151 * PHP 5.3.0 (or higher) for getID3() 2.0.x (and up) 151 152 * at least 4MB memory for PHP. 8MB or more is highly recommended. 152 153 12MB is required with all modules loaded. … … 178 179 $remotefilename = 'http://www.example.com/filename.mp3'; 179 180 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); 181 $localtempfilename = tempnam('/tmp', 'getID3'); 182 if ($fp_local = fopen($localtempfilename, 'wb')) { 183 while ($buffer = fread($fp_remote, 32768)) { 184 fwrite($fp_local, $buffer); 185 } 186 fclose($fp_local); 187 188 $remote_headers = array_change_key_case(get_headers($remotefilename, 1), CASE_LOWER); 189 $remote_filesize = (isset($remote_headers['content-length']) ? (is_array($remote_headers['content-length']) ? $remote_headers['content-length'][count($remote_headers['content-length']) - 1] : $remote_headers['content-length']) : null); 186 190 187 191 // Initialize getID3 engine 188 192 $getID3 = new getID3; 189 193 190 $ThisFileInfo = $getID3->analyze($ filename);191 192 193 194 195 194 $ThisFileInfo = $getID3->analyze($localtempfilename, $remote_filesize, basename($remotefilename)); 195 196 // Delete temporary file 197 unlink($localtempfilename); 198 } 199 fclose($fp_remote); 196 200 } 197 201 202 Note: since v1.9.9-20150212 it is possible a second and third parameter 203 to $getID3->analyze(), for original filesize and original filename 204 respectively. This permits you to download only a portion of a large remote 205 file but get accurate playtime estimates, assuming the format only requires 206 the beginning of the file for correct format analysis. 198 207 199 208 See /demos/demo.write.php for how to write tags. … … 293 302 Future Plans 294 303 =========================================================================== 295 http ://www.getid3.org/phpBB3/viewforum.php?f=7304 https://www.getid3.org/phpBB3/viewforum.php?f=7 296 305 297 306 * Better support for MP4 container format … … 335 344 (thanks rockcohenØmassive-interactive*nl) 336 345 * Support for TTF (thanks infoØbutterflyx*com) 337 * Support for DSS (http ://www.getid3.org/phpBB3/viewtopic.php?t=171)346 * Support for DSS (https://www.getid3.org/phpBB3/viewtopic.php?t=171) 338 347 * Support for SMAF (http://smaf-yamaha.com/what/demo.html) 339 http ://www.getid3.org/phpBB3/viewtopic.php?t=182340 * 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)348 https://www.getid3.org/phpBB3/viewtopic.php?t=182 349 * Support for AMR (https://www.getid3.org/phpBB3/viewtopic.php?t=195) 350 * Support for 3gpp (https://www.getid3.org/phpBB3/viewtopic.php?t=195) 342 351 * Support for ID4 (http://www.wackysoft.cjb.net grizlyY2KØhotmail*com) 343 352 * Parse XML data returned in Ogg comments … … 375 384 Known Bugs/Issues in getID3() that may be fixed eventually 376 385 =========================================================================== 377 http ://www.getid3.org/phpBB3/viewtopic.php?t=25386 https://www.getid3.org/phpBB3/viewtopic.php?t=25 378 387 379 388 * Cannot determine bitrate for MPEG video with VBR video data … … 401 410 Known Bugs/Issues in getID3() that cannot be fixed 402 411 -------------------------------------------------- 403 http ://www.getid3.org/phpBB3/viewtopic.php?t=25412 https://www.getid3.org/phpBB3/viewtopic.php?t=25 404 413 405 414 * 32-bit PHP installations only: … … 431 440 Known Bugs/Issues in other programs 432 441 ----------------------------------- 433 http://www.getid3.org/phpBB3/viewtopic.php?t=25 434 442 https://www.getid3.org/phpBB3/viewtopic.php?t=25 443 444 * MusicBrainz Picard (at least up to v1.3.2) writes multiple 445 ID3v2.3 genres in non-standard forward-slash separated text 446 rather than parenthesis-numeric+refinement style per the ID3v2.3 447 specs. Tags written in ID3v2.4 mode are written correctly. 448 (detected and worked around by getID3()) 449 * PZ TagEditor v4.53.408 has been known to insert ID3v2.3 frames 450 into an existing ID3v2.2 tag which, of course, breaks things 435 451 * Windows Media Player (up to v11) and iTunes (up to v10+) do 436 452 not correctly handle ID3v2.3 tags with UTF-16BE+BOM … … 452 468 * Oggenc 0.9-rc3 flags the encoded file as ABR whether it's 453 469 actually ABR or VBR. 470 * iTunes (versions "v7.0.0.70" is known-guilty, probably 471 other versions are too) writes ID3v2.3 comment tags using an 472 ID3v2.2 frame name (3-bytes) null-padded to 4 bytes which is 473 not valid for ID3v2.3+ 474 (detected by getID3() since 1.9.12-201603221746) 454 475 * iTunes (versions "X v2.0.3", "v3.0.1" are known-guilty, probably 455 476 other versions are too) writes ID3v2.3 comment tags using a … … 603 624 * http://wyday.com/cuesharp/specification.php 604 625 * http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Nikon.html 626 * http://www.codeproject.com/Articles/8295/MPEG-Audio-Frame-Header 627 * http://dsd-guide.com/sites/default/files/white-papers/DSFFileFormatSpec_E.pdf
Note: See TracChangeset
for help on using the changeset viewer.