changelog.txt 137 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695
  1. /////////////////////////////////////////////////////////////////
  2. /// getID3() by James Heinrich <info@getid3.org> //
  3. // available at http://getid3.sourceforge.net //
  4. // or http://www.getid3.org //
  5. /////////////////////////////////////////////////////////////////
  6. // //
  7. // changelog.txt - part of getID3() //
  8. // See readme.txt for more details //
  9. // ///
  10. /////////////////////////////////////////////////////////////////
  11. » denotes a major feature addition/change
  12. ¤ denotes a change in the returned structure
  13. ! denotes a cry for help from developers
  14. * Bugfix: denotes a fixed bug
  15. Version History
  16. ===============
  17. 1.9.3: [2012-12-13] Dmitry Arkhipov, James Heinrich
  18. * Matroska module improved:
  19. 1. Added support for A_MS/ACM audio codec
  20. 2. Fixed issues in tags, cues, chapters and clusters parsing
  21. 3. Fixed almost all errors with track_data_offset, errors
  22. still may occur with Xiph data lacing
  23. 4. Optimized audio/video streams population with usage of the
  24. official default values for missing elements
  25. 5. Audio/video keys are now populated with data from the
  26. default stream, not from the first one as before
  27. 6. Full WebM support
  28. * Bugfix: demo.browse would not pop up warnings when clicked
  29. if warning contains apostrophe/single-quote character
  30. * Bugfix: (#1269) ID3v1 genre typo "Trash"->"Thrash" Metal
  31. 1.9.2: [2011-12-08] James Heinrich, Dmitry Arkhipov
  32. » significant rewrite to module.audio-video.matroska.php
  33. ¤ (#1256) ID3 tags in AIFF 'ID3 ' chunks now parsed
  34. ¤ (#1039) iXML data in WAV files now returned and parsed into
  35. [riff][WAVE][iXML][0][data] and [riff][WAVE][iXML][0][parsed]
  36. ¤ [playtime_string] now returns M:SS if less than 1 hour, and
  37. H:MM:SS if 1 hour or longer
  38. * Bugfix: (#1266) variable tablename: extension.cache.mysql.php
  39. * Bugfix: (#1265) unescaped # in regex in write.id3v2.php
  40. * Bugfix: (#1252) MediaMonkey writes blank ID3v2 RGAD frames
  41. and puts replay-gain values in TXXX frames
  42. * Bugfix: (#1251) FLV playtime could be inaccurate for longer
  43. files where meta frame is present but meta-playtime is zero
  44. * Bugfix: (#1216) show hex values of unknown atom names
  45. * Bugfix: (#1215) undefined variable in PrintHexBytes()
  46. * Bugfix: FLV audio bitrate was returning kbps not bps
  47. * Bugfix: missing ) in write.real.php::RemoveReal()
  48. * Bugfix: replace $this::VERSION with getID3::VERSION in
  49. extension.cache.*.php
  50. 1.9.1: [2011-08-10] James Heinrich
  51. ¤ ASF Extended Header Object data now (partially) parsed
  52. * Default getID3 encoding now set to UTF-8 not ISO-8859-1
  53. * Bugfix: (#1212) truncated Matroska files may result in
  54. infinite loop and memory exhaustion
  55. * Bugfix: (#1203) parse RIFF JUNK chunks for version strings
  56. * Bugfix: (#1201) multi-byte characters strings incorrectly
  57. displayed by table_var_dump() in demo.browse.php
  58. * Bugfix: (#1199) prevent PHP warning on malformed ID3v2 APIC
  59. * Bugfix: (#1196) typo in module.audio-video.quicktime.php
  60. * Bugfix: (#1195) QuicktimeStoreFrontCodeLookup() broken
  61. * Bugfix: (#1194) mp4 embedded images not handled correctly
  62. * Bugfix: (#1193) [image_mime] key not set fo WM/picture data
  63. * Bugfix: (#1193) ASF Extended Header Object Metadata Library
  64. now parsed for embedded images and handled per usual style
  65. * Bugfix: (#1190) demo.mimeonly.php was broken since v1.9.0
  66. * Bugfix: ID3v2 comment is now called 'comment' not 'comments'
  67. * Bugfix: AVI unknown codec fourcc would be reported as blank
  68. * Bugfix: AVI zero-size JUNK chunk would give warning
  69. 1.9.0: [2011-06-20] James Heinrich
  70. » changed all module classes to have proper constructors
  71. with the actual analysis code moved to function Analyze()
  72. * removed unnecessary ob_* calls, replaced with appropriate
  73. checks and judicious use of @ error suppression
  74. ¤ GETID3_VERSION constant replaced with $getID3->version()
  75. ¤ picture data is now returned only in the original source
  76. location and [comments][picture], it is no longer replicated
  77. in [comments_html], [tags] or [tags_html]
  78. ¤ Matroska tags are now returned in [comments] as per normal
  79. ¤ Matroska tags are better supported, including pictures
  80. ¤ GPS data in MP4 files (e.g. iPhone) is now parsed (#1157)
  81. ¤ Matroska audio/video tracks with a default flag, the default
  82. stream flag is now copied to [audio|video][streams] (#1147)
  83. ¤ Nikon-specific data (NCDT atom) in Quicktime videos now parsed
  84. ¤ QuickTime atoms 'meta' and 'data' now (mostly) parsed
  85. * Bugfix: remove false warning of junk data on WAV+ID3v1
  86. * Bugfix: DolbyDigitalWAV files returned wrong audio bitrate
  87. * Bugfix: large attachment data in Matroska tags were not
  88. returned completely.
  89. * Bugfix: wrong image_mime used for images in demo.browse.php
  90. * Bugfix: broken preg_match in module.audio.dss.php
  91. * Bugfix: Lyrics3 end offset was off by 1
  92. * Bugfix: audio channelmode could be wrong for 2 channels
  93. (e.g. joint stereo reported as stereo)
  94. * Bugfix: MultiByteCharString2HTML() would return empty string
  95. if passed float or int value, now casts to string first
  96. * Bugfix: FLAC.picture was not returning under [data] +
  97. [image_mime] per standardized format
  98. * Bugfix: BigEndian2Int() could incorrectly return negative
  99. signed synchsafe integer instead of casting to float
  100. * Bugfix: (#1177) ID3v2.4 extended headers were broken
  101. * Bugfix: (#1173) some MIDI files not completely parsed
  102. * Bugfix: (#1171) change helperapps error to nonblocking warning
  103. * Bugfix: (#1170) possible infinite loop in FLV module
  104. * Bugfix: (#1169) $this reference in static function (ID3v2)
  105. * Bugfix: (#1156) demo.mysql.php not working
  106. * Bugfix: (#1153) badly-tagged files could produce invalid
  107. argument errors in module.tag.xmp.php
  108. * Bugfix: (#1152) add error-suppression to iconv() calls
  109. * Bugfix: (#1151) AAC-ADTS files could sometimes not find sync
  110. * Bugfix: (#1136) last character of unicode tags (e.g. ASF)
  111. was being truncated
  112. * Bugfix: (#1133) write.id3v2.php IsValidURL() was broken
  113. * Bugfix: (#1126) ID3v2.POPM field was being clobbered
  114. * Bugfix: (#999, #1154) ID3v2 UFID data was missing
  115. 1.8.5: [2011-02-18] James Heinrich
  116. » support >2GB files on 64-bit PHP
  117. - note current unofficial 64-bit PHP builds for Windows
  118. do not actually support 64-bit integers so are still
  119. subject to normal 32-bit limits (2GB) for file functions
  120. » PHP v5.0.5 now minimum required version.
  121. Removed obsolte functions from getid3.lib.php:
  122. md5_file, sha1_file, image_type_to_mime_type
  123. » IDivX tags now parsed on AVI files
  124. ¤ embedded image data is returned inside [comments][picture]
  125. in a 2-element array (data, image_mime) for all formats
  126. * $this->overwrite_tags=false is now known to be buggy and
  127. has been disabled for this version until a full review
  128. of tag writing can be completed. Certainly affects ID3v2,
  129. the other writable tag formats may or may not be broken
  130. * getID3 constructor no longer checks for (or sets) timezone
  131. * demo.browse.php now shows cover art as inline images
  132. rather than dumped to separate files
  133. * [audio][streams][x][language] now set when known
  134. * Bugfix: RIFF-AVI "JUNK" chunks are now parsed properly,
  135. including zero-sized ones (no more false errors)
  136. * Bugfix: msoffice documents now return correct error message
  137. * Bugfix: demo.browse.php now encodes data according to
  138. current page encoding (default=UTF-8)
  139. * Bugfix: (#1120) sometimes incorrect ID3v2 genre parsing
  140. * Bugfix: (#1116) possibly incorrect warnings (or lack of)
  141. for RIFFs > 2GB.
  142. * Bugfix: (#1115) wrong RIFFtype in RIFF files
  143. * Bugfix: (#1114) wrong MIME type may be set for Matroska
  144. * Bugfix: (#1113) support DSS v3 files
  145. * Bugfix: (#1111) cover art in APE tags now supported
  146. * Bugfix: (#1091) RemoveID3v1() unitialized variables
  147. * Bugfix: (# 504) do not set Quicktime resolution if
  148. 'tkhd' atom is disabled
  149. * Bugfix: (# 95) return [quicktime][controller] if known
  150. 1.8.4: [2011-02-03] James Heinrich
  151. * change default encoding in ID3v2 writing to UTF16-LE+BOM
  152. (or ISO-8859-1 where possible) for better compatability
  153. with broken versions of Windows Media Player and iTunes
  154. * Bugfix: [FLV] incorrect overall bitrate in some files
  155. * Bugfix: (#1102) missing parentheses in write[.id3v2].php
  156. * Bugfix: (#510) undefined IsValidDottedIP() in write.id3v2.php
  157. 1.8.3: [2011-01-18] James Heinrich
  158. » magic_quotes_gpc must now be disabled to use getID3
  159. » replace all error-suppressing @$variable calls with
  160. isset() or empty() as appropriate for some configurations
  161. where @ does not act to suppress warnings of undefined
  162. variables (e.g. support forum thread #798)
  163. * remove SafeStripSlashes() and FixTextFields functions
  164. * [quicktime] use fourcc if codec name zero-length
  165. * [quicktime] support "iods" atom
  166. * Bugfix: (#1099) sometimes incorrect detection of safe_mode
  167. * Bugfix: (#1095) more robust setting of temp dir
  168. * Bugfix: (#1093) add support for ClusterSimpleBlock to
  169. prevent "Undefined index: track_data_offsets" errors
  170. in Matroska files
  171. * Bugfix: [riff] prevent errors when RIFF.WAVE.BEXT chunk
  172. contains null date/time (thanks moysevichØgmail*com)
  173. * Bugfix: [quicktime] prevent divide-by-zero errors if
  174. time_to_sample_table has zero-sample entry
  175. (thanks moysevichØgmail*com)
  176. 1.8.2: [2010-12-06] James Heinrich
  177. * include startup warning for PHP < v5
  178. * magic_quotes_runtime must now be disabled to use getID3
  179. ¤ MusicBrainz / AmpliFIND data more accessible in returned data
  180. from Quicktime-style files (e.g. MP4/AAC)
  181. * Bugfix: (#1079) wrong encoding might be used for ID3v2
  182. text data, and/or garbage data prepended before text
  183. data; DataLengthIndicator value was being ignored
  184. * Bugfix: (#1055) clearer warnings on non-EXIF contents in
  185. JPEG [APP1]
  186. * Bugfix: (#999) ID3v2 UFID data was missing
  187. 1.8.1: [2010-11-25] James Heinrich
  188. * replaced calls to deprecated mysql_escape_string() with
  189. mysql_real_escape_string()
  190. * Bugfix: (#1072) memory limit not handled correctly if
  191. in gigabytes in php.ini (e.g. "2G")
  192. * Bugfix: (#1068) wrong encoding for Quicktime tags
  193. * Bugfix: (#1040) possible infinite loop in genre parsing
  194. * Bugfix: (#1036) helperapps directory not resolving 8.3
  195. path names correctly
  196. * Bugfix: (#1023) dbm cache extension not correctly handling
  197. types other than "db3"
  198. * Bugfix: (#1023) mysql cache extension now base64_encodes
  199. data to make binary-safe. Existing cached data must be
  200. purged from your database cache
  201. * Bugfix: (#1007) ClosestStandardMP3Bitrate() not selecting
  202. most appropriate value
  203. * Bugfix: (#996) inefficient and buggy ID3v1 and ID3v2
  204. genre parsing
  205. * Bugfix: (#974) track number handled incorrectly in
  206. demo.write.php
  207. * Bugfix: (#969) tempnam() calls failing with open_basedir
  208. * Bugfix: (#955) UTF-16LE text files could be falsely
  209. identified as corrupt mp3 files
  210. * Bugfix: (#877) detect if mbstring.func_overload is set in php.ini
  211. * Bugfix: (#858) PHP safe_mode setting in php.ini incorrectly
  212. handled if set to "Off"
  213. * Bugfix: (#838) prevent warnings with assorted unhandled
  214. Quicktime atoms
  215. 1.8.0: [2010-11-23] James Heinrich
  216. » Changes required for PHP v5.3+ compatability, including:
  217. - change ereg* functions to preg_* equivalents
  218. - declare functions static as needed
  219. note: users of PHP v4.x may need to stay with getID3 v1.7.x
  220. » Added CUE (cuesheet) support
  221. new file: module.misc.cue.php
  222. (thanks Nigel Barnes ngbarnesØhotmail*com)
  223. » Added XMP (Adobe Extensible Metadata Platform) support
  224. currently used with module.graphic.jpg.php
  225. new file: module.tag.xmp.php
  226. (thanks Nigel Barnes ngbarnesØhotmail*com)
  227. ¤ [jpg][exif][GPS][computed] now exists when possible with
  228. calculated values (decimal latitude, longitude, altitude, time)
  229. ¤ Prevent clobbering WMA artist with albumartist value; added WMA
  230. partofset tag; added WMA tag picture data to WMA comments
  231. (thanks ngbarnesØhotmail*com)
  232. ¤ RIFF.WAVE.SNDM (SoundMiner) metadata now parsed
  233. (thanks emerrittØwbgu*bgsu*edu)
  234. ¤ FLAC embedded pictures now return [data_length] key
  235. (thanks darrenburnhillØhotmail*com)
  236. * added support for a number of new comment atom types added in
  237. iTunes v4.0-v7.0 (thanks ngbarnesØhotmail*com)
  238. * demo.browse.php now shows video resolution and framerate (if no
  239. artist or title info present)
  240. * additional FLV details parsed, may be faster as well
  241. (thanks ngbarnesØhotmail*com)
  242. * Bugfix: DSS files longer than 60 seconds had wrong playtime
  243. * Bugfix: possible empty array encountered in APE tags
  244. (thanks csnaitsirchØweb*de)
  245. * Bugfix: prevent fatal error when calling BigEndian2Int() on
  246. zero-length string (thanks taylor*fausakØgmail*com)
  247. * Bugfix: prevent errors when parsing invalid Vorbis comments
  248. (thanks dr*dieselØgmail*com)
  249. * Bugfix: files could not be analyzed from Windows shares
  250. (e.g. \\SERVER\Directory\Filename.mp3)
  251. * Bugfix: RAR file opening should use 'filenamepath'
  252. (thanks adrien*gibratØgmail*com)
  253. * Bugfix: [asf][codec_list_object][codec_entries][x][description]
  254. not containing expected comma-seperated values no longer aborts
  255. (thanks larry_globusØyahoo*com)
  256. * Bugfix: [id3v2] UFID was not returning data
  257. (thanks joostØdecock*org)
  258. 1.7.9: [2009-03-08] James Heinrich
  259. » Added DSS (Digital Speech Standard) support
  260. new file: module.audio.dss.php
  261. (thanks luke*wilkinsØdtsam*com)
  262. » Added MPC (Musepack) SV8 support
  263. (thanks WaldoMonster)
  264. ¤ some MPC [header] keys renamed to be the same between SV7/SV8
  265. ¤ start aligning demos CSS styling with v2.x styles
  266. new file: demos/getid3.css
  267. ¤ JPEG now returns parsed IPTC tags in [iptc]
  268. ¤ getid3_lib::GetDataImageSize now requires $imageinfo parameter
  269. ¤ better support for Matroska files with AC3/DTS/MP3/OGG audio
  270. (support still lacking for AAC)
  271. ¤ standardize ID3v2 TCMP key to 'part_of_a_set' between reading
  272. and writing (thanks aaron_stormØyahoo*com)
  273. ¤ added ID3v2 keys 'TCMP','TCP' to for writing iTunes-style tags
  274. (thanks aaron_stormØyahoo*com)
  275. ¤ back-ported PICTURE tag handling in FLAC tags
  276. (thanks WaldoMonster)
  277. ¤ added alternate method to get [video][frame_rate] from QuickTime
  278. * added partial support for "TCMP"/"TCP" ID3v2 frames (iTunes
  279. non-standard part-of-a-compilation tag)
  280. (thanks aaron_stormØyahoo*com)
  281. * slightly improved scanning through FLV files speed
  282. (thanks franki)
  283. * faster Matroska scanning by stopping at cluster chunks once
  284. needed header chunks are found (much faster for large files)
  285. * added workaround for broken tagging programs that miss terminating
  286. null byte for numeric ID3v2.4 genres
  287. (thanks yam655Øgmail*com)
  288. * Bugfix: MultiByteCharString2HTML() did not escape common HTML
  289. special characters like & and ?
  290. * Bugfix: cleaned up some malformed HTML errors in demo.browse.php
  291. * Bugfix: under Windows files >2GB might not be processed due to
  292. "dir" command not finding file with double directory slashes
  293. * Bugfix: "MODule (assorted sub-formats)" was falsely matching
  294. some random files (e.g. JPEGs) (thanks qwertywin)
  295. * Bugfix: suppress PHP_notice on failed SWF-compressed
  296. decompression failure (thanks mkron)
  297. 1.7.8b3: [2008-07-13] James Heinrich
  298. » Experimental partial support for files > 2GB (gets filesize
  299. from shell call to "dir" or "ls", parse files with PHP only
  300. up to 2GB limit). See readme.txt for details on what formats
  301. work properly and other limitations
  302. » Initial support for Matroska. Has only been tested with a
  303. limited number of sample files, please report any bugs
  304. » Experimental support for PHP-RAR reading. Known buggy, disabled
  305. by default, enable with care
  306. ¤ getid3_lib::CastAsInt() now returns ints up to 2^31 (not 2^30)
  307. ¤ Quicktime: [video] now returns [frame_rate] and [fourcc] for MP4
  308. video files
  309. * MP3: headerless VBR files now only have up to 10 blocks of 5000
  310. frames each scanned by default and bitrate extrapolated from that
  311. distribution for speed (thanks glau*stuffØridiculousprods*com)
  312. * Quicktime: support "co64" atom
  313. * SWF: lower memory use when compressed SWF files processed
  314. (thanks doughammondØblueyonder*co*uk)
  315. * Bugfix: FLV height and width was calculated incorrectly
  316. (thanks moysevichØgmail*com)
  317. * Bugfix: FLV GETID3_FLV_TAG_META parsed incorrectly
  318. (thanks moysevichØgmail*com)
  319. * Bugfix: Quicktime: 'tkhd' matrix_v and matrix_d were switched
  320. (thanks rjjmoroØhotmail*com)
  321. * Bugfix: Quicktime: frame_rate was often incorrect for MP4 video
  322. * Bugfix: getid3_lib::CastAsInt returned -2147483648 when passed
  323. 2147483648 (0x80000000)
  324. 1.7.8b2: [2007-10-15] James Heinrich, Allan Hansen
  325. * Video bitrate now calculated even if not explicitly stated in
  326. file metadata, but if overall and audio bitrates are known
  327. * Bugfix: 'comments_html' missing last letter in id3v2 tags.
  328. * Bugfix: module objects (e.g. getid3_riff) that are instantiated
  329. in other modules are explicitly disposed once no longer needed.
  330. * Bugfix: some AVI files were not returning audio information
  331. because "strh" chunk was not being read in
  332. * Bugfix: asf [audio][<streamnumber>][dataformat] should be set
  333. to "wma" but wasn't
  334. * Bugfix: [mpeg][audio][bitrate_mode] should always be one of
  335. ("cbr", "vbr", "abr") but wasn't for some values in
  336. LAMEvbrMethodLookup()
  337. * Bugfix: MP3 audio in AVI files could show "cbr" instead of
  338. correct audio bitrate_mode, and audio bitrate could be slightly
  339. incorrect if multiple files were scanned in a loop (scanning
  340. single files produced correct values).
  341. * Bugfix: remove [audio/video][bitrate] key if falsely set to zero
  342. * Bugfix: PlaytimeString returned non-matching value for negative
  343. playtimes (which shouldn't happen either, but now they're at
  344. least shown correctly, if they happen due to other bugs)
  345. * Bugfix: Several ASF header values are invalid if the broadcast
  346. flag is set, getID3() now calculates these values in other
  347. ways if the broadcast flag is set (thanks fletchØpobox*com)
  348. * Bugfix: lyrics3-flags-lyrics field was always false, and there
  349. never was a lyrics3-flags-timestamp field present even though
  350. the lyrics3-raw-IND field consisted of "10" (lyrics present,
  351. timestamp not present). (thanks i*f*schulzØweb*de)
  352. * Bugfix: TAR.GZ files produce PHP errors when
  353. option_gzip_parse_contents == true in module.archive.gzip.php
  354. (thanks alan*harderØsun*com)
  355. 1.7.8b1: [2007-01-08] Allan Hansen
  356. » Major update to readme.txt
  357. » PHP 4.2.0 required
  358. » Tagwriter requires metaflac 1.1.1+ in order to write FLAC tags.
  359. » Removed broken and non-fixable tagwriting module for real format.
  360. ! Developers please help fix the above module:
  361. http://www.getid3.org/phpBB3/viewtopic.php?t=677
  362. » Avoided security issues with demo.browse.php, demo.write.php and
  363. demo.mysql.php. These demos are now disabled by default and has
  364. to be enabled in the source.
  365. * Bugfix: id3v2 genre broken since 1.7.7.
  366. » Added DTS module (module.audio.dts.php)
  367. ¤ ASF/WMV files now return largest video stream dimensions in
  368. [video][resolution_x] and [video][resolution_y]
  369. * Bugfix: Minor issues with midi module (avoid PHP_NOTICE).
  370. * Bugfix: Minor issues with lyrics3 (avoid PHP_NOTICE).
  371. * Bugfix: PHP_NOTICE issues in MultiByteCharString2HTML()
  372. * Bugfix: PHP_NOTICE issue in BigEndian2Float()
  373. * Bugfix: fread() zero bytes issue in real module.
  374. * Bugfix: ASF module returned mime type video/x-ms-wma instead of
  375. video/x-ms-wmv for certain FourCCs.
  376. * Bugfix: PHP_NOTICE issues with broken ID3v2 tag/garbage.
  377. * Bugfix: PNG module broken in regards to gIFg and gIFx chunks.
  378. » Removed detection of short filenames 8dot3 under windows, as
  379. it only worked for English versions of windows and has other
  380. problems.
  381. * Bugfix: Some CBR MP3 files detected as VBR with plenty of warnings.
  382. * Bugfix: PHP_NOTICE issues in MP3 module.
  383. * Bugfix: Quicktime returned incorrect frame rate.
  384. * Bugfix: DivByZero on zero length FLV files.
  385. * Bugfix: PHP_NOTICE one some FLV files.
  386. * Bugfix: ID3v2 UTF-8/16 encoded frames terminated by \x00
  387. * Bugfix: ID3v2 LINK frames iconv error.
  388. * Bugfix: ID3v2 padding length calculated incorrectly.
  389. * Bugfix: ID3v2.3 extended headers non-conformance
  390. » SVG file detection.
  391. » Added SVG user module (user_modules/module.graphic.svg.php).
  392. Thanks to Roan Horning.
  393. » PAR2 file detection (no parsing)
  394. * Bugfix: Wave files being detected as MP3.
  395. * Bugfix: ASF padding offset bug.
  396. * Bugfix: Shorten module not working for wav files with fmt
  397. chunks <> 16 bytes.
  398. ¤ RIFF: Zero sized chunk invokes warning instead of error.
  399. ¤ FLAC: Removed some ['raw'] keys.
  400. ¤ MPC: Mime type returned: audio/x-musepack
  401. 1.7.7: [2006-06-25] Allan Hansen
  402. * Bugfix: AAC static bitrate cache wrong result when parsing
  403. several files.
  404. * Bugfix: Do not return NULL video bitrate for ASF v3.
  405. * Bugfix: getid3_lib::GetImageSize() broken => JPG module broken.
  406. * Bugfix: Encoder options should now be returned with correct
  407. "--alt-preset n" / "--alt-preset cbr n" when scanning more files.
  408. * Bugfix: Shorten module not escapeshellarg() filenames (UNIX only).
  409. * Bugfix: Filenames not escapeshellarg() for md5_data and
  410. sha1_data (UNIX only).
  411. * Bugfix: UNIX: head and tail called with -cNNN instead of "-c NNN".
  412. » Added detection support for PDF and MS Office documents
  413. (*.doc, *.xls, *.pps, etc) (thanks zeromassmediaØgmail*com)
  414. ¤ Bugfix: ID3v2 "TDRC" frame now used as "year" in comments if TYER
  415. unavailable (TYER is deprecated in ID3v2.4)
  416. (thanks matthiasØpanczyk*org)
  417. ¤ Removed GETID3_OS_DIRSLASH, replaced with DIRECTORY_SEPARATOR
  418. * Bugfix: added LAME preset guessing for presets 410,420,440,490
  419. (thanks adminØlogbud*com)
  420. * Bugfix: Added escapeshellarg() call in getid3_lib::hash_data
  421. (thanks towbØgmx*net)
  422. » TAR module no longer reads entire file into memory
  423. » FLV module no longer reads entire file into memory
  424. * Bugfix: added LAME preset guessing for presets 410,420,440,490
  425. (thanks adminØlogbud*com)
  426. * Bugfix: Added escapeshellarg() call in getid3_lib::hash_data
  427. (thanks towbØgmx*net)
  428. * Bugfix: Error message when padding in FLAC files were used up.
  429. * Bugfix: Shorten module not working under windows.
  430. ¤ Bugfix: gmmktime() instead of mktime().
  431. ¤ Using gmmktime() instead of mktime() in ISO, ZIP, PNG and RIFF
  432. modules to avoid E_STRICT notices with PHP5.1+.
  433. * Bugfix: ['comments_html'] and ['comments'] contains different
  434. value when having multiple tags (one of them ID3v1) and the
  435. long field names.
  436. 1.7.6: [2006-03-12] James Heinrich
  437. * Rewrote getid3_lib::GetDataImageSize() to use GetImageSize()
  438. instead of using code by filØrezox*com
  439. * Bugfix: incorrect dimensions from disabled Quicktime tracks
  440. (thanks m-1Øgmx*net)
  441. * Bugfix: ['codec'] key warning in module.audio-video.asf.php
  442. (thanks niel*archerØblueyonder*co*uk)
  443. * Bugfix: undefined array in write.php
  444. (thanks drewishØkatherinehouse*com)
  445. * Bugfix: DeleteAPEtag() incorrectly failing when no tag present
  446. (thanks drewishØkatherinehouse*com)
  447. * Bugfix: ID3v2 writing frames with URL fields failing when URL
  448. is not in ISO-8859-1 (thanks drewishØkatherinehouse*com)
  449. * Bugfix: PHP notices on bad ID3v2 frames
  450. (thanks cw264701Øohiou*edu)
  451. * Bugfix: audio & video bitrates sometimes wrong in ASF files
  452. (thanks kris_kauperØexcite*com)
  453. 1.7.5: [2005-12-29] James Heinrich
  454. » Added FLV (FLash Video) support -- new file:
  455. module.audio-video.flv.php
  456. (thanks Seth Kaufman <seth@whirl-i-gig.com> for code)
  457. » Real tags can now be written (previous Real tag writing
  458. code was not supposed to be in public releases, as it
  459. was not complete)
  460. » GETID3_HELPERAPPSDIR now autodetected under Windows
  461. ¤ ASF lyrics now returned under [comments][lyrics]
  462. * Bugfix: removed "--lowpass xxxxx" info from guessed
  463. LAME presets when source frequency <= 32kHz
  464. * Bugfix: ID3v2 extended header errors
  465. * Bugfix: missing ob_end_clean() in write.id3v2.php
  466. (thanks rasherØgmail*com)
  467. 1.7.4: [2005-05-04] James Heinrich
  468. ¤ Added ['quicktime']['hinting'] key (boolean)
  469. (thanks jonØwebignition*net)
  470. * Bugfix: major UTF-8 to UTF-16/ISO-8859-1 conversion
  471. bug (empty string returned) when using iconv_fallback
  472. (thanks chrisØfmgp*com)
  473. * Bugfix: Missing 'lossless' key in RIFF-WAV
  474. (thanks bobbfwedØcomcast*net)
  475. 1.7.3: [2005-04-22] James Heinrich
  476. » Added TAR support -- new file: module.archive.tar.php
  477. (thanks Mike Mozolin <teddybearØmail*ru> for code!)
  478. » Added GZIP support -- new file: module.archive.gzip.php
  479. (thanks Mike Mozolin <teddybearØmail*ru> for code!)
  480. * Bugfix: demo.browse.php now displays embedded images
  481. internally instead of passing local filename as IMG
  482. SRC (should allow demo.browse.php to correctly show
  483. embedded images over a network)
  484. (thanks patpowermanØhotmail*com)
  485. * Bugfix: minor UTF-8 display issues in demo.browse.php
  486. * Bugfix: demo.browse.php now works even if the evil
  487. setting magic_quotes_gpc is turned on
  488. (thanks patpowermanØhotmail*com)
  489. * Bugfix: incorrect MIDI playtime for some files
  490. (thanks joelØoneporpoise*com)
  491. * Bugfix: 'url_source' typo in module.tag.id3v2.php
  492. (thanks richardlynchØusers*sourceforge*net)
  493. * Bugfix: Quicktime 'mvhd' matrix values were wrong
  494. (thanks webØbobbymac*net)
  495. ¤ ID3v2 now returns xx/yy for ['track'] (if
  496. available), with xx in ['tracknum'] and yy in
  497. ['totaltracks']. Previously ['tracknum'] was not
  498. available and ['track'] had only xx.
  499. Bugfixes and improvements to /demo/demo.mysql.php:
  500. - remix/version parsed from tags and stored in
  501. database, can be used when renaming files
  502. - track number can be used for renaming files
  503. 1.7.2: [2004-10-18] Allan Hansen
  504. » Added support for WavPack v4.0+
  505. (thanks ahØartemis*dk)
  506. » Removed code for parsing EXE files
  507. (thanks ahØartemis*dk)
  508. Removed file: module.misc.exe.php
  509. * Bugfix: Large ID3v2 tags inside ASF not parsed
  510. properly under PHP5.
  511. * Bugfix: Certain Wavpack3 files failed under PHP5 due
  512. to new undocumented tmpfile() limit (same problem as
  513. above).
  514. * Bugfix: New iTunes crashes PHP - temp fix - no tags
  515. on those files.
  516. * Bugfix: ['nsv']['NSVs']['framerate_index'] might be
  517. wrong (thanks ahØartemis*dk)
  518. * Bugfix: transparent color was wrong from truecolor
  519. PNG (thanks ahØartemis*dk)
  520. * Bugfix: Changed MPC SV7 header size from 30 to 28,
  521. this will change hash values for MPC files
  522. (thanks ahØartemis*dk)
  523. * Bugfix: Changed MPC SV4-6 header size from 28 to 8,
  524. this will change hash values for MPC files
  525. (thanks ahØartemis*dk)
  526. ¤ Trim/unset wavpack encoder_options to match 2.0.0b2
  527. output.
  528. ¤ Commented-out unknown/unused values in NSV and ISO
  529. modules (thanks ahØartemis*dk)
  530. 1.7.1b1: [July-26-2004] James Heinrich
  531. » Added support for Apple Lossless Audio Codec
  532. » Added support for RealAudio Lossless
  533. » Added support for TTA v3
  534. » Added support for TIFF
  535. New file: /getid3/module.graphic.tiff.php
  536. » Modified iconv_fallback to work with UTF-8, UTF-16, UTF-16LE,
  537. UTF-16BE and ISO-8859-1 even if iconv() and/or XML support is
  538. not available. This means that iconv() is no longer required
  539. for most users of getID3()
  540. (thanks Jeremia, khleeØbitpass*com)
  541. » Added support for Monkey's Audio v3.98+ (thanks ahØartemis*dk)
  542. » Included new demo showing most-basic getID3() usage
  543. New file: /demos/demo.basic.php
  544. * Bugfix: LAME3.94+ presets cached incorrectly if multiple files
  545. are scanned in one batch and first file is LAME3.93 or earlier
  546. (thanks enoyandØyahoo*com)
  547. * Bugfix: Added warning if compressed ID3v2 frame decompression
  548. fails. (thanks Mike Billings)
  549. * Bugfix: Assorted small fixes to ensure compatability with PHP5
  550. * Bugfix: ID3v1 genre "Blues" could not be written
  551. (thanks Jeremia)
  552. * Bugfix: ['bitrate_mode'] typo in module.audio-video.real.php
  553. (thanks asukakenjiØusers*sourceforge*net)
  554. * Bugfix: ['zip']['files'] is now populated with filenames even
  555. if End Of Central Directory couldn't be parsed
  556. * Bugfix: ['audio']['lossless'] was incorrect for FLAC
  557. (thanks WaldoMonster)
  558. * Bugfix: MD5 File was incorrect in directory browse mode for
  559. /demo/getid3.browse.php
  560. * Bugfix: PHP v5 compatability changes (float array keys, fread()
  561. calls with zero data length)
  562. (thanks getid3Øjsc*pp*ru)
  563. * Bugfix: was dying if on compressed ID3v2 frames if
  564. gzuncompress() function was unavailable
  565. * Bugfix: ['vqf']['COMM'] was always empty
  566. * Bugfix: MIDI playtime was missing for single-track MIDI files
  567. * Bugfix: removed &#0; characters from ['comments_html']
  568. (thanks p*quaedackersØplanet*nl)
  569. * Bugfix: improved MIDI playtime accuracy
  570. (thanks joelØoneporpoise*com)
  571. * Bugfix: BMP subtypes 4 and 5 were not being identified
  572. * Bugfix: frame_rate in AVI was incorrectly truncated to integer
  573. * Bugfix: FLAC cuesheet track index was incorrect
  574. (thanks tetsuo*yokozukaØoperamail*com)
  575. ¤ ['quicktime']['display_scale'] now contains the playback scale
  576. multiplier for QuickTime movies - a movie set to playback at
  577. double-size will have "2" here. Other values are "1" and "0.5"
  578. ¤ Added LAME preset guessing for --preset medium with v3.90.3
  579. (thanks phwipØfish*co*uk)
  580. ¤ Added $encoding_id3v1 to allow for ID3v1 encodings other than
  581. the standard ISO-8859-1
  582. ¤ Default AVI video bitrate_mode is now 'vbr'
  583. (thanks eltoderØpisem*net)
  584. Force getID3() to abort if Shorten files have ID3 or APE tags
  585. (thanks ahØartemis*dk)
  586. Editable textbox for parent directory in demo.browse.php
  587. (thanks eltoderØpisem*net)
  588. 1.7.0-hotfix [2004-03-17] Allan Hansen
  589. (hotfix version released by Allan Hansen)
  590. * Bugfix: PHP 4.1.x compatiblity - fgets($fp) => fgets($fp, 1024)
  591. * Bugfix: Added default charset to TextEncodingNameLookup() in
  592. module.tag.id3v2.php
  593. Ø Removed option_no_iconv
  594. iconv() support is only a requirement for WMA/WMW/ASF, and for
  595. destination encodings other than ISO-8859-1 and UTF-8, iconv is
  596. not needed otherwise. New 'iconv_req' in GetFileFormatArray()
  597. only set for WMA/WMV/ASF. analyze() now refuses to analyse
  598. WMA/ASF file if iconv is not present.
  599. iconv_fallback() only dies on internal errors not missing iconv()
  600. 1.7.0: [January-19-2004] James Heinrich
  601. » Added support for RIFF/CDXA files (MPEG video in RIFF container
  602. format (thanks chrisØdigitekdesign*com)
  603. » Added support for TTA v2 (thanks ahØartemis*dk)
  604. ¤ ID3v2 unsynchronisation scheme disabled by default because most
  605. tag-reading programs cannot read unsynchronised tags. Can be
  606. overridden by setting id3v2_use_unsynchronisation to true.
  607. (thanks mikeØdelusion*org)
  608. ¤ extention.*.php renamed to extension.*.php
  609. (thanks tp62Øcornell*edu)
  610. ¤ /demo/demo.check.php renamed to /demo/demo.browse.php
  611. ¤ Added id3v2_paddedlength configuration parameter to WriteTags()
  612. and renamed tag_language to id3v2_tag_language
  613. ¤ MPEG audio layers are now represented as 1, 2 or 3 instead of
  614. 'I', 'II', or 'III'
  615. ¤ Added [audio][wformattag] and [video][fourcc] for WAV and AVI
  616. ¤ Added [audio][streams] which contains one entry for each audio
  617. stream present in the file (usually only one). The data is a
  618. copy of what is usually found in [audio]. If there are multiple
  619. audio streams then [audio] will contain a sum of the bitrates
  620. of all audio streams, and the data format of the first stream
  621. (if streams are of different data types)
  622. ¤ Added BruteForce mode to mp3 scanning. Disabled by default as
  623. it is extremely slow and only files that are broken enough to
  624. not really play will gain any benefit from this.
  625. ¤ Suppress '--resample xxxxx' appended to encoder options for mp3
  626. with low-quality presets for default sampling frequencies
  627. ¤ Enhanced LAME preset guessing for pre-3.93 with a better lookup
  628. table, --resample/--lowpass guessing (thanks phwipØfish*co*uk)
  629. ¤ RIFF files with non-MP3 contents no longer have
  630. [audio][encoder_options] set
  631. ¤ Added [audio][encoder_options] to audio formats where possible
  632. (including LiteWave, LPAC, OptimFROG, TTA)
  633. ¤ Moved [quantization] and [max_prediction_order] from
  634. [lpac][flags] to just [lpac]
  635. ¤ WavPack flags are now parsed into [wavpack][flags]
  636. * Bugfix: APEtags with ReplayGain information stored with comma-
  637. seperated decimal values (ie "0,95" instead of "0.95") were
  638. giving wrong peak and gain values
  639. * Bugfix: Filesize > 2GB not always detected correctly
  640. * Bugfix: Some ID3v2 frames had data key unset incorrectly
  641. (thanks chrisØdigitekdesign*com)
  642. * Bugfix: Warnings on empty-strings-only comments
  643. * Bugfix: ID3v2 tag writing may have had incorrect padding length
  644. if padded length less than current ID3v2 tag length and
  645. merge_existing_data is false (thanks mikeØdelusion*org)
  646. * Bugfix: hash_data() for SHA1 was broken under Windows
  647. * Bugfix: BigEndian2Float()/LittleEndian2Float() were broken
  648. * Bugfix: LAME header calculated track peaks were incorrect for
  649. LAME3.94a15 and earlier
  650. * Bugfix: AVIs with VBR MP3 audio data reported incorrect bitrate
  651. and bitrate_mode
  652. * Bugfix: AVIs sometimes had incorrect or missing video and total
  653. bitrates
  654. * Bugifx: AVIs sometimes had incorrect ['avdataend'] and
  655. therefore also incorrect data hashes (md5_data, sha1_data)
  656. * Bugfix: ID3v1 genreid no longer returned for Unknown genre
  657. * Bugfix: ID3v1 SCMPX genres were broken
  658. Modified LAME header parsing to correctly process peak track
  659. value for LAME3.94a16+ (thanks Gabriel)
  660. md5_file() and sha1_file() now work under Windows in PHP < 4.2.0
  661. and 4.3.0 respectively with helper apps
  662. Default md5_data() tempfile location is now system temp directory
  663. instead of same directory as file (thanks towbØtiscali*de)
  664. Improved list of RIFF ['INFO'] comment key translations
  665. More helpful error message when GETID3_HELPERAPPSDIR has spaces
  666. /demo/demo.browse.php now autogets both MD5 and SHA1 hashes for
  667. files < 50MB
  668. Replaced PHP_OS comparisons with GETID3_OS_ISWINDOWS define
  669. (thanks necroticØusers*sourceforge*net)
  670. 1.7.0b5: [December-29-2003] James Heinrich
  671. » Windows only: Various binary files are now required for some
  672. file formats, especially for tag writing, as well as md5sum
  673. (and other) calculations. These binaries are now stored in the
  674. directory defined as GETID3_HELPERAPPSDIR in getid3.php
  675. (default is /helperapps/ parallel to /getid3/).
  676. Note: This directory must not have any spaces in the pathname.
  677. All neccesary files are available as a seperate download.
  678. See /helperapps/readme.txt for more information
  679. New file: /helperapps/readme.txt
  680. » Unified tag-writing interface for all tag formats
  681. New file: /getid3/write.php
  682. /getid3/write.apetag.php
  683. /getid3/write.id3v1.php
  684. /getid3/write.id3v2.php
  685. /getid3/write.lyrics3.php
  686. /getid3/write.metaflac.php
  687. /getid3/write.vorbiscomment.php
  688. » Added support for Shorten - requires shorten binary (head.exe
  689. is also required under Windows).
  690. New file: /getid3/module.audio.shorten.php
  691. » Added support for RKAU
  692. New file: /getid3/module.audio.rkau.php
  693. » Added (minimal) support for SZIP
  694. New file: /getid3/module.archive.szip.php
  695. » Added MySQL caching extention (thanks ahØartemis*dk)
  696. New file: /getid3/extention.cache.mysql.php
  697. » Added DBM caching extention (thanks ahØartemis*dk)
  698. New file: /getid3/extention.cache.dbm.php
  699. » Added sha1_data hash option (thanks ahØartemis*dk)
  700. » Added option to allow getID3() to skip ID3v2 without parsing it
  701. for faster scanning when ID3v2 data is not required. If you
  702. want to enable this feature delete /getid3/module.tag.id3v2.php
  703. (thanks ahØartemis*dk)
  704. ¤ 8-bit WAV data now calculates MD5 checksums as normal, not
  705. converting to signed data as before, so stored md5_data_source
  706. in FLAC files will no longer match md5_data for the equivalent
  707. decoded 8-bit WAV. A warning will be generated for 8-bit FLAC
  708. files
  709. ¤ Added option_no_iconv option to allow getID3() to work
  710. partially without iconv() support enabled in PHP
  711. (thanks ahØartemis*dk)
  712. ¤ All '*_ascii' keys removed for ASF/WMA/WMV files
  713. ¤ All 'ascii*' keys removed for ID3v2 tags
  714. ¤ Ogg filetypes now return MIME of "application/ogg" instead of
  715. the previous "application/x-ogg"
  716. (thanks blakewattersØusers*sourceforge*net)
  717. ¤ Force contents of ['id3v2']['comments'] to UTF-8 format from
  718. whatever encoding each frame may have (text encoding can vary
  719. from frame to frame in ID3v2)
  720. ¤ MP3Gain information from APE tags suppressed from ['tags'] and
  721. parsed into ['replay_gain']
  722. ¤ ReplayGain information (all formats) changed from "Radio" and
  723. "Audiophile" to "Track" and "Album" respectively
  724. ¤ ['volume'] and ['max_noclip_gain'] are now available in both
  725. ['replay_gain']['track'] and ['replay_gain']['album'] for all
  726. formats that calculate ReplayGain.
  727. ¤ ['video']['total_frames'] is available for AVIs
  728. ¤ All parsed ID3v2 frame data is now in ['id3v2'][XXXX][#]
  729. (previously some frame types would have numeric array keys if
  730. multiple instances of that frame type were allowed and other
  731. frame types would not)
  732. ¤ ASF/WMA "WM/Picture" images are now parsed in the same manner
  733. as ID3v2 with the image (ex JPEG) data returned in [data]
  734. rather than [value]
  735. * Bugfix: Optional tag processing options were being ignored (ie
  736. ID3v1 still processed even if option_tag_id3v1 == false)
  737. (thanks ahØartemis*dk)
  738. * Bugfix: fixed MultiByteCharString2HTML() for UTF-8
  739. * Bugfix: Quicktime files not always reporting video frame_rate
  740. * Bugfix: False ID3v1 synch patterns in APE or Lyrics3 tags are
  741. now detected and incorrect ID3v1 data not returned
  742. (thanks sebastian_maresØusers*sourceforge*net for the idea)
  743. * Bugfix: WMA9 Lossless now reported as lossless
  744. * Bugfix: two typos in ID3v1 genre list
  745. * Bugfix: MPEG-2/2.5 ABR/VBR MP3 files had doubled playtime
  746. * Bugfix: MPEG-2/2.5 LayerII (ie MP2: 24/22.05/16kHz) files were
  747. not detected due to incorrect frame length calculation
  748. * Bugfix: MPEG LayerI files were not detected due to incorrect
  749. frame length calculation (must be multiple of slot length)
  750. Added alternative md5_data via system call - twice as fast. Needs
  751. "getID3()-WindowsSupport" to work under Windows.
  752. (thanks ahØartemis*dk)
  753. ID3v2.4 compressed frames are now supported
  754. php_uname() calls changed to use PHP_OS constant
  755. Added SCMPX extensions to ID3v1 genres (0xF0-0xFE)
  756. Obfuscated contributor email address in changelog and sourcecode
  757. Added memory-saving EmbeddedLookup() function for lookup tables
  758. in RIFF and ID3v2 modules (thanks ahØartemis*dk)
  759. Major memory patches to many modules by using
  760. $var = &$INFO_ARRAY_AT_SOME_INDEX
  761. in place of large multi-dimensional array declarations.
  762. Memory saved: RIFF: ~200kB; ID3v2: ~475kB; ASF: ~50kB etc.
  763. (thanks ahØartemis*dk)
  764. 1.7.0b4: [November-19-2003] James Heinrich
  765. » Support added for MPC files with old SV4-SV6 structure
  766. » RealVideo now properly supported with resolution, framerate, etc
  767. (thanks jcsston)
  768. » RealAudio files with old-style file format (v2-v4) are now
  769. fully supported
  770. » Support added for DolbyDigital WAV files (thanks ahØartemis*dk)
  771. ¤ ['RIFF'] is now ['riff'] to conform to make all root key names
  772. lowercase
  773. ¤ ['OFR'] is now ['ofr'] to conform to make all root key names
  774. lowercase
  775. ¤ ['tags_html'] is now available as a copy of ['tags'] but
  776. with all text replaced with an HTML version of all characters
  777. above chr(127), translated according to whatever the encoding
  778. of the source tag is, in the HTML form &#1234;
  779. ¤ CopyTagsToComments() is now available in getid3_lib
  780. ¤ QuicktimeVR files now return a ['video']['dataformat'] of
  781. 'quicktimevr' instead of 'quicktime' (thanks gtsØtsu*biz)
  782. ¤ Quicktime video files with DivX, Xvid, 3ivx or MPEG4 video
  783. streams now return those names as ['video']['dataformat']
  784. ¤ MPEG video files are now identified with ['video']['codec'] set
  785. to either 'MPEG-1' or 'MPEG-2' (rather than just 'MPEG'). If you
  786. see a file wrongly identified, please report it!
  787. (thanks fccHandler)
  788. ¤ All bitrate values in ['mpeg']['audio'] is now reported in bps
  789. rather than kbps (ie 128000 instead of 128) for consistancy
  790. ¤ AVIs with MP2 audio now report ['audio']['dataformat'] as 'mp2'
  791. rather than 'wav' (thanks metalbrainØnetian*com)
  792. ¤ Added ['md5_data_source'] for OptimFROG
  793. ¤ AC3 in RIFF-WAV now identified with ['audio']['dataformat']
  794. returning 'ac3'
  795. ¤ WavPack ['extra_bc'] now returned as integer
  796. ¤ WavPack ['extras'] now returned as 3-element array of integers
  797. ¤ MP3 ['audio']['encoder options'] now returns 'VBR' or 'CBR' only
  798. (no bitrate) if no LAME preset is used, or 'VBR q??' where ?? is
  799. a number 0-100 for Fraunhofer-encoded VBR MP3s
  800. * Bugfix: VBR MP3s could have incorrect bitrate reported
  801. * Bugfix: Quicktime files with MP4 audio were not returning
  802. ['video']['dataformat'] (thanks robØmassive-interactive*nl)
  803. * Bugfix: strpad vs str_pad typo in module.riff.php
  804. (thanks nicojunØusers*sourceforge*net)
  805. * Bugfix: ReplayGain information was often wrong for MPC files
  806. * Bugfix: MD5 and other post-TAIL chunks were not being processed
  807. in module.audio.optimfrog.php
  808. * Bugfix: Undefined variable in table_var_dump() in demo/check.php
  809. * Bugfix: QuickTime files now only return information in [audio]
  810. or [video] if those exist in the file
  811. * Bugfix: WavPack no longer tries to read entire compressed data
  812. chunk
  813. * Bugfix: Properly handle VBR MP3s with "Info" (rather than
  814. "Xing") header frame. foobar2000 adds this to MP3 files when
  815. "Fix MP3 Header" function is used (thanks ahØartemis*dk)
  816. * Bugfix: Fraunhofer VBRI headers for MP3s were assuming 2-byte
  817. entries for TOC rather than using stride, and were ignoring the
  818. scaling value. (thanks sebastianØmaresweb*net)
  819. Several QuickTime atoms have been added to an exclusion list
  820. because they have been observed, but I have no idea what they
  821. are supposed to do so I can't add real support for them, but
  822. they should not generate warnings (robØmassive-interactive*nl)
  823. Old MPC encoder (before v1.06) was return as v0.00, now returned
  824. as 'Buschmann v1.7.0-v1.7.9 or Klemm v0.90-v1.05'
  825. (thanks ahØartemis*dk)
  826. Added check for magic_quotes_runtime and code to disable it if
  827. neccesary (thanks stefan*kischkelØt-online*de)
  828. Added 3ivx fourCCs to module.audio-video.quicktime.php
  829. MP3 and AC3 streams are now parsed when contained inside RIFF-WAV
  830. or RIFF-AVI container formats
  831. Better detection of named presets in LAME 3.93/3.94
  832. 1.7.0b3: [October-17-2003] James Heinrich
  833. » AC-3 (aka Dolby Digital) is now supported.
  834. New file: /getid3/module.audio.ac3.php
  835. * Bugfix: ID3v2-writing function Unsynchronise() was broken, which
  836. made ID3v2 tag containing binary data (typically pictures) get
  837. corrupted. (thanks t*coombesØbendigo*vic*gov*au,
  838. i*kuehlbornØndh*net, mikeØdelusion*org, mikeØftl*com)
  839. * Bugfix: Zip comments now returned as array instead of string,
  840. as they're supposed to be.
  841. * Bugfix: Quicktime/MP4 files may have reported extremely low
  842. bitrates (thanks spunkØdasspunk*com)
  843. Improved double-ID3v1 check to prevent false detection when string
  844. "TAG" is present in APE or Lyrics3
  845. Fixed /demo/simple.php
  846. Fixed /demo/joinmp3.php
  847. Fixed /demo/mimeonly.php
  848. Fixed /demo/write.php
  849. 1.7.0b2: [October-15-2003] James Heinrich
  850. » TTA Lossless Audio Compressor format now supported.
  851. (http://tta.iszf.irk.ru)
  852. New file: /getid3/module.graphic.tta.php
  853. » PhotoCD (PCD) format now supported. Image data for the three
  854. lowest resolutions (192x128, 384x256, 768x512) can be optionally
  855. extracted.
  856. New file: /getid3/module.graphic.pcd.php
  857. ¤ RIFF-MP3 files now should return the same ['md5_data'] as the
  858. identical MP3 file outside the RIFF container
  859. ¤ Name of LAME preset used (if available, needs LAME v3.90+)
  860. returned in ['mpeg']['audio']['LAME']['preset_used'] and also as
  861. part of ['audio']['encoder_options']
  862. ¤ VQF module now sets ['audio']['encoder_options'] to i.e. CBR96
  863. ¤ MP3 module now sets ['audio']['encoder_options'] on CBR files
  864. and all LAME-encoded files
  865. ¤ MPC module now sets ['audio']['encoder_options']
  866. ¤ Monkey module now sets ['audio']['encoder_options']
  867. ¤ AAC module now sets ['audio']['encoder_options'] to profile name
  868. ¤ ASF module now sets ['audio']['encoder_options']
  869. ¤ Ogg module adds ['audio']['encoder_options'] -b 128 on
  870. Ogg Vorbis 1.0+ ABR files
  871. ¤ Ogg module adds ['audio']['encoder_options'] -q N on
  872. Ogg Vorbis 1.0+ VBR files 44k/48k sample rate/stereo files only.
  873. ¤ Ogg module ['audio']['encoder_options'] "Nominal birate: 80k" to
  874. other Ogg Vorbis files.
  875. ¤ ID3v2 track number now returned as string (with leading zeros,
  876. if present in data) rather than integer (thanks Plamen)
  877. ¤ ASF module returns ['asf']['comments']['encoding_time_unix'] if
  878. available (from WM/EncodingTime)
  879. ¤ Fixed /demo/mysql.php and added some new features:
  880. - encoder options
  881. - ID3v2 "Encoded By"
  882. - non-empty comments
  883. - total entries in database summary (totals & averages)
  884. - database version update
  885. * Bugfix: 'UNICODE' iconv() charset changed to 'UTF-16LE' or
  886. 'UTF-16BE' as appropriate
  887. * Bugfix: iconv_fallback() function created in case iconv() fails
  888. * Bugfix: fixed MD5 calls in demo/check.php
  889. * Bugfix: reenabled detection of APE + Lyrics3 tags in same file
  890. * Bugfix: ASF module now returns ID3v1 genre as string instead of
  891. number - patch from Eugene Toder.
  892. * Bugfix: ASF module now reads non-standard field names,
  893. i.e. "date" as well as WM/Year - patch from Eugene Toder.
  894. * Bugfix: ASF module now returns genre as-is if it is not a
  895. standard ID3v1 genre (thanks wonderboy)
  896. * Bugfix: Eliminated false-synch problem in MP3 module
  897. * Bugfix: Fixed missing root ['bitrate'] for most formats
  898. * Bugfix: ['audio']['compression_ration'] missing for MPC
  899. (thanks WaldoMonster)
  900. * Bugfix: NSV module died in 1.7.0b1
  901. * Bugfix: ASF module died in 1.7.0b1 when WM/Picture preset
  902. * Bugfix: ASF tracknumber incorrect when specified by WM/Track
  903. rather than WM/TrackNumber (thanks jgriffiniiiØhotmail*com)
  904. * Bugfix: MPEG audio+video playtime should now be pretty accurate
  905. (ie within 0.1% variation at most)
  906. (thanks mgrimmØhealthtvchannel*org)
  907. * Bugfix: ID3v2 not being copied to ['tags'] in some cases
  908. * Bugfix: LAME CBR files with Info tag were being incorrectly
  909. flagged as VBR (thanks Jojo)
  910. * Bugfix: LAME tag not being detected for LAME 3.90 (original)
  911. Changed regex pattern match for MP3 to include 3rd byte for more
  912. reliable/accurate pattern matching
  913. Added duplicate-ID3v1 tag checking (two ID3v1 tags, one after the
  914. other) that has been known to occur with iTunes
  915. (thanks towbØtiscali*de)
  916. Added instructions for enabling iconv() support under Windows
  917. Removed some unneccesary debugging code
  918. Suppressed duplicate PHP warnings for missing include files
  919. Included some missing dependencies in various files
  920. /demo/audioinfo.class.php now copies ['audio']['encoder_options']
  921. 1.7.0b1: [2003-09-28] Allan Hansen
  922. This beta version was not made by James Heinrich. It was made by
  923. Allan Hansen <ahØartemis*dk> - please send bug reports on this
  924. beta directly to me.
  925. James Heinrich will release 1.7.0 final, but it may take some time
  926. to work out the bugs from the major rewrite.
  927. This version could be called getID3lite. It makes a lot of checks
  928. optional and makes it easy to remove support for undesired formats
  929. It also is more library-like. Older versions of getID3() declared
  930. an incredible amount of global scope functions and defined several
  931. constants. 1.7.0beta1 still declares constants, but they are all
  932. prepended by GETID3_. It declares no global scope functions - they
  933. are all wrapped into classes.
  934. » Made getID3() depend on iconv library: compile PHP --with-iconv
  935. » Created new directory structure
  936. Moved all demos to demos/
  937. Moved all getID3() files to getid3/
  938. Renamed most files to module.something
  939. Changed header in all module.something to explain what they do
  940. Simply remove all modules you don't need
  941. Wrapped all modules into classes
  942. * Bugfix: Implemented misc patches from Eugene Toder
  943. * Bugfix: Implemented misc patches from "six"
  944. ¤ Added root key 'encoding'
  945. ¤ Added prefix GETID3_ to all defined constants.
  946. ¤ Wrapped getid3.php into getid3 class
  947. ¤ Wrapped getid3.functions.php into getid3_lib class
  948. Removed unused functions
  949. Moved several functions away from getid3.functions.php and
  950. into the files where they are actually used.
  951. Renamed getid3.functions.php to getid3.lib.php
  952. Moved getid3.rgad.php functions into getid3_lib
  953. Moved getid3.getimagesize.php funcitons ingo getid3_lib
  954. ¤ Moved getid3.ogginfo.php into ogg module
  955. ¤ Combined GetTagOnly() and GetAllFileInfo() in method analyze
  956. ¤ Removed redundant and unuseful root keys
  957. 'file_modified_time' == filemtime($filename)
  958. 'md5_file' == md5_file($filename)
  959. 'exist' == file_exists($filename)
  960. ¤ Changed root key ['tags'] from array of string to array of array
  961. of comments.
  962. Simplified code for detecting base path.
  963. Removed ob_ from InitializeFilepointerArray(). That was really a
  964. ugly HACK to get output from fopen. If user want the reason,
  965. he should open the file himself!
  966. Checking for APE tags before lyrics3 - makes Lyrics3 not depend
  967. on APE tag. It seems to work on my test file.
  968. Changed ['error'] and ['warning'] in multiple files to append to
  969. array instead of appending to string. That simplified code in
  970. getid3.php too.
  971. Simplified clean-up procedure: simply remove all empty root keys
  972. Setting tags in individual modules instead of main getid3.php
  973. Made Bonk and ASF modules non-dependent on id3 modules - id3
  974. optional.
  975. Rewrote HandleAllTags() - simplified and convert comments to
  976. desired encoding.
  977. Replaced all calls to RoughTranslateUnicodeToASCII() in ASF module
  978. with a TrimConvert() method. This uses iconv() for conversion.
  979. It also converts from UNICODE instead of UTF-16BE, as the spec
  980. says it should.
  981. Replaced all calls to RoughTranslateUnicodeToASCII() in id3v2
  982. module with iconv(). id3v2 module also reads
  983. $ThisFileInfo['encoding'] and converts all comments to this
  984. format. All other formats just add their comments in their
  985. native charset, but every comment field in id3v2 can have a
  986. different encoding, so this is needed.
  987. Did same thing as above with ISO module. However - it does not
  988. work. I need to find out how to specify big-endian unicode !=
  989. UNICODING encoding name given to iconv().
  990. Built-in assume mp3 format in getid3.php
  991. Temporarily nuked root key ['comments'] and CopyCommentsToRoot()
  992. Updated demo/audioinfo.class.php
  993. Updated demo/check.php - some thing don't work!
  994. Other demos are out of order!
  995. 1.6.5: [October-06-2003] James Heinrich
  996. » Added support for LiteWave (thanks supportØclearjump*com)
  997. Ø Split out speedup info from ['OFR']['OFR']['compression'] into
  998. ['OFR']['OFR']['speedup']
  999. Ø If EXIF functions for JPEG not available, now warning not error
  1000. Ø ID3v2 track number now returned as string (with leading zeros,
  1001. if present in data) rather than integer (thanks Plamen)
  1002. * Bugfix: now correctly parses cbSize element of WAVEFORMATEX
  1003. structure (thanks supportØclearjump*com)
  1004. * Bugfix: ASF module now reads non-standard field names,
  1005. i.e. "date" as well as WM/Year - patch from Eugene Toder.
  1006. * Bugfix: ASF module now returns genre as-is if it is not a
  1007. standard ID3v1 genre (thanks wonderboy)
  1008. * Bugfix: ['audio']['compression_ration'] missing for MPC
  1009. (thanks WaldoMonster)
  1010. Prevent infinite loop in MP3 histogram if framelength == 0
  1011. Added wFormatTag values 0x00FF and 0x2001 - 0x2005
  1012. (thanks steveØheadbands*com)
  1013. Added "twos" and "sowt" FourCCs for Mac AIFC
  1014. 1.6.4: [June-30-2003] James Heinrich
  1015. » Added support for free-format MP3s
  1016. (thanks Sebastian Mares for the idea)
  1017. » Compressed (Flash 6+) SWF files are now handled properly
  1018. (thanks alan*cheungØalumni*ust*hk)
  1019. » Added DeleteLyrics3() to getid3.lyrics3.php
  1020. » Added FixID3v1Padding() to getid3.putid3.php
  1021. » Added new simple MP3-splicing sample file
  1022. (thanks tommybobØmailandnews*com for the idea)
  1023. New file: getid3.demo.joinmp3.php
  1024. » Moved all contents of getid3.putid3.php into either
  1025. getid3.id3v1.php or getid3.id3v2.php or getid3.functions.php as
  1026. appropriate
  1027. Removed file: getid3.putid3.php
  1028. ¤ ['error'] and ['warning'] keys now return as arrays, not strings
  1029. ¤ New root key for all files: ['file_modified_time'] (UNIX time)
  1030. ¤ getid3.demo.scandir.php renamed to getid3.demo.mysql.php
  1031. ¤ New demo file returns the MIME type only for a single file
  1032. (thanks adminØe-tones*co*uk for the idea)
  1033. New file: getid3.demo.mimeonly.php
  1034. ¤ Added check for valid ID3v1 padding (strings should be padded
  1035. with null characters but some taggers incorrectly use spaces).
  1036. A warning will be generated if padding is invalid. New boolean
  1037. key ['id3v1']['padding_valid'] indicates padding validity.
  1038. ¤ CleanUpGetAllMP3info() removes more useless root keys for
  1039. unknown-format files
  1040. ¤ Extended LAME information in ['mpeg']['audio']['LAME'] is now
  1041. only returned for LAME v3.90+
  1042. ¤ LAME-encoded MP3s now return
  1043. ['mpeg']['audio']['LAME']['long_version'] as well as
  1044. ['mpeg']['audio']['LAME']['short_version'] - these are identical
  1045. in LAME v3.90+ but older versions will report longer more
  1046. detailed version information if available
  1047. ¤ New Lyrics3 values: ['lyrics3']['raw']['offset_start'] and
  1048. ['lyrics3']['raw']['offset_end']
  1049. ¤ New optional parameter on getAPEtagFilepointer() to scan from a
  1050. defined offset rather than end-of-file to allow scanning of APE
  1051. tags before Lyrics3 tags
  1052. ¤ ['tag_offset_start'] and ['tag_offset_end'] are now present in
  1053. ['ape'], ['lyrics3'], ['id3v1'] and ['id3v2']
  1054. ¤ Numerous changes to the returned structure and content for La
  1055. files, including parsing the seektable (if applicable) and
  1056. parsing RIFF data occuring after the end of the compressed audio
  1057. data (notably RIFF comments)
  1058. (thanks mikeØbevin*de)
  1059. ¤ getSWFHeaderFilepointer() now has optional 3rd parameter
  1060. $ReturnAllTagData (default == false) which if set to true will
  1061. return data on all tags in ['swf']['tags']
  1062. ¤ ['swf']['bgcolor'] now returns the 6-character string
  1063. representing the background color in HTML hex color format
  1064. (thanks ubergeekØubergeek*tv)
  1065. ¤ ['swf']['header']['frame_delay'] is no longer returned
  1066. ¤ getQuicktimeHeaderFilepointer() now has two additional optional
  1067. parameters: $ReturnAtomData (default == true) and
  1068. $ParseAllPossibleAtoms (default == false). Setting
  1069. $ReturnAtomData to false will reduce the size of the returned
  1070. data array by unsetting ['quicktime']['moov'] before returning.
  1071. Leaving $ParseAllPossibleAtoms as false now suppresses parsing
  1072. of several atom types that contain very large tables of data
  1073. that are not typically useful. Atom type suppressed are:
  1074. stts, stss, stsc, stsz, and stco
  1075. (thanks ubergeekØubergeek*tv)
  1076. ¤ ['fileformat'] no longer set to 'id3' if ID3v1 or ID3v2 tag
  1077. detected but no other data format recognized
  1078. * Bugfix: La files now return the correct values for
  1079. ['avdataoffset'] and ['avdataend'] and therefore the correct
  1080. values for ['md5_data'] - note that ['md5_data'] values will not
  1081. match values from previous versions of getID3() - the previous
  1082. versions were incorrect
  1083. (thanks mikeØbevin*de)
  1084. * Bugfix: A temporary file was being created in the web server's
  1085. root directory (not DocumentRoot) each time ['md5_data'] was
  1086. calculated, and not removed due to lack of permissions. Temp
  1087. file is now created (as it was supposed to be) in the directory
  1088. of the file being examined, or the system temp directory, and
  1089. properly removed when done.
  1090. * Bugfix: Several incorrect values were being returned inside
  1091. ['mpeg']['audio']['LAME'] (thanks bouvigneØmp3-tech*org)
  1092. * Bugfix: SWF frame rates values were usually incorrect.
  1093. (thanks alan.cheungØalumni*ust*hk and ubergeekØubergeek*tv)
  1094. * Bugfix: ID3v2.2 files always flagged 4 bytes of invalid padding
  1095. (thanks marcaØmac*com)
  1096. * Bugfix: Lyrics3 without ID3v1 was not working properly
  1097. * Bugfix: Lyrics3, APE & ID3v1 can all now exist in the same file.
  1098. A warning is issued if APE comes after Lyrics3 (because Lyrics3-
  1099. aware taggers probably are not APE-aware and therefore won't be
  1100. able to find the Lyrics3 tag) (thanks mp3gainØhotmail*com)
  1101. * Bugfix: WriteAPEtag() now writes the APE tag before any Lyrics3
  1102. tags (if present) and removes any incorrect ones that are after
  1103. existing Lyrics3 tags (thanks mp3gainØhotmail*com)
  1104. * Bugfix: RIFF-WAVE file with incorrect NumberOfSamples values in
  1105. the 'fact' chunk no longer cause incorrect playtime calculation
  1106. (thanks stprasadØindusnetworks*com)
  1107. * Bugfix: getid3.demo.simple.php had undefined variables if the
  1108. file needed to be deep-scanned with assumeFormat
  1109. * Bugfix: fixed previously-incorrect ['avdataend'] values for APE
  1110. and Lyrics3 tags in some cases, which in some cases means that
  1111. ['md5_data'] is different than previously (now correct)
  1112. Much-improved detection of AAC-ADTS, which also means MP3
  1113. format detection should now be nearly twice as fast
  1114. Truncated AVIs and WAVs are now reported
  1115. Number of new features and bugfixes in getid3.demo.mysql.php
  1116. Quicktime 'meta' atoms now parsed, so Quicktime MP4 files can now
  1117. return artist, title, album, etc (thanks spunkØdasspunk*com)
  1118. Consolidated all comments processing functions (processing the
  1119. ['comments'] and ['tags'] keys) into HandleAllTags() which now
  1120. also checks to ensure that APE tags are really better than ID3v2
  1121. before using them in ['comments']
  1122. Known issue with Meracl ID3 Tag Writer v1.3.4 truncating last byte
  1123. of MP3 file when appending new ID3v1 tag now specifically noted
  1124. (rather than generic Probably Truncated File message)
  1125. getid3.demo.mysql.php now stores last-modified time for each file
  1126. getid3.demo.mysql.php is now case-sensitive for filenames
  1127. getid3.demo.mysql.php can generate M3U playlists of any of the
  1128. groups of files it can select (duplicate filenames, tag types,
  1129. etc.)
  1130. getid3.demo.mysql.php can now find mismatched tag contents and
  1131. filenames
  1132. getid3.demo.check.php now shows total number of errors & warnings
  1133. GetFileFormatArray() now matches actual patterns for MP3 files
  1134. based on the first two bytes of the file, rather than just the
  1135. first one
  1136. Simplified DeleteAPEtag() and made it work properly with Lyrics3
  1137. 1.6.3: [May-17-2003] James Heinrich
  1138. » Added support for Bonk (thanks ahØartemis*dk)
  1139. New file: getid3.bonk.php
  1140. » Added support for AVR (thanks ahØartemis*dk)
  1141. New file: getid3.avr.php
  1142. ¤ Contents of getid3.id3.php moved to getid3.id3v1.php
  1143. Removed file: getid3.id3.php
  1144. ¤ Contents of getid3.frames.php moved to getid3.id3v2.php
  1145. Removed file: getid3.frames.php
  1146. ¤ Returned data structure documentation improved and updated and
  1147. now stored in getid3.structure.txt rather than getid3.readme.txt
  1148. New file: getid3.structure.txt
  1149. ¤ Now including the GNU General Public License in the distribution
  1150. as getid3.license.txt
  1151. New file: getid3.license.txt
  1152. ¤ Added new, optional, parameter to WriteAPEtag() (and also
  1153. GenerateAPEtag()) which must be set to TRUE if the values you
  1154. are passing are already UTF8-encoded, otherwise all data is
  1155. encoded to UTF8 by default. For all ASCII/ANSI data this value
  1156. should be left at the defaul value of FALSE.
  1157. ¤ Added third, optional, parameter to getID3v2Filepointer() -
  1158. $StartingOffset (default == 0) which can parse an ID3v2 tag
  1159. in a file at a position other than the start-of-file.
  1160. ¤ ['video']['pixel_aspect_ratio'] now returned when known
  1161. ¤ AVI files with WMA audio now return ['audio']['dataformat']
  1162. of 'wma' rather than 'wav'
  1163. ¤ ASF-WMA files now return the artist value from WM/AlbumArtist
  1164. in ['comments']['artist'] (thanks msibbaldØsaebauld*com)
  1165. ¤ ASF-WMA files now return the 'author' value from
  1166. ['asf']['content_description'] in ['comments']['artist']
  1167. instead of ['comments']['author']
  1168. ¤ ASF-WMA files now return the 'description' value from
  1169. ['asf']['content_description'] in ['comments']['comment']
  1170. instead of ['comments']['description']
  1171. * Bugfix: APE tag writing with multiple values for a tag (more
  1172. than one ARTIST for example) was not being correctly written
  1173. (thanks ahØartemis*dk)
  1174. * Bugfix: CreateDeepArray() was returning an empty-string key as
  1175. the top-level returned value - ['iso']['files'] now directly
  1176. contains the file listing without an empty array in between.
  1177. * Bugfix: ID3v2 genreid was not being returned in some cases.
  1178. * Bugfix: APEv1 tags would generate error messages
  1179. * Bugfix: APE tags would sometimes show phantom second entry for
  1180. each item (title, artist, etc) with no data
  1181. * Bugfix: APE tag writing was not UTF8-encoding the data -
  1182. non-ASCII characters (above chr(127)) were being incorrectly
  1183. stored (thanks ahØartemis*dk)
  1184. * Bugfix: getid3.demo.scandir.php had undefined function error
  1185. * Bugfix: getid3.demo.scandir.php would not display list of files
  1186. with no tags
  1187. Added link to getid3.demo.check.php from list of specific-tags
  1188. files in getid3.demo.scandir.php
  1189. 1.6.2: [May-04-2003] James Heinrich
  1190. » New official mirror site for getID3() - http://www.getid3.org
  1191. » Added basic support for SWF (Flash) (thanks n8n8Øyahoo*com)
  1192. New file: getid3.swf.php
  1193. » Added experimental support for parsing the audio portion of
  1194. MPEG-video files. I don't have any actual documentation for
  1195. this, so this part is experimental and not guaranteed accurate,
  1196. but it seems to be working OK as far as I have been able to test
  1197. it. Bug reports (or even better - documentation!) are welcome at
  1198. info@getid3.org
  1199. » Added new simple directory-scanning sample file
  1200. New file: getid3.demo.simple.php
  1201. » getid3.demo.write.php now writes APE tags as well.
  1202. ¤ Renamed getid3.write.php to getid3.demo.write.php
  1203. ¤ Renamed audioinfo.class.php to getid3.demo.audioinfo.class.php
  1204. ¤ getid3.php now automatically includes the getid3.functions.php
  1205. function library file, no need to include it seperately.
  1206. ¤ getLyrics3Filepointer() has been changed to be consistant with
  1207. all the other similar function structures - the parameters have
  1208. changed. The old function has been renamed to getLyrics3Data()
  1209. ¤ Added DeleteAPEtag() function to getid3.ape.php
  1210. ¤ HandleID3v1Tag() now only handles ID3v1. Lyrics3 processing is
  1211. now done by HandleLyrics3Tag()
  1212. ¤ If BitrateHistogram is enabled in getOnlyMPEGaudioInfo() it now
  1213. also returns ['mpeg']['audio']['version_distribution'] showing
  1214. the number of frames of each MPEG version (1, 2 or 2.5) - all
  1215. frames *should* be of the same MPEG version
  1216. ¤ getID3v1Filepointer() always returns TRUE now, even if it didn't
  1217. find a valid ID3v1 tag
  1218. ¤ getOnlyMPEGaudioInfo() now looks for MPEG sync in the first 128k
  1219. bytes rather than the first 64k bytes
  1220. ¤ Added dummy function GetAllMP3info() to generate warning not to
  1221. use that deprecated function.
  1222. ¤ ['video']['codec'] is now 'MPEG' for all MPEG video files (this
  1223. will change to 'MPEG-1' or 'MPEG-2' as soon as I figure out how
  1224. to determine that) (thanks jigalØspill*nl)
  1225. ¤ ['mpeg']['audio']['LAME']['mp3_gain'] renamed to
  1226. ['mpeg']['audio']['LAME']['mp3_gain_db'] (gain in dB)
  1227. ¤ Added ['mpeg']['audio']['LAME']['mp3_gain_factor'] (gain as a
  1228. multiplication factor)
  1229. ¤ Added support for Preset and Surround Info bytes from LAME VBR
  1230. tag (http://gabriel.mp3-tech.org/mp3infotag.html)
  1231. * Bugfix: APE tag writing would put the string 'Array' for all
  1232. values rather than the actual data (thanks ahØartemis*dk)
  1233. * Bugfix: Warning now generated for VBR MPEG-video files because
  1234. getID3() cannot determine average bitrate. If you know of
  1235. documentation that would tell me how to do this, please email
  1236. info@getid3.org
  1237. * Bugfix: Replay Gain values from Vorbis comments are now
  1238. returned in ['replay_gain'] (and not in ['comments'])
  1239. (thanks ahØartemis*dk)
  1240. * Bugfix: Replay Gain values from APE comments are now correctly
  1241. returned in ['replay_gain'] (thanks ahØartemis*dk)
  1242. * Bugfix: getid3.demo.check.php is now case-insensitive when
  1243. assuming a format for a corrupted file if standard detection
  1244. does not identify the file type.
  1245. * Bugfix: RIFF comments were overwriting/suppressing ID3 comments
  1246. for RIFF-MP3 files (thanks wmØwofuer*com)
  1247. * Bugfix: RIFF-MP3 files with 'RMP3' chunks instead of 'WAVE' were
  1248. not being correctly identified.
  1249. * Bugfix: ID3v2 padding shorter than the length of an ID3v2 frame
  1250. header was not correctly detected
  1251. * Bugfix: getid3.demo.check.php now does in-depth scanning for MP2
  1252. and MP1 files the same as for MP3 files based on file extension
  1253. if a MPEG-audio structure isn't found immediately at the start
  1254. of the file
  1255. * Bugfix: removed condition where RIFF-WAV was being scanned for
  1256. MPEG-audio signature when it shouldn't be present (non-MP3 WAV)
  1257. * Bugfix: ASF files were not always showing correct audio datatype
  1258. * Bugfix: array_merge_clobber() and array_merge_noclobber() were
  1259. not being conditionally defined in getid3.functions.php
  1260. (thanks rich.martinØreden-anders*com)
  1261. * Bugfix: stream_numbers was not being correctly returned in
  1262. bitrate_mutual_exclusion_object chunks of ASF files
  1263. * Bugfix: Added support for 24kHz and 12kHz audio in ASF files
  1264. * Bugfix: Removed possible undefined offset error in MP3s where
  1265. cannot find synch before end of file
  1266. * Bugfix: Removed potential out-of-memory crash situation when
  1267. parsing Real files with chunks larger than the available memory
  1268. (thanks jigalØspill*nl)
  1269. * Bugfix: ID3v1 was incorrectly taking precedence over ID3v2 in
  1270. the ['comments'] array (thanks lionelflØwanadoo*fr)
  1271. * Bugfix: No longer calculates overall bitrate and playtime for
  1272. VBR MPEG video files based on the audio bitrate.
  1273. * Bugfix: AssumeFormat was not working properly
  1274. Added summary footer line to getid3.demo.check.php
  1275. Added '.mpeg' to the list of assume-format-from-filenames list in
  1276. getid3.demo.check.php
  1277. MPEG-video files now more reliably detected
  1278. A number of additional features have been added to
  1279. getid3.demo.scandir.php
  1280. Added many RIFF-AVI audio types and fourcc video types to the
  1281. lookup functions in getid3.riff.php
  1282. Now identifes files with Lyrics3 v1 tags that are of incorrect
  1283. length (v1 Lyrics3 is supposed to be 5100 bytes long, but
  1284. [unknown program] writes variable-length tags (which is illegal
  1285. for Lyrics3 v1)). getID3() now correctly parses these tags and
  1286. issues a warning.
  1287. Split GetFileFormat() to GetFileFormat() and GetFileFormatArray()
  1288. HTML colors in getid3.demo.check.php are now defined as constant
  1289. variables at the top of the file (if you want to change them)
  1290. Added support for OptimFROG v4.50x (non-alpha) (new header fields)
  1291. (thanks floringhidoØyahoo*com)
  1292. Added support for Lossless Audio v0.4 (thanks mikeØbevin*de)
  1293. 1.6.1: [March-03-2003] James Heinrich
  1294. » Added support for writing APE v2.
  1295. WriteAPEtag() in getid3.ape.php
  1296. NOTE: APE v1 writing support will *not* be added to future
  1297. versions of getID3()
  1298. (thanks ahØartemis*dk and adamØphysco*com for the idea)
  1299. » Added support for AIFF (Audio Interchange File Format) including
  1300. AIFF, AIFC and 8SVX (thanks ahØartemis*dk for the idea)
  1301. Removed file: getid3.aiff.php
  1302. » Added support for OptimFROG (v4.50a and v4.2x)
  1303. (thanks ahØartemis*dk for the idea)
  1304. New file: getid3.optimfrog.php
  1305. » Added support for WavPack (thanks ahØartemis*dk for the idea)
  1306. » Added support for LPAC (thanks ahØartemis*dk for the idea)
  1307. » Added support for NeXT/Sun .au format
  1308. New file: getid3.au.php
  1309. » Added support for Creative SoundBlaster VOC format
  1310. New file: getid3.voc.php
  1311. » Added support for the BWF (Broadcast Wave File) RIFF chunks
  1312. "bext" and "MEXT" (thanks Ryan and njhØsurgeradio*co*uk)
  1313. » Added support for the CART (Broadcast Wave File) RIFF chunks
  1314. (thanks Ryan)
  1315. » Added getid3.demo.scandir.php - a sample recursive scanning demo
  1316. that scans every file in a given directory, and all sub-
  1317. directories, and stores the resulting data in MySQL database,
  1318. and then displays a list of duplicate files based on md5_data
  1319. ¤ ['md5_data_source'] now contains the MD5 value for the original
  1320. uncompressed data for formats that store that information
  1321. (currently only FLAC v0.5+). ['md5_data'] (if chosen to be
  1322. calculated) will contain the calculated MD5 value for the
  1323. compressed file. To check if 2 files are identical in every way,
  1324. including all comments: compare ['md5_file']. To check if two
  1325. files were compressed from the same source file: compare
  1326. ['md5_data_source']. To check if the compressed audio/video data
  1327. of two files is identical, even if comments or even the
  1328. container file format is different (MP3 in RIFF container,
  1329. FLAC in Ogg container, etc): compare ['md5_data'].
  1330. ¤ ['md5_data'] for 8-bit WAV files is now calculated based on a
  1331. converted version of the data from unsigned to signed (MSB
  1332. inverted) to match the MD5 value calculated by FLAC
  1333. ¤ New optional parameter added to GetAllFileInfo() -
  1334. $MD5dataIfMD5SourceKnown (default: false). If false the md5_data
  1335. value will NOT be calculated for files (such as FLAC) that have
  1336. ['md5_data_source'] set, even if $MD5data == true.
  1337. (thanks ahØartemis*dk)
  1338. ¤ getid3.check.php renamed to getid3.demo.check.php
  1339. ¤ Added GetTagOnly() function to getid3.php - similar to
  1340. GetAllFileInfo() except only takes a filename as a parameter and
  1341. only returns ID3v2, APE, Lyrics3 and ID3v1 tag information - no
  1342. attempt is made to parse the data contents of the file at all.
  1343. (thanks Phil for the idea)
  1344. ¤ Added ['audio']['lossless'] and ['video']['lossless'] for all
  1345. formats (when known). Both are boolean values - true means the
  1346. data is lossless-compressed, false means the data is lossy-
  1347. compressed.
  1348. ¤ Added ['audio']['compression_ratio'] and/or
  1349. ['video']['compression_ratio'] for all formats. Returns a number
  1350. (usually) less than 1, where 1 represents no compression and 0.5
  1351. represents a compressed file half the size of the original file
  1352. ¤ Added ['video']['bits_per_sample'] to all video formats (when
  1353. known)
  1354. ¤ Added ['video']['frame_rate'] to all video formats (when known)
  1355. ¤ ['fileformat'] set to 'mp1' or 'mp2' instead of 'mp3' when
  1356. ['audio']['dataformat'] is one of those (thanks ahØartemis*dk)
  1357. ¤ Added 4th parameter to md5_data(), $invertsign, which will invert
  1358. the MSB of each byte before MD5'ing. This is needed for 8-bit
  1359. WAV files because FLAC calculates the stored MD5 value on
  1360. signed data rather than the original byte values. ['md5_data']
  1361. of an 8-bit WAV will now match the ['md5_data_source'] value
  1362. (thanks lichvarmØphoenix*inf*upol*cz)
  1363. ¤ ['ape']['items']['data'] and ['ape']['items']['data_ascii'] now
  1364. contains an array of values, if the tag contains UTF-8 text (as
  1365. opposed to binary data)
  1366. ¤ ['mpeg']['audio']['bitratemode'] renamed to
  1367. ['mpeg']['audio']['bitrate_mode']
  1368. * Bugfix: Removed potential bug that could replace all MP3 file
  1369. contents with only the new ID3v2 tag in getid3.putid3.php
  1370. * Bugfix: md5_data values calculated for RIFF (WAV, AVI) files
  1371. were incorrect (thanks ahØartemis*dk)
  1372. * Bugfix: MP3 data in an MP4 wrapper fileformat could not identify
  1373. bitrate (thanks ahØartemis*dk)
  1374. * Bugfix: ['audio'] and/or ['video'] keys would sometimes get
  1375. removed even if not empty
  1376. * Bugfix: Prevented creation of null entries in
  1377. ['RIFF']['WAVE']['INFO'] if a comment entry was not present
  1378. * Bugfix: Potential infinite-loop condition in getid3.ogg.php
  1379. (thanks afshin.behniaØsbcglobal*net)
  1380. * Bugfix: Ogg files with illegal ID3v1 (and/or APE or Lyrics3)
  1381. tags were not finding the last Ogg page
  1382. (thanks afshin.behniaØsbcglobal*net)
  1383. * Bugfix: replay-gain values not properly set from LAME tag
  1384. * Bugfix: RIFF-MP3 had incorrect md5_data
  1385. * Bugfix: the LAME DLL CBR problem of not re-writing the LAME
  1386. frame at the beginning of the data is now detected for MP3s
  1387. with ID3v2 tags as well
  1388. * Bugfix: APE tags with multiple values (ie multiple entries in
  1389. the "artist" tag) are now shown properly in ['ape']['items']
  1390. * Bugfix: fixed condition where APE tag with no ID3v1 tag could be
  1391. mistaken for APE tag with ID3v1 (and incorrectly parsed)
  1392. * Bugfix: added warning if ID3v2 frame has zero-length data
  1393. (thanks cmassetØclubinternet*fr)
  1394. * Bugfix: getid3.frames.php looking for non-existant key in USER
  1395. frames
  1396. Improved detection of RIFF-MP3 data. [unknown program] encodes
  1397. RIFF-WAV data with a chunk name of 'RMP3' instead of the
  1398. standard 'RIFF'
  1399. Encoder now returned in both ['comments'] and ['audio']['encoder']
  1400. for RIFF-WAV files with an INFO.ISFT chunk
  1401. Generate a warning for FLAC files encoded with v0.3 or v0.4
  1402. because audio_signature is not calculated during encoding
  1403. (thanks ahØartemis*dk)
  1404. Modified getid3.check.php to display md5_data_source as well as
  1405. md5_file and md5_data if display-MD5 mode is selected
  1406. Modified getid3.check.php to assume-format based on file extension
  1407. in browse mode if fileformat is found to be 'id3' (formerly only
  1408. if the fileformat was null)
  1409. Changed scaling of BitrateColor() from representing 1-256kbps to
  1410. representing 1-768kbps for better display of high-bitrate files,
  1411. specifically lossless-compressed CD-audio (FLAC, LA, etc)
  1412. 1.6.0: [January-30-2003] James Heinrich
  1413. » Added support for OggFLAC (FLAC data stored in an Ogg container)
  1414. (thanks ahØartemis*dk for the idea)
  1415. » Added support for Speex (the data stored in an Ogg container)
  1416. » Comments are now available in the root 2-dimensional array
  1417. ['comments'] - each entry in this array will contain one or more
  1418. strings. For example, if there are two artists then
  1419. ['comments']['artist'][0] will contain the first one and
  1420. ['comments']['artist'][1] the other. All keys are forced
  1421. lowercase. Comments will be stored in the ['comments'] array in
  1422. this order of precedence:
  1423. 1) Native format tags (ASF, VQF, NSV, RIFF, Quicktime, Vorbis)
  1424. 2) APE tags
  1425. 3) ID3v2
  1426. 4) Lyrics3
  1427. 5) ID3v1
  1428. Lower-priority tags will not overwrite or append existing values
  1429. of higher-priority tags (for example, 'artist' in ID3v1 will be
  1430. ignored if already specified in APE), but missing values will be
  1431. filled in (for example, if 'album' is specified in ID3v2 but not
  1432. in APE, it will be included in the ['comments'] array).
  1433. Note: Root keys (['title'], ['artist'], etc) are NOT available
  1434. in this or future versions of getID3().
  1435. (thanks ahØartemis*dk)
  1436. » MD5 hashes are now available for all formats for both the entire
  1437. file (['md5_file']) and the portion of the file containing only
  1438. the audio/video data, stripped of all prepended/appended tags
  1439. like ID3v2, ID3v1, APE, etc - ['md5_data']
  1440. (thanks ahØartemis*dk for alternate md5_file() function that
  1441. runs on UNIX system running PHP < 4.2.0)
  1442. NOTE: Ogg files require the use of vorbiscomment to obtain the
  1443. md5_data value. vorbiscomment must be downloaded from
  1444. http://www.vorbis.com/download.psp and placed in the getID3()
  1445. directory. All Ogg formats (Vorbis, OggFLAC, Speex) are affected
  1446. by this problem, but only OggVorbis files can be processed with
  1447. vorbiscomment. OggFLAC and Speex files will be processed by
  1448. getID3(), but this may result in an incorrect value for md5_data
  1449. in the event that VorbisComments are larger than 1 page (4-8kB).
  1450. NOTE: md5_data for Ogg will not work if PHP is running in Safe
  1451. Mode
  1452. » There is now a wrapper class available, written by Allan Hansen,
  1453. which should simplify extracting most common basic information
  1454. (such as format, bitrate, comments).
  1455. New file: audioinfo.class.php
  1456. » OggWrite() in getid3.ogginfo.php has been replaced with a new
  1457. version that uses vorbiscomment to write the comments, because
  1458. of a reported bug that can corrupt OggVorbis files such they
  1459. cannot be played.
  1460. NOTE: Ogg comment writing now requires the use of vorbiscomment
  1461. which must be downloaded from http://www.vorbis.com/download.psp
  1462. and placed in the getID3() directory.
  1463. NOTE: Ogg comment writing will not work if PHP is running in
  1464. Safe Mode
  1465. ¤ New root key ['tags'] is now always returned for all formats.
  1466. It is an array that may contain any of:
  1467. * Native format tags: 'vqf', 'riff', 'vorbiscomment', 'asf',
  1468. 'nsv', 'real', 'midi', 'zip', 'quicktime'
  1469. * Appended data tags: 'ape', 'lyrics3', 'id3v2', 'id3v1'
  1470. ¤ New root key ['audio'] is an array containing any or all of:
  1471. codec, channels, channelmode, bitrate, bits_per_sample,
  1472. dataformat, bitrate_mode, sample_rate, encoder
  1473. Note: This replaces several root keys, including:
  1474. bitrate_audio, bits_per_sample, frequency, channels
  1475. ¤ New root key ['video'] is an array containing any or all of:
  1476. bitrate_mode, bitrate, codec, resolution_x, resolution_y,
  1477. resolution_y, frame_rate, encoder
  1478. Note: This replaces several root keys, including:
  1479. bitrate_video, resolution_x, resolution_y, frame_rate
  1480. ¤ ['id3']['id3v1'] has moved to ['id3v1']
  1481. ¤ ['id3']['id3v2'] has moved to ['id3v2']
  1482. ¤ ['audiodataoffset'] and ['audiodataend'] have been renamed to
  1483. ['avdataoffset'] and ['avdataend'] respectively
  1484. ¤ GetAllMP3info() has been changed to GetAllFileInfo() with a
  1485. different parameter list ($allowedFormats is no longer a
  1486. parameter). Check your code where you're calling
  1487. GetAllMP3Info() - you will need to change both the function
  1488. name and the parameter list if you pass more than 2 parameters
  1489. ¤ All formats now return ['audio']['dataformat'] and/or
  1490. ['video']['dataformat'] where appropriate - this goes along with
  1491. ['fileformat'] - ['fileformat'] will return the actual structure
  1492. of the file, whereas ['dataformat'] will return the format of
  1493. the data inside that structure. For example, an Ogg file can
  1494. contain Vobis data (normal), or it can contain FLAC data in the
  1495. Ogg container format. In that case, ['fileformat'] would be
  1496. 'ogg', but ['dataformat'] would be 'flac'.
  1497. Note: this means that WAV and AVI files now return a
  1498. ['fileformat'] of 'riff' rather than 'wav' or 'avi'.
  1499. ¤ ['filesize'] is no longer returned for files larger than 2GB
  1500. because PHP does not support large file access. Attempting to
  1501. parse a file larger than 2GB will result in a message stored in
  1502. ['error'] and ['filesize'] not set.
  1503. ¤ APEtag, ID3v1, and ID3v2 are now supported on ALL multimedia
  1504. files - even if illegal by format. Ogg will return warning if
  1505. ID3/APE tags are present. (thanks ahØartemis*dk)
  1506. ¤ All files: non-critical errors are now returned in the root key
  1507. ['warning'] rather than ['error'] (only critical errors that
  1508. prevent getID3() from correctly parsing the file are returned in
  1509. ['error'] (thanks ahØartemis*dk)
  1510. ¤ Renamed all references to $MP3fileInfo to $ThisFileInfo
  1511. ¤ Joliet now supported for ISO-9660.
  1512. ['iso']['supplementary_volume_descriptor'] is now returned, if
  1513. available, and ['iso']['files'] will contain ASCII equivalents
  1514. of the Unicode directory structure & filenames stored.
  1515. ¤ Moved Monkey's Audio code from getid3.ape.php to seperate file.
  1516. New file: getid3.monkey.php
  1517. ¤ Added new keys for ISO-9660: ['name_ascii'] for directories,
  1518. ['file_identifier_ascii'] for files
  1519. ¤ Added root key ['track'] for CD-audio files
  1520. ¤ Ogg/Vorbis-comment files now have comments returned inside
  1521. ['ogg']['comments_common'] as an array of strings, rather than
  1522. simple strings in ['ogg']
  1523. ¤ Quicktime files now have comments returned inside
  1524. ['quicktime']['comments'] as an array of strings, rather than
  1525. simple strings in ['quicktime']
  1526. ¤ ['mime_type'] is a new root key returned for all supported
  1527. formats (thanks ahØartemis*dk)
  1528. ¤ ['fileformat'] now returns 'mp1' instead of 'mp3' for MPEG-1
  1529. layer-I audio files (thanks ahØartemis*dk)
  1530. ¤ ['mpeg']['audio']['bitratemode'] now returns lowercase
  1531. ¤ MPEG-4 audio files which consist of MP3 data wrapped in a
  1532. Quicktime fileformat will now return the usual data in
  1533. ['mpeg']['audio']
  1534. ¤ Type-1 DV AVIs are now supported
  1535. ¤ DV AVIs will return 1 or 2 in ['RIFF']['video'][x]['dv_type']
  1536. ¤ Changed ['fileformat'] from 'mpg' to 'mpeg' for MPEG video files
  1537. ¤ ASF comments are now stored in ['asf']['comments'] instead of
  1538. ['asf']
  1539. ¤ RealMedia chunk data is now returned inside ['real']['chunks']
  1540. instead of ['real']
  1541. ¤ ['replay_gain'] now properly populated from APE tags
  1542. ¤ Added support for ASF_Old_ASF_Index_Object in ASF files
  1543. (thanks ahØartemis*dk)
  1544. ¤ AAC-ADTS files now return ['aac']['bitrate_distribution']
  1545. ¤ ParseVorbisComments() has been replaced with
  1546. ParseVorbisCommentsFilepointer() (with different parameters)
  1547. ¤ All references to any key ['frequency'] are now ['sample_rate']
  1548. ¤ Moved ID3v2 comments from ['id3v2'] into common root
  1549. ['comments'] structure, and now returns more values than before
  1550. * Bugfix: ['iso']['files'] and ['zip']['files'] could potentially
  1551. contain duplicate entries (in a numeric-indexed array) for files
  1552. if the directory structure specifies files multiple times.
  1553. Entries are now guaranteed unique, with the last entry for the
  1554. file overwriting any former ones.
  1555. * Bugfix: RIFF parsing had numerous issues, including:
  1556. - large AVIs would take a very very long time to parse
  1557. - chunks with odd (not even) sizes would cause the parser fail
  1558. - video and/or audio codecs not always identified
  1559. The ParseRIFF() function has been completely rewritten and fixes
  1560. all known issues with RIFF parsing. Users are, however,
  1561. encouraged to double-check output of any parsed (AVI/WAV/CDDA)
  1562. files.
  1563. * Bugfix: Modified getid3.riff.php to return correct total
  1564. bitrates for AVIs with multiple audio streams
  1565. * Bugfix: GetFileFormat() was not creating array structure
  1566. correctly (thanks ahØartemis*dk)
  1567. * Bugfix: LAME tag for MP3s can only specify up to 255kbps, so any
  1568. files with actual CBR bitrate of >=256 were reported incorrectly
  1569. * Bugfix: Lyrics3 synched lyrics were not being correctly returned
  1570. * Bugfix: CreateDeepArray() was broken for non-nested cases, which
  1571. meant ZIP and ISO ['files'] structures were broken
  1572. * Bugfix: Incorrect pattern matching for ZIP files meant no zip
  1573. files were being detected as such
  1574. * Bugfix: AAC-ADIF was returning an incorrect number of channels
  1575. (too few) in some cases (thanks ahØartemis*dk)
  1576. * Bugfix: Vorbis comments were returning an incorrect value for
  1577. ['dataoffset'] in some cases
  1578. * Bugfix: MPEG video ['marker_bit'] and ['vbv_buffer_size'] were
  1579. incorrect
  1580. * Bugfix: ['playtime_string'] could potentially have a value of
  1581. x minutes and 60 seconds (ie 3:60 instead of 4:00)
  1582. Added support for FLAC cuesheets (FLAC 1.1.0+)
  1583. (thanks ahØartemis*dk)
  1584. Improved parsing speed in MP3, MP2 and AAC (thanks ahØartemis*dk)
  1585. Extra error-checking added to try and identify corrupt files for
  1586. most audio formats (thanks ahØartemis*dk)
  1587. More accurate playtime calculation for RealMedia
  1588. (thanks ahØartemis*dk)
  1589. Changed all relevant files to use ['audiodataoffset'] and
  1590. ['audiodataend'] rather than ['filesize'] where appropriate
  1591. (thanks ahØartemis*dk)
  1592. Added text encoding type 255 as a duplicate of UTF-16BE but with
  1593. Big-Endian rather than Little-Endian byte order
  1594. Added many RIFF-AVI audio types and fourcc video types to the
  1595. lookup functions in getid3.riff.php
  1596. Added numerous new known GUIDs to getid3.asf.php
  1597. Added PoweredBygetID3() function to easily get a "powered by"
  1598. string with the current getID3() version.
  1599. Added "Morgan Multimedia Motion JPEG2000" (MJ2C), "DivX v5" (DX50)
  1600. and "XviD" (XVID) codecs to list of known codecs in
  1601. getid3.riff.php
  1602. Changed GETID3_INCLUDEPATH path seperators to forced /
  1603. (from \ for Windows)
  1604. Modified getid3.check.php to only change \ directory seperators to
  1605. / on Windows operating systems
  1606. Modified getid3.check.php to handle larger-than-2GB files (which
  1607. now do not return a filesize)
  1608. Modified getid3.check.php to handle ['dataformat_audio'] and
  1609. ['dataformat_video']
  1610. Modified getid3.check.php to show a list of present tags in one
  1611. column rather than one column for each of ID3v1, ID3v2, etc
  1612. Modified getid3.check.php to show MD5 values. Initially disabled
  1613. but can be enabled for a directory with a click. md5_file is
  1614. always calculated when displaying detailed info about a single
  1615. file; md5_data is calculated if the file is < 50MB
  1616. Modified getid3.check.php to show errors and warnings. Details are
  1617. visible with a mouseover or a click.
  1618. Changed getid3.check.php to use SafeStripSlashes instead of a
  1619. manual conditional directory name replacement for special
  1620. characters
  1621. Added sample recursive scanning sample code to getid3.readme.txt
  1622. (thanks lipisinØmail*ru for the idea)
  1623. 1.5.7: [January-10-2003] James Heinrich
  1624. » Added support for ISO 9660 (CD-ROM image) format. Most-useful
  1625. data is directory structure returned under ['iso']['files']
  1626. Note: Only ISO-9660 supported, not (yet) Joliet extension
  1627. (thanks nebula_djØsofthome*net for the idea)
  1628. New file: getid3.iso.php
  1629. ¤ ZIP files are now parsed by getID3() itself without relying on
  1630. built-in PHP functions and/or ZZipLib support.
  1631. (thanks Vince for the idea)
  1632. ¤ ZIP files now return a simple directory listing with filename
  1633. and filesize info only under ['zip']['files'].
  1634. Note: empty subdirectories will note appear in here, only files
  1635. and non-empty subdirectories. Information for all entries,
  1636. including empty subdirectories, is available under
  1637. ['zip']['central_directory'] (or under ['zip']['entries'] if the
  1638. Central Directory cannot be located (usually due to a trucated
  1639. file).
  1640. ¤ RIFF-WAV files with MP3 data (or MP3s with RIFF headers, if you
  1641. want to think of it that way) now have the MPEG audio portion
  1642. scanned and the usual data returned in ['mpeg']['audio'] if the
  1643. RIFF audio codec has wFormatTag of "85" (identified by getID3()
  1644. as "MPEG Layer 3")
  1645. (thanks ahØartemis*dk for the idea)
  1646. ¤ EXIF data (if present) is returned for JPEG files under
  1647. ['jpg']['exif'] (thanks nebula_djØsofthome*net)
  1648. ¤ ['filepath'] now returned for all files with the directory part
  1649. of the full filename.
  1650. ¤ ['filenamepath'] is now returned for all files (equivalent to
  1651. ['filepath'].'/'.['filename'])
  1652. * Bugfix: ['id3']['id3v2'][<framename>]['dataoffset'] was wrong
  1653. * Bugfix: MP3s tagged with iTunes have an invalid comment field
  1654. frame name ('COM ' - should be 'COMM') but the data is valid
  1655. otherwise; the frame is now renamed to 'COMM' and parsed
  1656. normally (with the error noted in ['error'])
  1657. (thanks kheller2Ømac*com for the sample file)
  1658. * Bugfix: Some ASF/WMA audio files were not being identified as
  1659. any format (thanks ahØartemis*dk)
  1660. * Bugfix: Warning now generated and ASCII format assumed for
  1661. invalid text encoding values in ID3v2
  1662. * Bugfix: Changed ZIP detection pattern from 'PK' to 'PK\x04\x03'
  1663. * Bugfix: Ogg/FLAC files with large Vorbis comments were dying in
  1664. an infinite loop with lots of error messages due to missing $fd
  1665. parameter on ParseVorbisComments() (thanks ahØartemis*dk)
  1666. * Bugfix: ['data'] and ['image_mime'] were being returned for all
  1667. Ogg comments even if they were not images for versions of PHP
  1668. that have image_type_to_mime_type() built in (ie PHP 4.3.0+)
  1669. 1.5.6: [December-31-2002] James Heinrich
  1670. » Added support for NSV (Nullsoft Streaming Video)
  1671. (www.nullsoft.com/nsv/)
  1672. (thanks demonØsoundplanet*com for the idea)
  1673. New file: getid3.nsv.php
  1674. » Added support for CD-audio track files (track01.cda etc)
  1675. ¤ Added standard ['frame_rate'] root value when known (AVI, NSV,
  1676. MPEG-video)
  1677. ¤ ASF files now report ['fileformat'] of:
  1678. 'wmv' when Windows Media Video codec v7/v8/v9 is used;
  1679. 'wma' when any 'Windows Media Audio' named audio codec is used
  1680. and no video stream is present;
  1681. 'asf' in all other cases (audio-only, video-only, or both)
  1682. ¤ Removed support for ZIP functions (will be rewritten to not
  1683. require ZZIPlib support in future versions)
  1684. ¤ Added function SafeStripSlashes() as a drop-in replacement for
  1685. stripslashes(), but that only strips slashes if magic_quotes_gpc
  1686. is set
  1687. ¤ Removed support for remote file scanning (HTTP / FTP)
  1688. ¤ Added ['aac']['frames'] (number of AAC frames in file)
  1689. ¤ Added ['mpeg']['audio']['frame_count'] when a bitrate histogram
  1690. is created
  1691. ¤ Average bitrate for VBR MP3/MP2 is calculated from actual counts
  1692. of frames of various bitrates (rather than relying on the header
  1693. values or filesize) when a bitrate histogram is created
  1694. ¤ RecursiveFrameScanning() split out into seperate function
  1695. (getid3.mp3.php)
  1696. ¤ Removed old function getMP3header() from getid3.mp3.php
  1697. ¤ Changed default MPEG_VALID_CHECK_FRAMES (number of mp3 frames
  1698. scanned to ensure a valid audio sequence has been located) from
  1699. 10 to 25. This means scanning will be slightly slower, but more
  1700. reliable/accurate
  1701. * Bugfix: ID3v2.2 - valid frame names not correctly detected
  1702. (thanks maeckerØweb*de for the sample file)
  1703. * Bugfix: ID3v2.2 - valid padding not correctly detected
  1704. (thanks maeckerØweb*de for the sample file)
  1705. * Bugfix: MIDI files with flat key signatures were not being
  1706. correctly reported (thanks alexleeisØshaw*ca for sample file)
  1707. * Bugfix: now returns message in ['error'] if file does not exist
  1708. * Bugfix: ['RIFF']['video'][x]['codec'] wasn't always being
  1709. correctly populated
  1710. * Bugfix: ['bitrate'] was incorrect for multi-stream RealMedia
  1711. * Bugfix: ['playtime_seconds'] was sometimes null or incorrect
  1712. for multi-stream RealMedia
  1713. * Bugfix: ChannelTypeID was incorrect in RVA2 ID3v2.4 frames
  1714. * Bugfix: Fixed potential divide-by-zero error for corrupt FLAC
  1715. files (thanks ahØartemis*dk)
  1716. * Bugfix: AAC-ADTS was not returning ['bitrate_mode'] unless
  1717. $ReturnExtendedInfo was TRUE (thanks ahØartemis*dk)
  1718. * Bugfix: LAME-encoded CBR MP3s now properly identified as CBR
  1719. with correct bitrate (thanks ahØartemis*dk)
  1720. * Bugfix: VBR MP2 (or headerless MP3) is now identified as VBR
  1721. rather than CBR. Note: to obtain VBR bitrate for headerless
  1722. files, the entire file is scanned and a histogram distribution
  1723. of bitrates is created, and the average bitrate calculated from
  1724. that. (thanks ahØartemis*dk for sample file)
  1725. Added support for DSIZ chunks in VQF, and checks to make sure size
  1726. of audio data matches DSIZ value, if present
  1727. (thanks ahØartemis*dk for sample file)
  1728. Rewrote GetAllMP3info() - removed some unneccesary code, changed
  1729. format-detection routine from ParseAsThisFormat() to
  1730. GetFileFormat() to allow for more flexible format parsing
  1731. (needed for ISO CD-ROM images, helpful for Quicktime and others)
  1732. Changed references in all files from string-cast indexes: ["$i"]
  1733. to non-cast indexes: [$i] where appropriate
  1734. Put a sans-serif 9pt style on all text in getid3.check.php
  1735. getAACADTSheaderFilepointer() now return TRUE if synch is lost
  1736. after the first frame has been successfully parsed (previously
  1737. it would return FALSE if synch was lost at any time, meaning the
  1738. file is most likely MP3, which was incorrect)
  1739. (thanks ahØartemis*dk for sample file)
  1740. Speed improvement code changes to getid3.mp3.php (up to 24% faster
  1741. in some cases) (thanks ahØartemis*dk for the code)
  1742. Changed all include_once() to require_once()
  1743. 1.5.5: [November-25-2002] James Heinrich
  1744. » Added support for La (Lossless Audio - www.lossless-audio.com)
  1745. (thanks ahØartemis*dk for the idea)
  1746. New file: getid3.la.php
  1747. ¤ Moved lookup functions from getid3.lookup.php to the files where
  1748. they are used.
  1749. New file: getid3.id3.php
  1750. New file: getid3.rgad.php
  1751. Removed file: getid3.lookup.php
  1752. ¤ getID3v1Filepointer() returns FALSE if ID3v1 tag not found
  1753. ¤ Added new paramter "ReturnExtendedInfo" to the function
  1754. getAACADTSheaderFilepointer() in getid3.aac.php which now
  1755. defaults to FALSE - if TRUE then the data for every frame is
  1756. returned (containing aac_frame_length, adts_buffer_fullness and
  1757. num_raw_data_blocks, which aren't usually very useful). Speed
  1758. improvement with FALSE is about 35%.
  1759. ¤ Now returns fopen() errors in ['error'], for example if a remote
  1760. file is not accessible.
  1761. ¤ Changed default number of MP3 audio frames to scan to determine
  1762. if a valid stream has been found from 5 to 10, now also defined
  1763. as a constant at the top of getid3.mp3.php This will result in
  1764. slightly slower MP3 parsing, but greater reliability in
  1765. detecting false/invalid/corrupted VBR headers.
  1766. ¤ fopen() errors now displayed in getid3.putid3.php
  1767. (thanks miguel.dieckmannØhamburg*de)
  1768. ¤ Added 4th parameter to decodeMPEGaudioHeader() $ScanAsCBR which
  1769. will force an MP3 audio frame sequence to be force-scanned in
  1770. CBR mode. You should never need to call this directly, it's only
  1771. used internally to scan for MP3 files that have an illegal VBR
  1772. header with CBR data. (thanks fletchØpobox*com)
  1773. * Bugfix: ASF_Marker_Object in getid3.asf.php was always returning
  1774. an error in non-existant "reserved_1" and failing
  1775. * Bugfix: VBR bitrate calculations in getid3.mp3.php only occur if
  1776. ['mpeg']['audio']['VBR_frames'] is defined.
  1777. (thanks fletchØpobox*com)
  1778. * Bugfix: getid3.putid3.php no longer deletes original MP3 if
  1779. ID3v2 tag writing fails (thanks miguel*dieckmannØhamburg*de)
  1780. * Bugfix: incorrect order of if-statement error messages in
  1781. getid3.putid3.php (thanks miguel*dieckmannØhamburg*de)
  1782. getid3.asf.php now notes the error and continues parsing rather
  1783. than failing when it encounters an error parsing a chunk
  1784. Now actually scan 1000 frames for AAC ADTS as reported in the
  1785. v1.5.4 changelog, rather than 100. (thanks ahØartemis*dk)
  1786. Improved scanning speed in getAACADTSheaderFilepointer() by ~30%
  1787. (thanks ahØartemis*dk for the fix)
  1788. Added FileSizeNiceDisplay() function to getid3.functions.php for
  1789. formatting filesize output in kB, MB, GB, etc.
  1790. 1.5.4: [October-07-2002] James Heinrich
  1791. » Added support for Quicktime.
  1792. New file: getid3.quicktime.php
  1793. » Added support for AAC files, both ADTS and ADIF header formats.
  1794. ADIF format is a pain because it's very similar to standard MP3
  1795. header format, and it's hard to distinguish between the two. I
  1796. have tried to make the detection accurate, but I have a limited
  1797. number of AAC test files to play with so if you have an AAC file
  1798. that gets detected as MP3/MP2 (or vice-versa), please send me
  1799. the details via email at infoØgetid3Øorg
  1800. ADTS format is very slow to parse because to get the bitrate of
  1801. VBR files the whole file has to be stepped through frame by
  1802. frame (getID3() scans up to the first 1000 frames and assumes
  1803. that to be close enough).
  1804. Note: I would suggest commenting out support for AAC (see top of
  1805. GetAllMP3info() function in getid3.php) unless you need it.
  1806. (thanks jfaulØgmx*de for the idea and sample Delphi source code)
  1807. New file: getid3.aac.php
  1808. » Added bitrate distribution analysis option for MP3 VBR files. A
  1809. new boolean parameter for getOnlyMPEGaudioInfo() enabled this
  1810. feature which steps through the MP3 file frame by frame and
  1811. counts how many frames of each bitrate exist. This information
  1812. is returned in ['mpeg']['audio']['bitrate_distribution']
  1813. Caution: this feature is very inefficient for large files and
  1814. takes a very long time and does lots of disk I/O. Use with care.
  1815. ¤ Changed layout of allowedFormats in GetAllMP3info() function in
  1816. getid3.php to allow easy removal of support for any of the
  1817. supported format. As stated above, I recommend commenting out
  1818. AAC unless needed.
  1819. ¤ Added ['flac']['compressed_audio_bytes'],
  1820. ['flac']['uncompressed_audio_bytes'], and
  1821. ['flac']['compression_ratio']
  1822. ¤ Replaced FXPT2DOT30toFloat() function with FixedPoint2_30()
  1823. * Bugfix: getid3.mpc.php was slightly miscalculating the number of
  1824. samples, therefore also bitrate and playtime
  1825. (thanks ahØartemis*dk for the fix)
  1826. * Bugfix: MonkeyCompressionLevelNameLookup() didn't know about
  1827. 'insane' compression (thanks ahØartemis*dk for the fix)
  1828. * Bugfix: MonkeySamplesPerFrame() was incorrect for MAC v3.95+
  1829. (thanks ahØartemis*dk for the fix)
  1830. * Bugfix: getid3.check.php wasn't processing the assumeFormat
  1831. directive when (register_globals == off)
  1832. * Bugfix: detecting of synch pattern for MP3 files with invalid
  1833. data at the beginning wasn't always correct, also meant possible
  1834. incorrect bitrate/duration/etc info for such corrupt files.
  1835. getid3.functions.php now includes a replacement utf8_decode()
  1836. function for those PHP installations that are not configured
  1837. with the --with-xml option. (thanks stephaneØtekartists*com)
  1838. 1.5.3: [September-30-2002] James Heinrich
  1839. » Added support for VQF. (thanks mtØmansonthomas*com for the idea)
  1840. New file: getid3.vqf.php
  1841. » Added support for FLAC. Comments, if present, are returned under
  1842. ['ogg'] because they follow the Ogg Vorbis structure standard.
  1843. New file: getid3.flac.php
  1844. ¤ OS/2-format bitmaps are now correctly interpreted. The format of
  1845. the bitmap is now returned in ['bmp']['type_os'] and
  1846. ['bmp']['type_version']. OS/2 bitmaps can be v1 or v2, Windows
  1847. can be v1, v4 or v5
  1848. 1.5.2: [September-25-2002] James Heinrich
  1849. » Support for RealMedia (audio & video) added
  1850. Note: only tested on G2 and v5 audio and video files - if anyone
  1851. has older and/or newer sample files, please test it and/or send
  1852. me the sample files.
  1853. (thanks stephaneØtekartists*com for idea)
  1854. New file: getid3.real.php
  1855. » Support for BMP added. Palette and pixel data can optionally be
  1856. extracted as well - this is slow and generally unneccesary, but
  1857. the option is there if you need it. Also includes PlotBMP()
  1858. which will take the extracted pixel data and output it as a true
  1859. color PNG. This function requires GD v2.0+
  1860. Note: Untested on 16-bit and 32-bit BMPs because I couldn't find
  1861. any sample files - if you know of a program that can create such
  1862. files, please email infoØgetid3Øorg
  1863. Note: Support for RGB (uncompressed), RLE8 and RLE4 is included
  1864. and tested. BITFIELDS support is also included for 16- & 32-bit
  1865. formats, but it's untested, so if anybody has any test files
  1866. please send them to infoØgetid3Øorg
  1867. Note: Support currently only for Windows-format BMPs, and trying
  1868. to parse an OS/2-format bitmap leads to unpredictable/invalid
  1869. results.
  1870. New file: getid3.bmp.php
  1871. » PNG now fully parsed, including all information chunks
  1872. New file: getid3.png.php
  1873. ¤ Support for GIF/JPG/PNG moved to seperate files and expanded,
  1874. including standard ['resolution_x'] and ['resolution_y'] as well
  1875. as more thorough parsing of header information
  1876. New file: getid3.gif.php
  1877. New file: getid3.jpg.php
  1878. table_var_dump() simplified and now outputs &#123;-style character
  1879. entities for characters outside the normal alphanumeric range
  1880. CleanOggCommentName() changed to a regular expression
  1881. (thanks chris-getid3Øbolt*cx for rewriting the function)
  1882. 1.5.1: [September-20-2002] James Heinrich
  1883. » Added support for MPEGplus/Musepack SV7. ['fileformat'] is 'SV7'
  1884. for version 7 files (versions 4, 5 ,6 and 8 are not supported
  1885. yet, but will be of ['fileformat'] SV4, SV5, SV6 and SV8) when
  1886. they are supported (thanks Christian Fritz for the idea)
  1887. New file: getid3.mpc.php
  1888. ¤ ['bitrate_audio'], ['bitrate_video'], ['bitrate_mode'],
  1889. ['channels'], ['resolution_x'], and ['resolution_y'] keys added
  1890. for all appropriate formats
  1891. ¤ Ogg files with a COVERART comment now save and display the
  1892. attached image the same way as is done with ID3v2 APICs
  1893. ¤ ['ogg']['comments'][n]['data'] and
  1894. ['ogg']['comments'][n]['dataoffset'] is now returned for all
  1895. comments. ['ogg']['comments'][n]['data'] is only useful if
  1896. the field is supposed to contain binary data. It is a
  1897. base64_decode()'d version of ['value'].
  1898. ['ogg']['comments'][n]['dataoffset'] is the byte offset in the
  1899. file at which the 'COMMENTNAME=value string' starts, not the
  1900. start of just 'value'
  1901. ¤ ['ogg']['comments'][n]['image_mime'] is now returned if
  1902. ['ogg']['comments'][n]['data'] contains valid image data.
  1903. ¤ More than 3 Ogg pages may now be read in, if the comment data
  1904. is longer than 1 page (usually about 4kB)
  1905. ¤ ['fileformat'] is now 'mp2' rather than 'mp3' if it's MPEG-1,
  1906. Layer-II audio
  1907. ¤ ASF bitrates now calculated even if stream_bitrate_properties
  1908. object not present
  1909. ¤ ['asf']['stream_properties_object'] is now a numeric-key array
  1910. with one entry for each stream - the key being the stream number
  1911. ¤ ['replay_gain'] is returned for all audio formats that support
  1912. it (MP3-LAME, ID3v2, Ogg) (thanks Christian Fritz for the idea)
  1913. ¤ ['mpeg']['audio']['LAME']['RGAD']['radio_replay_gain'] is now
  1914. ['mpeg']['audio']['LAME']['RGAD']['radio'] (same for audiophile)
  1915. ¤ ASF/WMA files now use WM/Track to get track number from if
  1916. WM/TrackNumber is not available (thanks stephaneØtekartists*com)
  1917. ¤ ASF/WMV files now returns ['year'] and ['asf']['year']
  1918. ¤ ASV/WMV files now use ['content_description']['description'] for
  1919. the ['comment'] field (thanks stephaneØtekartists*com)
  1920. ¤ ['track'] is now always returned as an integer
  1921. * Bugfix: Ogg comments that are larger than one data page (usually
  1922. about 4kB) are now correctly parsed (thanks Christian Fritz)
  1923. * Bugfix: Ogg comment data is now UTF8-decoded
  1924. * Bugfix: Ogg comment writing now UTF8-encodes the data
  1925. * Bugfix: playtime for ASF files was off by <preroll> (usually
  1926. between 3 and 12 seconds)
  1927. * Bugfix: ['asf']['stream_properties_objects']['flags'] data was
  1928. possibly incorrect
  1929. * Bugfix: ASF Padding Object was overwriting
  1930. Stream Bitrate Properties Object data (now returned correctly in
  1931. ['asf']['padding_object']
  1932. * Bugfix: ASF Marker Object Reserved_2 field was incorrect
  1933. * Bugfix: ASF Bitrate Mutual Exclusion Object had incorrect stream
  1934. numbers
  1935. Warning displayed if incorrectly-formatted Ogg comment is present
  1936. (known to be an issue with CDex v1.40, but fixed by v1.50b7)
  1937. (thanks Christian Fritz)
  1938. Ogg comment writing now checks for valid comment names
  1939. Added bitrate column in getid3.check.php, and added some formatting
  1940. (font, colour)
  1941. Performance tweaks using bitwise math instead of binary string
  1942. operations
  1943. 1.5.0: [September-18-2002] James Heinrich
  1944. » Ogg comment writing support added. getid3.write.php has been
  1945. updated to allow for writing comment tags to both MP3 and Ogg.
  1946. Big thanks to Chris Bolt <chris-getid3Øbolt*cx> for writing the
  1947. OggWrite() function and offering it for inclusion in getID3()
  1948. New file: getid3.ogginfo.php
  1949. » Support for Monkey's Audio and APE tag added.
  1950. (thanks Christian Fritz for the idea)
  1951. New file: getid3.ape.php
  1952. ['fileformat'] now returns 'mac' for Monkey's Audio files, or
  1953. 'ape' for files with an APE tag (Monkey's Audio or other format)
  1954. » getid3.thumbnail.php has been removed from the distribution and
  1955. the table_var_dump() function now outputs APICs as seperate
  1956. files in the same directory as the analyzed file. This should
  1957. make the image-displaying more reliable as well as reduce
  1958. complexity. The naming convention for the images is
  1959. filename.ext.[byte offset of APIC data].[jpg|gif|png]
  1960. If anybody still has any problems with corrupted images please
  1961. let me know at infoØgetid3Øorg
  1962. » Support for extended Xing/LAME tag
  1963. (see http://users.belgacom.net/gc247244/extra/tag.html)
  1964. Data is returned in ['mpeg']['audio']['LAME']
  1965. ¤ ['ogg']['tracknumber'] has been renamed to ['ogg']['track'] and
  1966. ['track'] is now returned in the root of the array
  1967. ¤ ['ogg']['pageheader'][n]['flag'] has been renamed to
  1968. ['ogg']['pageheader'][n]['flags'] and the unprocessed flag byte
  1969. is available in ['ogg']['pageheader'][n]['flags_raw']
  1970. ¤ ['frequency'] is now returned for WAVE files in the root of the
  1971. array (thanks danielØelectroteque*org)
  1972. ¤ ASF files now return codec, bitrate, resolution, etc information
  1973. under ['asf']['video_media'] or ['asf']['audio_media']
  1974. * Bugfix: RVA2 and EQU2 writing in getid3.putid3.php were
  1975. incorrectly writing Volume Adjustment field
  1976. * Bugfix: EQU2 in getid3.frames.php was reading Volume Adjustment
  1977. as unsigned integer instead of signed integer
  1978. * Bugfix: handling of remote files over HTTP & FTP was broken
  1979. (thanks Vince)
  1980. * Bugfix: incorrect handling of some ASF packets
  1981. ASF/Windows Media format now more fully parsed, including Index
  1982. Objects
  1983. Added several new fourCC video codecs
  1984. 1.4.3: [September-15-2002] James Heinrich
  1985. » Now parses ASF / WMV / WMA files
  1986. ¤ New file: getid3.asf.php
  1987. * Bugfix: RoughTranslateUnicodeToASCII() would return nothing
  1988. if didn't find a terminator it was expecting
  1989. Added FILETIMEtoUNIXtime() function (for converting 64-bit
  1990. Microsoft FILETIME timestamps, used in ASF files and elsewhere,
  1991. to UNIX Epoch timestamps)
  1992. Added GUIDtoBytestring() and BytestringToGUID() functions
  1993. 1.4.2: [September-12-2002] James Heinrich
  1994. » getID3() now requires PHP v4.1.0 or higher because it now is
  1995. designed to work with register_globals = off and the new auto-
  1996. globals ($_GET, $_SERVER, etc).
  1997. * Bugfix: VBR MP3 files with Fraunhofer-style VBR header were not
  1998. being correctly detected in most cases
  1999. (thanks dkushnerØoddcast*com and mikeØftl*com for sample files)
  2000. * Bugfix: IsValidTextEncoding() was broken
  2001. * Bugfix: Add stripslashes($EditorFilename) to getid3.write.php
  2002. (writing was broken for files with ' or " in the filename)
  2003. (thanks mikeØftl*com and kthejoker)
  2004. * Bugfix: If there is garbage data between a valid VBR header
  2005. frame and a sequence of valid MPEG-audio frames the VBR data is
  2006. no longer discarded. (thanks to mikeØftl*com for sample
  2007. Fraunhofer-style VBR file produced with MusicMatch v7.2)
  2008. ¤ Changed variable system to work with (register_globals = off)
  2009. ¤ Moved relevant code into seperate PlaytimeString() function
  2010. ¤ Added nl2br() to table_var_dump() for cleaner output
  2011. ¤ Now returns the following keys from Fraunhofer-VBR files:
  2012. ['VBR_seek_offsets'], ['VBR_seek_offsets_stride'],
  2013. ['VBR_offsets_relative'] and ['VBR_offsets_absolute']
  2014. ¤ Added ID3v1matchesID3v2() function and implemented in
  2015. getid3.check.php (thanks to "Guest" in the forums for the idea)
  2016. Changed amount of data read in getid3.getimagesize.php from 10kB
  2017. to entire file. (thanks mikeØftl*com)
  2018. Wrapped function_exists() checks around function definitions in
  2019. getid3.functions.php
  2020. Fixed a lot of E_WARNING and E_NOTICE situations, especially in
  2021. ID3-writing code (getid3.putid3.php, etc)
  2022. Added checks to make sure all needed data is available for writing
  2023. ID3v2 tags
  2024. 1.4.1b5: [May-30-2002] James Heinrich
  2025. * Bugfix: Unsynchronise() was broken, now fixed
  2026. (thanks mikeØftl*com)
  2027. * Bugfix: GenerateID3v2Tag() now correctly uses non-synchsafe
  2028. integers for frame size descriptors in ID3v2.3 and ID3v2.2
  2029. (thanks mikeØftl*com)
  2030. ¤ Added ['artist'], ['title'], etc keys to root of returned
  2031. array to provide a common place to access any returned info
  2032. from any file type. Currently gets info from ID3v1, ID3v2,
  2033. Ogg, and RIFF/WAVE. Possible returned keys are:
  2034. title, artist, album, year, genre, comment, track
  2035. ¤ Modified LookupGenre() function to search for either genre based
  2036. on numeric ID, or now reverse lookup as well
  2037. ¤ Added ['artist'], ['title'], etc keys to ['RIFF'] information
  2038. if info tags are present
  2039. Added functionality to attach a picture to the ID3v2 tag in
  2040. getid3.write.php
  2041. Sorted genres into alphabetical order (special 3 at end of list)
  2042. in getid3.write.php
  2043. Changed the comment-edit field in getid3.write.php to a multi-line
  2044. <textarea> from a single-line <input>
  2045. getid3.write.php now only writes ID3v2 frames that have data
  2046. Added default TXXX field to getid3.write.php to put a tagger info
  2047. field when writing ID3v2 tags. Description is "ID3v2-tagged by"
  2048. and data is "getID3() v[version] (www.silisoftware.com)"
  2049. Changed getid3.check.php to use the new common info keys
  2050. Improved file-format detection in getid3.check.php - if the auto-
  2051. detect based on the first few bytes of the file doesn't find a
  2052. known format (for example if the header is corrupt), a more
  2053. thorough scan is done based on the file extension
  2054. Added 'Edit ID3' link from getid3.check.php to getid3.write.php for
  2055. MP3 files (thanks maxØgutalin*com for the idea)
  2056. Added 'Delete file' link from getid3.check.php to getid3.write.php
  2057. allowing you to permanently delete a file (be careful with this!!)
  2058. (thanks maxØgutalin*com for the idea)
  2059. Added some mouse-over titles for links in getid3.check.php
  2060. 1.4.1b4: [May-15-2002] James Heinrich
  2061. * Bugfix: getid3.check.php wasn't parsing MP3s with invalid headers
  2062. or padding at the beginning of the file - added 'assumeFormat'
  2063. parameter and 'Parse this file as:' options to force parsing in a
  2064. particular format (thanks Alcohol for the sample file)
  2065. * Bugfix: unset(['fileformat']) and ['error'] added in cases where
  2066. file cannot be parsed in the assumed or forced format
  2067. 1.4.1b3: [May-01-2002] James Heinrich
  2068. ¤ For Ogg files, now calculates the real average bitrate (returned
  2069. in ['ogg']['bitrate_average']) and so the playtime of the file is
  2070. calculated on actual average bitrate, not nominal bitrate, so it
  2071. should be accurate now (thanks to stephaneØtekartists*com for
  2072. telling me it was wrong)
  2073. * Bugfix: ID3v2FrameIsAllowed() wasn't behaving properly if the
  2074. writing functions were called for more than one file, because of
  2075. the static array not being cleared between uses. This is an
  2076. updated fix because the one in 1.4.1b2 didn't work :o)
  2077. (thanks soulcatcherØevilsoft*org and yoyo)
  2078. Added rawurlencode() to the filename parameter in table_var_dump()
  2079. for images (wouldn't work with path/file names containing special
  2080. characters (#, &, ", +) (thanks Christian Fritz)
  2081. getid3.check.php no longer attempts to scan all MIDI tracks in
  2082. directory-browse mode, since this can take a long time. Detailed
  2083. single-file view is still fully scanned (new third parameter for
  2084. getMIDIHeaderFilepointer() controls this)
  2085. Small improvements to MoreNaturalSort()
  2086. 1.4.1b2: [April-18-2002] James Heinrich
  2087. ¤ GetAllMP3Info()'s 2nd parameter has changed from boolean to string
  2088. (now specifying the parse-this-file-as-this format, like 'mp3',
  2089. but also can be FALSE to mean don't assume any format, auto-detect
  2090. only), and a third parameter (array containing allowed formats)
  2091. has been added. The assumedFormat parameter allows a file to be
  2092. forced to be parsed as a certain format rather than relying on the
  2093. auto-detection of getID3() (ex: an MP3 wrapped in a RIFF/WAV
  2094. header will be auto-detected as RIFF/WAV, but if forced to parse
  2095. as MP3 will extract the original MP3 information)
  2096. (thanks reel_tazØusers*sourceforge*net)
  2097. * Bugfix: ID3v2FrameIsAllowed() wasn't behaving properly if the
  2098. writing functions were called for more than one file, because of
  2099. the static array not being cleared between uses (thanks yoyo)
  2100. * Bugfix: Lyrics3 data wasn't being properly copied from the ['raw']
  2101. keys to the easy keys (['title'], etc.) (thanks Christian Fritz)
  2102. * Bugfix: some testing code was accidentally left in
  2103. getid3.thumbnail.php (thanks Christian Fritz)
  2104. * Bugfix: RIFF/WAVE files are now more likely to have all their
  2105. chunks parsed.
  2106. * Bugfix: RIFF/WAVE bitrate & playtime now better calculated
  2107. * Bugfix: MP3 scanning for synch doesn't go beyond 64k now, to stop
  2108. intensive scanning through large file that don't have a synch
  2109. (thanks soulcatcherØevilsoft*org for a weird sample file)
  2110. Improved performance when scanning for MP3 synch (about 600% faster
  2111. if the synch is never found)
  2112. ZIP files no longer return the contents of each compressed file, as
  2113. that would very easily be more data than PHP could handle.
  2114. (thanks davidbullockØtech-center*com)
  2115. getid3.check.php now displays entries in a more natural sort order:
  2116. case insensitive, ignores most punctuation, treats accented chars
  2117. the same as their unaccent equivalent (thanks mikeØftl*com)
  2118. Added support for SmartSound-format RIFF files (which are regular
  2119. RIFF/WAVE files with the first 4 chars changed from RIFF to SDSS)
  2120. All instances of while(list() = each()) replaced with foreach()
  2121. 1.4.1b1: [April-11-2002] James Heinrich
  2122. » Parses MIDI files.
  2123. NOTE: very slow at parsing, much slower than any other file type
  2124. NOTE: playtime is generally mostly accurate, but not always 100%
  2125. » Parses ZIP files (if ZZIPlib available, and only in PHP 4.0.7RC1
  2126. and later (see http://www.php.net/manual/en/ref.zip.php)
  2127. NOTE: currently untested as I'm unable to find php_zip.dll for
  2128. PHP/Win32 - if someone has a copy of this file, please email me:
  2129. infoØgetid3Øorg
  2130. » Parses JPEG files (requires GD installed)
  2131. » Parses PNG files (requires GD v1.6+ installed)
  2132. » Parses GIF files (requires GD < v1.6 installed)
  2133. » For MP3s, once a valid synch is detected, the next 5 frames are
  2134. also scanned for valid synch signatures, to prevent false
  2135. identification of synch. For corrupt MP3 files this will be a bit
  2136. slower, but hopefully produce more reliable results.
  2137. (Thanks to mpdjØbtinternet*com for bringing this to my attention,
  2138. and xbhoffØpacbell*net for explaining what was happening)
  2139. (Thanks also to macik for helping me with MP3 frame lengths:
  2140. http://66.96.216.160/cgi-bin/YaBB.pl
  2141. ?board=c&action=display&num=1018474068)
  2142. » The actual image data is now displayed (for JPEG, PNG and GIF
  2143. images only) rather than a binary text dump in getid3.check.php
  2144. (specifically table_var_dump()) for APIC frames. Made possible
  2145. by the inclusion of (a modified version of) GetURLImageSize() by
  2146. Filipe Laborde-Basto (www.rezox.com). You can right-click, save-as
  2147. to extract the image to a file.
  2148. NOTE: The actual image data is still returned in ['data']
  2149. ¤ ['image_mime'], ['image_width'], ['image_height'], ['image_bytes']
  2150. are now returned for APICs
  2151. ¤ split parsing functions out into seperate files: lyrics3, id3v1,
  2152. id3v2, mp3, ogg, riff, mpeg, midi, zip
  2153. ¤ ['ogg']['bitrate_ave'] -> ['ogg']['bitrate_nominal'] (thanks to
  2154. stephaneØtekartists*com for pointing out that "nominal" bitrate
  2155. may actually differ significantly from the "average" bitrate)
  2156. The real average bitrate seems to be only extractable by parsing
  2157. the entire file and calculating the average bitrate. This is not
  2158. yet an option, but hopefully in a future version of getID3()
  2159. ¤ ['filename'] now returned for all files
  2160. ¤ ['ogg']['date'] and ['ogg']['description'] now returned when
  2161. available (thanks stephaneØtekartists*com)
  2162. ¤ ['mpeg']['audio']['crc'] now contains the CRC (if present)
  2163. ¤ ['bitrate'] is now returned as a double instead of an int
  2164. ¤ ['dataoffset'] is now returned for all ID3v2 frames
  2165. * Bugfix: MP3 CRC presence ['mpeg']['audio']['protection'] was being
  2166. reported as opposite of what it actually should be
  2167. * Bugfix: MPEG videos weren't being detected (they were being
  2168. parsed as MP3), and even if they were, there was a typo in
  2169. getMPEGHeaderFilepointer() (thanks Christian Fritz)
  2170. * Bugfix: getid3.functions.php wasn't being included in
  2171. getid3.write.php (thanks mikeØftl*com)
  2172. * Bugfix: Browse:___ directory name in getid3.check.php wasn't
  2173. correct with directory names with ' and other strange characters
  2174. (thanks Christian Fritz)
  2175. ID3v2FrameProcessing() now checks to see if the next frame is valid
  2176. after it encounters an invalid FrameID, and if the next frameID
  2177. appears valid, it will just skip the current (invalid) frame and
  2178. continue processing (it would previously abort at the first sign
  2179. of incorrect structure) (thanks stephaneØtekartists*com)
  2180. getid3.check.php now scans filetypes based on content, not filename
  2181. extension, and shows the filetype in the displayed output. Files
  2182. are only scanned as MP3 if ID3v2 or MPEG-audio signatures are at
  2183. the immediate beginning of the file (MP3 used to be the default
  2184. format), so a corrupt file may not show up as MP3 format in the
  2185. browse screen, but in detail it will scan in-depth
  2186. getid3.check.php now has columns to show the presence of ID3v1,
  2187. ID3v2 and Lyrics3 content
  2188. Helium2 (www.helium2.com) has been known to write ID3v2.4 tags with
  2189. non-synchsafe-integer framesizes, getID3() now checks for this and
  2190. will override and parse the tag as ID3v2.3 if the tag would parse
  2191. fine as ID3v2.3 when it's really specified as ID3v2.4 (thanks
  2192. Christian Fritz for the test files)
  2193. 1.4.0b9: [April-05-2002] James Heinrich
  2194. » Ogg files now return bitrate and playtime (playtime calculated
  2195. from nominal bitrate and filesize, so it's only approximately
  2196. accurate). (thanks stephaneØtekartists*com for the idea)
  2197. * Bugfix: ID3v1 tags were not properly being parsed - track, genre
  2198. and comment fields were incorrect. (thanks Christian Fritz)
  2199. * Bugfix: getid3.check.php would not browse directories with single
  2200. quotes (') or double quotes (") in the directory name.
  2201. (thanks Christian Fritz)
  2202. * Bugfix: Improved detection of MPEG-video files (a sample MP3 file
  2203. had a false MPEG video signature at the beginning), and the MPEG-
  2204. video parsing function now only looks for the MPEG-video header
  2205. in the first 100k bytes of the file, to prevent needlessly
  2206. scanning very large files. Also will not infinitely loop if it
  2207. does not find what it's looking for. (thanks Christian Fritz)
  2208. ['error'] now returned if MP3 synch doesn't occur at beginning of
  2209. file if ID3v2 not used (ie there's some kind of padding there that
  2210. should not be)
  2211. Reduced use of fread() in getMPEGHeaderFilepointer() (now faster)
  2212. Added "file parsed in x.xxx seconds" to getid3.check.php
  2213. Added "browse: <directory>" link to getid3.check.php
  2214. Changed default ID3v2 majorversion from 2.4 to 2.3 in
  2215. getid3.write.php because Winamp (and probably many other
  2216. ID3v2-aware tools) can only read up to ID3v2.3
  2217. (thanks mikeØftl*com)
  2218. 1.4.0b8: [April-04-2002] James Heinrich
  2219. » Lyrics3 support added (thanks Christian Fritz for the idea)
  2220. ¤ check.php renamed to getid3.check.php
  2221. ¤ write.php renamed to getid3.write.php
  2222. ¤ ['id3']['id3v2']['error'] (if present) now reported in ['error']
  2223. ¤ ['mpeg']['audio']['error'] (if present) now reported in ['error']
  2224. * Bugfix: RoughTranslateUnicodeToASCII() was completely mangling
  2225. UTF-16/UTF-16BE encoded text
  2226. * Bugfix: The warning about MP3ext wasn't always showing up
  2227. (thanks davidbullockØtech-center*com)
  2228. getID3v1Filepointer() cleaned up & shortened
  2229. Moved the include_once() statements around so that a minimum of code
  2230. is included
  2231. 1.4.0b7: [April-03-2002] James Heinrich
  2232. » RIFFs (specifically AVIs) are now more completely parsed,
  2233. almost everything in the returned ['RIFF'] array has been moved
  2234. around and/or restructured. A lot of new data is in there too -
  2235. codecs, frame size, etc.
  2236. ¤ Better recursive parsing of RIFFs (sub-arrays are now in the right
  2237. place)
  2238. * Bugfix: the isset() idea introduced in beta 5 was incorrectly
  2239. implemented, such that ['asciidata'] and ['asciidescription'] were
  2240. never returned - this had the side effect that ID3v2 comments were
  2241. not copied to ['id3']['id3v2']['comment'] (thanks mikeØftl*com)
  2242. * Bugfix: MPEG audio synch wasn't being detected, and therefore MPEG
  2243. audio data not parsed, if no ID3v2 header present in an MP3
  2244. ID3v1 track number only returned if greater than zero
  2245. Removed !== FALSE (introduced in 1.4.0b6) from while(fread()) loops,
  2246. some users were reporting problems with that syntax.
  2247. Changed substr($string, 0, 1) to $string{0} syntax in most files
  2248. Reformatted changelog.txt to 72-column width
  2249. 1.4.0b6: [April-01-2002] James Heinrich
  2250. * Bugfix: 1.4.0b5 introduced a bug where any RIFF file other than
  2251. PCM WAVE (this includes any compressed WAV, as well as all AVIs)
  2252. would crash getID3()
  2253. Reduced use of fread() in getOggHeaderFilepointer() for increased
  2254. speed
  2255. Added constant FREAD_BUFFER_SIZE for many fread() operations
  2256. Added !== FALSE check to while(fread()) loops
  2257. (thanks davidbullockØtech-center*com)
  2258. Added more entries to RIFFwFormatTagLookup()
  2259. (still looking for a good complete list)
  2260. Converted use of hexdec() in getid3.lookup.php to 0x1234 notation
  2261. 1.4.0b5: [March-28-2002] James Heinrich
  2262. ¤ Renamed decodeheader() to decodeMPEGaudioHeader()
  2263. * Bugfix: Fixed infinite loop problem for RIFF/WAV files with
  2264. unknown chunks
  2265. * Bugfix: WXXX frames were incorrectly writing from ['URL'] instead
  2266. of ['url']
  2267. * Bugfix: RoughTranslateUnicodeToASCII() wasn't properly decoding
  2268. UTF-16/UTF-16BE
  2269. Changed all quoted strings from " to ' to hopefully improve speed
  2270. (although benchmarks have not yet shown any significant
  2271. improvement in speed) (thanks davidbullockØtech-center*com)
  2272. Improved code in check.php for dealing with symbolic links
  2273. (thanks davidbullockØtech-center*com)
  2274. Changed '<?' tags to '<?php' (thanks davidbullockØtech-center*com)
  2275. Added processing time indicator in check.php
  2276. (ie 'directory scanned in 2.45 seconds')
  2277. Replaced all instances of feof() to prevent infinite loop conditions
  2278. Moved lookup portions of decodeMPEGaudioHeader() to
  2279. getid3.lookup.php
  2280. Replaced $arrayname[$index] with $arrayname["$index"] to avoid PHP
  2281. E_NOTICEs (thanks davidbullockØtech-center*com)
  2282. Wrapped isset() around many if statements, to avoid PHP E_NOTICEs,
  2283. hence improve speed (up to 30x speed improvement reported in some
  2284. cases :)
  2285. 1.4.0b4: [March-26-2002] James Heinrich
  2286. ¤ RIFF/WAV file format now parsed, returned under ['riff']
  2287. ¤ Support for Relative Gain Adjustment in RIFF/WAV files
  2288. ¤ ['channels'] (1 or 2) now returned for MP3 and WAV files
  2289. ¤ ['bitrate'] now returned (in bits-per-second) at root level for
  2290. MP3 and WAV files
  2291. Added support for RGAD (Relative Gain ADjustment) ID3v2 frames, both
  2292. reading & writing
  2293. (see http://privatewww.essex.ac.uk/~djmrob/replaygain/ for details
  2294. on RGAD) (thanks Christian Fritz for the idea)
  2295. Removed some test data-dumping from the ID3v2 writing functions
  2296. Language code 'XXX' now returns descriptive string 'unknown' instead
  2297. of NULL
  2298. Seperated out comments from top of getid3.php into getid3.readme.txt
  2299. and changelog.txt
  2300. Split out non-lookup functions from getid3.lookup.php to
  2301. getid3.functions.php
  2302. 1.4.0b3: [March-25-2002] James Heinrich
  2303. ¤ ['asciidata'] for WXXX frames now returns correct information, but
  2304. under ['asciidescription'] (thanks Christian Fritz)
  2305. ¤ Added ['framenamelong'] to all returned frame data arrays with
  2306. text description of that frame (ie 'RVA2' would return 'Relative
  2307. volume adjustment (2)') (thanks Christian Fritz)
  2308. ¤ ['datalength'] is now ['indexeddatalength'] in ASPI frames (was
  2309. confliciting with the all-frames ['datalength'] as introduced in
  2310. v1.4.0b1
  2311. ¤ ['datalength'] now returned as integer (rather than double) where
  2312. possible
  2313. 1.4.0b2: [March-21-2002] James Heinrich
  2314. ¤ ['mpeg']['audio']['bitrate'] now returned as int rather than
  2315. double for VBR files
  2316. * Bugfix: MPEG audio information wasn't being parsed on files that
  2317. had neither ID3v1 or ID3v2
  2318. * Bugfix: COMM/WXXX frames weren't returning 'asciidata' in
  2319. ID3v2.2, which also meant the ['id3']['id3v2']['comment'] field
  2320. wasn't being returned (thanks stephaneØtekartists*com)
  2321. * Bugfix: file might not be found if filename actually contains
  2322. escaped chars or %xx-formatted characters
  2323. (thanks reel_tazØusers*sourceforge*net)
  2324. Added support for running with Register Globals turned off
  2325. (thanks reel_tazØusers*sourceforge*net)
  2326. Added urlencode() where needed in check.php
  2327. (thanks reel_tazØusers*sourceforge*net)
  2328. Fixed IE buffering/display problem in progress counter in check.php
  2329. 1.4.0b1: [March-11-2002] James Heinrich
  2330. » ID3v2 writing support via WriteID3v2() in putid3.php
  2331. RemoveID3v2() and RemoveID3v1() functions now available in
  2332. putid3.php All ID3v1 and ID3v2 writing functions have been moved
  2333. to putid3.php and example file write.php has been added to the
  2334. distribution
  2335. ¤ MPEG audio frame information (bitrate, frequency, etc) now
  2336. returned inside ['mpeg']['audio'] instead of just ['mpeg']
  2337. ¤ MPEG video information now parsed, returned in ['mpeg']['video']
  2338. Note: audio portion of video system files is not yet being parsed
  2339. ¤ All flag bits are now returned as boolean rather than int or
  2340. string
  2341. ¤ RVA2 data now returned as an array (multiple RVA2 tags are
  2342. allowed)
  2343. ¤ RVA2/EQU2 description returned under ['description'] rather than
  2344. ['identification']
  2345. ¤ RVAD/EQUA adjustments now returned as signed integers, rather than
  2346. absolute values which required you to check flag bytes
  2347. ¤ RVRB/REV data no longer returns under ['reverb'] array
  2348. ¤ WXXX/W???/LINK frames now return ['url'] instead of ['URL']
  2349. ¤ USER now properly returns both ['language'] and ['languagename']
  2350. ¤ OWNE now returns ['purchasedateunix'] as a UNIX timestamp
  2351. (only if ['purchasedate'] is a valid date)
  2352. ¤ ['id3']['id3v2']['padding'] now returned with information on padding
  2353. ¤ ['headerlength'] now includes the initial 6 or 10 bytes of the
  2354. ID3v2 header
  2355. ¤ ['artist'], ['title'], ['album'], ['tracknumber'], ['genre'] now
  2356. returned for easier access for Ogg files
  2357. ¤ added ['datalength'] to all ID3v2 frames: length of frame data,
  2358. not including frame header
  2359. ¤ ['fileformat'] now returns 'id3' if there are ID3v1 or ID3v2 tags
  2360. but no audio data
  2361. ¤ ['fileformat'] now returns 'mpg' if it's an MPEG system (video +
  2362. audio) file
  2363. * Bugfix: RVAD was being parsed incorrectly
  2364. * Bugfix: ['currency'] and ['purchasedate'] now correctly returned
  2365. in OWNE
  2366. * Bugfix: Frequncies in 'EQU2' frames were incorrectly double
  2367. * Bugfix: ['bytedeviation'] and ['msdeviation'] now properly
  2368. returned as integer rather than binary string for 'MLLT' frames
  2369. * Bugfix: ['filename'] now properly returned for 'GEOB' frames
  2370. * Bugfix: ['imagetype'] now properly returned for 'PIC' frames in
  2371. ID3v2.2
  2372. * Bugfix: Genre not being written if not set in WriteID3v1()
  2373. (thanks reel_tazØusers*sourceforge*net)
  2374. * Bugfix: Changed write mode to 'r+b' from 'a+' because ID3v1 tags
  2375. were being appended instead of overwritten if they already existed
  2376. (thanks reel_tazØusers*sourceforge*net)
  2377. * Bugfix: open would fail on filenames containing quotes
  2378. (thanks javierØcrackdealer*com)
  2379. * Bugfix: various values were incorrectly returned (unneeded ord())
  2380. in these frames: COMR, USER, ENCR, GRID, PRIV, SIGN
  2381. * Bugfix: ASPI ['bitsperpoint'] was not correctly returned
  2382. * Bugfix: RoughTranslateUnicodeToASCII() was not returning the last
  2383. char for UTF-16
  2384. * Bugfix: ['audiobytes'] now correctly 0 if no synch found
  2385. * Bugfix: GenreLookup was incorrectly returning 'Remix' instead of
  2386. 'Blues' for GenreID 0
  2387. Added sample directory browser to check.php
  2388. Seperated out MPEGaudio-parsing functionality into
  2389. getOnlyMPEGaudioInfo() which may be called directly if you don't
  2390. need any ID3 parsing (thanks djpretzelØcox*rr*com for idea)
  2391. Reduced use of fread() for increased performance in
  2392. getID3v1Filepointer()
  2393. Added clearstatcache() before checking filesize - size after writing
  2394. tag now correct
  2395. Added hack for mp3Rage (www.chaoticsoftware.com) that puts
  2396. ID3v2.3-formatted MIME type instead of 3-char ID3v2.2-format image
  2397. type (thanks xbhoffØpacbell*net for test file)
  2398. 1.3.2: [February-15-2002] James Heinrich
  2399. ¤ UFID/UFI, USLT/ULT, COMM/COM, APIC/PIC, GEOB/GEO, CRM, RVA2, EQU2,
  2400. POPM/POP, AENC/CRA, ENCR and GRID frame data now returned under
  2401. numeric array index rather than by ownerID
  2402. ¤ RVA2 frame data is now returned keyed by $channeltypeid instead of
  2403. $frame_idstring
  2404. ¤ WXXX/WXX frame description now returned under ['description']
  2405. instead of ['data']
  2406. Trailing null bytes now trimmed from frame (W??? & T???) text data
  2407. (it shouldn't be there to begin with, but a sample file encoded by
  2408. [unknown program] had data padded to 50 chars with null bytes,
  2409. which caused ParseID3v2GenreString() to freeze).
  2410. 1.3.1: [February-13-2002] James Heinrich
  2411. * Bugfix: ['playtime_seconds'] and ['playtime_string'] were not
  2412. being returned
  2413. * Bugfix: ['fileformat'] was incorrectly being returned as a
  2414. 2-element array
  2415. * Bugfix: USLT wasn't being correctly parsed
  2416. Improved RoughTranslateUnicodeToASCII()
  2417. (thanks reel_tazØusers*sourceforge*net for Unicode test file)
  2418. 1.3.0: [February-13-2002] James Heinrich
  2419. » ID3v1 writing support via WriteID3v1()
  2420. ¤ MPEG audio frame information (bitrate, frequency, etc) now
  2421. returned inside ['mpeg']
  2422. ¤ ['mpeg']['raw'] returns the integer values of the bits for MPEG
  2423. audio information as returned in ['mpeg'] by decodeheader()
  2424. (thanks reel_tazØusers*sourceforge*net)
  2425. ¤ 'protection', 'padding', 'private', 'copyright' and 'original' now
  2426. return as boolean
  2427. ¤ 'bitrate' and 'frequency' now return as int (except in special
  2428. case of 'free')
  2429. Language name as well as code retured where appropriate
  2430. (ie 'English' and 'eng')
  2431. Text frames with invalid TextEncoding value are now passed through
  2432. anyway
  2433. ID3v1 data (title, artist, album, year, comment) is now trimmed
  2434. (no more nulls)
  2435. RoughTranslateUnicodeToASCII() now uses utf8_decode() for UTF-8
  2436. 1.2.5: [January-30-2002] James Heinrich
  2437. * Bugfix: Playtime calculations for VBR files were off slightly
  2438. (rounding error)
  2439. * Bugfix: Extended header length was incorrectly calculated
  2440. * Bugfix: Genre strings such as '03' weren't being handled correctly
  2441. More complete support for ID3v2.3 FrameIDs
  2442. Split out getid3.frames.php (FrameID-specific parsing function)
  2443. Split out getid3.lookup.php (assorted lookup-table functions)
  2444. Searches for what directory getid3.*.php support files are in (must
  2445. be same as getid3.php, but doesn't have to be same as main file -
  2446. for example your main file could be /index.php, but including
  2447. /lib/getid3/getid3.php)
  2448. Simplified, tweaked, changed and/or eliminated several functions.
  2449. 1.2.4: [January-26-2002] James Heinrich
  2450. » Basic support for reading Ogg-Vorbis comment tags
  2451. 1.2.3: [January-24-2002] James Heinrich
  2452. » ID3v2.2.x 3-char FrameIDs are now fully parsed
  2453. Note: While I've included support for 22 FrameIDs as defined in
  2454. the specs, I don't have test files for all of them. If anyone
  2455. knows of programs that generate any of the untested tags, please
  2456. email infoØgetid3Øorg ! Here's what's tested and not:
  2457. Tested: T??, COM
  2458. Untested: UFI, TXX, W??, WXX, IPL, MCI, ETC, MLL, STC, ULT, SLT,
  2459. RVA, EQU, REV, PIC, GEO, CNT, POP, BUF, CRM, CRA, LNK
  2460. table_var_dump() now displays boolean variables as TRUE or FALSE
  2461. table_var_dump() now uses htmlspecialchars() to avoid broken-table
  2462. problems
  2463. 1.2.2: [January-18-2002] James Heinrich
  2464. ¤ Parses ID3v2 genres into ['id3']['id3v2']['genreid'] and
  2465. ['id3']['id3v2']['genrelist'] where appropriate
  2466. (thanks stephaneØtekartists*com for the idea)
  2467. Added ID3v2 genre abbreviations 'RX' (remix) and 'CR' (cover)
  2468. 1.2.1: [January-17-2002] James Heinrich
  2469. * Bugfix: 'mp3' was being returned in ['format'], but 'zip' was
  2470. being returned in ['fileformat'], both are now returned in
  2471. ['fileformat']
  2472. ¤ Splits ['id3']['id3v2']['track'] in the format '5/12' into
  2473. ['track'] = '5' and ['totaltracks'] = '12'
  2474. ¤ Enabled ['id3']['id3v2']['title'] etc for ID3v2.2.x
  2475. (3-char frame names) (thanks stephaneØtekartists*com)
  2476. ¤ Changed v1.?? version number format to v1.?.?
  2477. Scans through the file until it finds the MPEG synch (start of audio
  2478. frame) - some files encoded by LAME 3.91 had undocumented padding
  2479. after the ID3v2 header; getMP3headerFilepointer() now scans until
  2480. it finds synch (or EOF) (thanks adamØtrekjapan*com)
  2481. Improved Unicode conversion in RoughTranslateUnicodeToASCII()
  2482. 1.20: [January-15-2002] James Heinrich
  2483. » Support for variable-bitrate (VBR) files, both Xing and Fraunhofer
  2484. headers
  2485. » All 4-character FrameIDs are now fully parsed according to the
  2486. specs at http://www.id3.org/id3v2.4.0-frames.txt
  2487. ¤ This means that most no longer return ['flags'] and ['data']
  2488. Note: While I've included support for 30 FrameIDs as defined in
  2489. the specs, I don't have test files for all of them. If anyone
  2490. knows of programs that generate any of the untested tags, please
  2491. email infoØgetid3Øorg ! Here's what's tested and not:
  2492. Tested: UFID, T???, WXXX, USLT, SYLT, COMM, APIC, GEOB
  2493. Untested: TXXX, W???, MCDI, ETCO, MLLT, SYTC, RVA2, EQU2, RVRB,
  2494. PCNT, POPM, RBUF, AENC, USER, OWNE, COMR, ENCR, GRID,
  2495. PRIV, SIGN, SEEK, ASPI
  2496. ¤ Added 'title', 'artist', etc names to ID3v2 data (easier to access
  2497. than the 4-character FrameIDs of the ID3v2 standard)
  2498. (thanks jaksonØgmx.net)
  2499. * Bugfix: added fclose() at end of GetAllMP3Info()
  2500. (thanks stephaneØtekartists*com)
  2501. * Bugfix: ID3v1 wasn't being parsed if ID3v2 wasn't present
  2502. (thanks jaksonØgmx.net)
  2503. * Bugfix: several flags were being parsed incorrectly (the structure
  2504. had changed from ID3v2.3 to ID3v2.4) - v2.3 flags were being
  2505. incorrectly parsed
  2506. Much more compact implementation of decodeheader()
  2507. (thanks jaksonØgmx.net for the idea)
  2508. ID3v1 genres 126 through 147 (thanks jaksonØgmx.net)
  2509. New table_var_dump() function in check.php
  2510. (based partially on idea by jaksonØgmx.net)
  2511. Seperated ID3v1 retrieval into seperate function
  2512. 1.11: [December-23-2001] James Heinrich
  2513. All functions merged into file getid3.php
  2514. Updated documentation to reflect new returned information
  2515. 1.10: [December-20-2001] James Heinrich
  2516. * Bugfix: ID3v1 Track# was incorrectly being parsed whether it
  2517. existed or not
  2518. Changed calling procedure to recommend using
  2519. GetAllMP3info($filename) from getmp3header.php
  2520. Now includes check.php - example file
  2521. ¤ Checks to see if file is in ZIP or MP3 format
  2522. (returned in ['format'])
  2523. [Ed. Note: ['fileformat'] as of v1.2.1]
  2524. 1.06: [November-05-2001] James Heinrich
  2525. * Bugfix: ID3v2.2.x frames weren't being parsed since they use
  2526. 6-byte rather than 10-byte headers as v2.3+ does
  2527. (thanks spunkØmac*com for pointing that out)
  2528. 1.05: [September-06-2001] James Heinrich
  2529. * Bugfix: ID3v2 was being parsed even if it didn't exist
  2530. 1.04: [July-16-2001] James Heinrich
  2531. * Bugfix: typo in Extended Header section (strpad() should be
  2532. str_pad()) (thanks jurroonØyahoo*com)
  2533. 1.03: [May-07-2001] James Heinrich
  2534. * Bugfix: Added missing ['id3']['id3v1']['genreid'] and
  2535. ['id3']['id3v1']['genre']
  2536. 1.02: [May-05-2001] James Heinrich
  2537. ¤ Added ['getID3version']
  2538. 1.01: [May-04-2001] James Heinrich
  2539. » Added support for frame-level de-unsynchronisation (as per
  2540. ID3v2.4.0 specs) in addition to ID3v2.3.x tag-level
  2541. de-unsynchronisation
  2542. 1.00: [May-04-2001] James Heinrich
  2543. » Initial public release