require_once('../getid3/getid3.php');
$getID3 = new getID3;
$ThisFileInfo = $getID3->analyze($filename);
getid3_lib::CopyTagsToComments($ThisFileInfo);
if (!empty($ThisFileInfo['tags']['picture'])) {
foreach ($ThisFileInfo['tags']['picture'] as $key => $value) {
file_put_contents($ThisFileInfo['filename'].'.pic'.$key.'.jpg', $value);
}
}Array
(
[GETID3_VERSION] => 1.8.5-20110218
[filesize] => 6018994
[avdataoffset] => 174879
[avdataend] => 6018994
[fileformat] => mp3
[audio] => Array
(
[dataformat] => mp3
[channels] => 2
[sample_rate] => 44100
[bitrate] => 320000
[channelmode] => stereo
[bitrate_mode] => cbr
[lossless] =>
[encoder_options] => CBR320
[compression_ratio] => 0.22675736961451
[streams] => Array
(
[0] => Array
(
[dataformat] => mp3
[channels] => 2
[sample_rate] => 44100
[bitrate] => 320000
[channelmode] => stereo
[bitrate_mode] => cbr
[lossless] =>
[encoder_options] => CBR320
[compression_ratio] => 0.22675736961451
)
)
)
[tags] => Array
(
[id3v2] => Array
(
[title] => Array
(
[0] => Gyallis 4 Eva
)
[artist] => Array
(
[0] => Flex
)
[composer] => Array
(
[0] => Produced By Chimney Records
)
[album] => Array
(
[0] => (2009)Movie Star Riddim*** (Produced By Chimney Records)
)
[description] => Array
(
[0] => Jamaica
)
[year] => Array
(
[0] => 2009
)
[genre] => Array
(
[0] => Dancehall
)
[comments] => Array
(
[0] => May 12
[1] => 0000103E 0000107E 000069D6 000084B8 000113B6 00013C6D 00008D0D 00008B69 0001A778 00021282
[2] => 00000000 00000210 000009AD 00000000006244C3 00000000 00590BEB 00000000 00000000 00000000 00000000 00000000 00000000
[3] => 1
)
[encoded_by] => Array
(
[0] => iTunes 8.1.1.10
)
[picture] => Array
(
[0] => Array
(
[data] => �����JFIF���d�d�����Ducky�����d�����Adobe�d���������
[image_mime] => image/jpeg
)
)
)
)require_once('../getid3/getid3.php');
$getID3 = new getID3;
$ThisFileInfo = $getID3->analyze($filename);
getid3_lib::CopyTagsToComments($ThisFileInfo);
if (!empty($ThisFileInfo['tags']['picture'])) {
foreach ($ThisFileInfo['tags']['id3v2']['picture'] as $key => $valuearray) {
if (isset($valuearray['data']) && isset($valuearray['image_mime'])) {
file_put_contents($ThisFileInfo['filename'].'.pic'.$key.'.'.str_replace('image/', '', $valuearray['image_mime']), $valuearray['data']);
}
}
}
if (!empty($ThisFileInfo['comments']['picture'])) {
foreach ($ThisFileInfo['comments']['picture'] as $key => $value) {
file_put_contents($ThisFileInfo['filename'].'.pic'.$key.'.jpg', $value);
}
}if (!empty($ThisFileInfo['tags']['picture'])) {if (!empty($ThisFileInfo['tags']['id3v2']['picture'])) {print_r($ThisFileInfo);$getPID3->option_tag_id3v2 = true;Array ( [GETID3_VERSION] => 1.9.1-20110810 [filesize] => 3823533 [filename] => Arash_and_Helena_-_Broken_angel.mp3 [filepath] => D:/Program Files/Apache Group/Apache/htdocs/joomla25/music [filenamepath] => D:/Program Files/Apache Group/Apache/htdocs/joomla25/music/Arash_and_Helena_-_Broken_angel.mp3 [avdataoffset] => 252 [avdataend] => 3823533 [fileformat] => mp3 [audio] => Array ( [dataformat] => mp3 [channels] => 2 [sample_rate] => 44100 [bitrate] => 160000 [channelmode] => stereo [bitrate_mode] => cbr [codec] => LAME [encoder] => LAME3.98r [lossless] => [encoder_options] => CBR160 [compression_ratio] => 0.113378684807 [streams] => Array ( [0] => Array ( [dataformat] => mp3 [channels] => 2 [sample_rate] => 44100 [bitrate] => 160000 [channelmode] => stereo [bitrate_mode] => cbr [codec] => LAME [encoder] => LAME3.98r [lossless] => [encoder_options] => CBR160 [compression_ratio] => 0.113378684807 ) ) ) [tags] => Array ( [id3v2] => Array ( [title] => Array ( [0] => Broken Angel ) [artist] => Array ( [0] => Arash & Helena ) [encoder_settings] => Array ( [0] => LAME 64bits version 3.98.4 (http://www.mp3dev.org/) ) [length] => Array ( [0] => 191111 ) ) ) [encoding] => UTF-8 [id3v2] => Array ( [header] => 1 [flags] => Array ( [unsynch] => [exthead] => [experim] => ) [majorversion] => 3 [minorversion] => 0 [headerlength] => 252 [tag_offset_start] => 0 [tag_offset_end] => 252 [encoding] => UTF-8 [comments] => Array ( [title] => Array ( [0] => Broken Angel ) [artist] => Array ( [0] => Arash & Helena ) [encoder_settings] => Array ( [0] => LAME 64bits version 3.98.4 (http://www.mp3dev.org/) ) [length] => Array ( [0] => 191111 ) ) [TIT2] => Array ( [0] => Array ( [frame_name] => TIT2 [frame_flags_raw] => 0 [data] => Broken Angel [datalength] => 13 [dataoffset] => 10 [framenamelong] => Title/songname/content description [framenameshort] => title [flags] => Array ( [TagAlterPreservation] => [FileAlterPreservation] => [ReadOnly] => [compression] => [Encryption] => [GroupingIdentity] => ) [encodingid] => 0 [encoding] => ISO-8859-1 ) ) [TPE1] => Array ( [0] => Array ( [frame_name] => TPE1 [frame_flags_raw] => 0 [data] => Arash & Helena [datalength] => 15 [dataoffset] => 33 [framenamelong] => Lead performer(s)/Soloist(s) [framenameshort] => artist [flags] => Array ( [TagAlterPreservation] => [FileAlterPreservation] => [ReadOnly] => [compression] => [Encryption] => [GroupingIdentity] => ) [encodingid] => 0 [encoding] => ISO-8859-1 ) ) [COMM] => Array ( [0] => Array ( [frame_name] => COMM [frame_flags_raw] => 0 [data] => [datalength] => 5 [dataoffset] => 58 [framenamelong] => Comments [framenameshort] => comment [flags] => Array ( [TagAlterPreservation] => [FileAlterPreservation] => [ReadOnly] => [compression] => [Encryption] => [GroupingIdentity] => ) [encodingid] => 0 [encoding] => ISO-8859-1 [language] => eng [languagename] => English [description] => ) ) [TSSE] => Array ( [0] => Array ( [frame_name] => TSSE [frame_flags_raw] => 0 [data] => LAME 64bits version 3.98.4 (http://www.mp3dev.org/) [datalength] => 52 [dataoffset] => 73 [framenamelong] => Software/Hardware and settings used for encoding [framenameshort] => encoder_settings [flags] => Array ( [TagAlterPreservation] => [FileAlterPreservation] => [ReadOnly] => [compression] => [Encryption] => [GroupingIdentity] => ) [encodingid] => 0 [encoding] => ISO-8859-1 ) ) [TLEN] => Array ( [0] => Array ( [frame_name] => TLEN [frame_flags_raw] => 16384 [data] => 191111 [datalength] => 7 [dataoffset] => 135 [framenamelong] => Length [framenameshort] => length [flags] => Array ( [TagAlterPreservation] => [FileAlterPreservation] => 1 [ReadOnly] => [compression] => [Encryption] => [GroupingIdentity] => ) [encodingid] => 0 [encoding] => ISO-8859-1 ) ) [padding] => Array ( [start] => 152 [length] => 100 [valid] => 1 ) ) [mime_type] => audio/mpeg [mpeg] => Array ( [audio] => Array ( [raw] => Array ( [synch] => 4094 [version] => 3 [layer] => 1 [protection] => 1 [bitrate] => 10 [sample_rate] => 0 [padding] => 0 [private] => 0 [channelmode] => 0 [modeextension] => 0 [copyright] => 0 [original] => 0 [emphasis] => 0 ) [version] => 1 [layer] => 3 [channelmode] => stereo [channels] => 2 [sample_rate] => 44100 [protection] => [private] => [modeextension] => [copyright] => [original] => [emphasis] => none [padding] => [bitrate] => 160000 [framelength] => 522 [bitrate_mode] => cbr [VBR_method] => Xing [xing_flags_raw] => 15 [xing_flags] => Array ( [frames] => 1 [bytes] => 1 [toc] => 1 [vbr_scale] => 1 ) [VBR_frames] => 7317 [VBR_bytes] => 3823281 [toc] => Array ( [0] => 0 [1] => 3 [2] => 5 [3] => 7 [4] => 11 [5] => 13 [6] => 15 [7] => 17 [8] => 21 [9] => 23 [10] => 25 [11] => 29 [12] => 31 [13] => 33 [14] => 35 [15] => 39 [16] => 41 [17] => 43 [18] => 47 [19] => 49 [20] => 51 [21] => 53 [22] => 57 [23] => 59 [24] => 61 [25] => 64 [26] => 67 [27] => 69 [28] => 71 [29] => 75 [30] => 77 [31] => 79 [32] => 81 [33] => 85 [34] => 87 [35] => 89 [36] => 92 [37] => 95 [38] => 97 [39] => 99 [40] => 103 [41] => 105 [42] => 107 [43] => 110 [44] => 113 [45] => 115 [46] => 117 [47] => 120 [48] => 123 [49] => 125 [50] => 128 [51] => 130 [52] => 133 [53] => 135 [54] => 138 [55] => 141 [56] => 143 [57] => 145 [58] => 148 [59] => 151 [60] => 153 [61] => 156 [62] => 158 [63] => 161 [64] => 163 [65] => 166 [66] => 169 [67] => 171 [68] => 174 [69] => 176 [70] => 179 [71] => 181 [72] => 184 [73] => 186 [74] => 189 [75] => 192 [76] => 194 [77] => 197 [78] => 199 [79] => 202 [80] => 204 [81] => 207 [82] => 209 [83] => 212 [84] => 214 [85] => 217 [86] => 220 [87] => 222 [88] => 225 [89] => 227 [90] => 230 [91] => 232 [92] => 235 [93] => 238 [94] => 240 [95] => 242 [96] => 245 [97] => 248 [98] => 250 [99] => 253 ) [LAME] => Array ( [short_version] => LAME3.98r [RGAD] => Array ( [track] => Array ( [raw] => Array ( [name] => 1 [originator] => 3 [sign_bit] => 1 [gain_adjust] => 96 ) [name] => Track Gain Adjustment [originator] => determined automatically [gain_db] => -9.6 ) ) [raw] => Array ( [vbr_method] => 1 [RGAD_track] => 11872 [RGAD_album] => 0 [abrbitrate_minbitrate] => 160 [noise_shaping] => 2 [stereo_mode] => 1 [not_optimal_quality] => 0 [source_sample_freq] => 1 [mp3_gain] => 0 [surround_info] => 0 ) [vbr_quality] => 57 [tag_revision] => 0 [vbr_method] => cbr [lowpass_frequency] => 17500 [encoding_flags] => Array ( [nspsytune] => 1 [nssafejoint] => 1 [nogap_next] => [nogap_prev] => ) [ath_type] => 4 [encoder_delay] => 576 [end_padding] => 576 [noise_shaping] => 2 [stereo_mode] => stereo [not_optimal_quality] => [source_sample_freq] => 44.1 kHz [mp3_gain_db] => 0 [mp3_gain_factor] => 1 [surround_info] => no surround info [preset_used_id] => 160 [preset_used] => --alt-preset cbr 160 [audio_bytes] => 3823281 [music_crc] => 50562 [lame_tag_crc] => 14249 ) ) ) [replay_gain] => Array ( [track] => Array ( [originator] => determined automatically [adjustment] => -9.6 [volume] => 98.6 ) [reference_volume] => 89 ) [playtime_seconds] => 191.16405 [tags_html] => Array ( [id3v2] => Array ( [title] => Array ( [0] => Broken Angel ) [artist] => Array ( [0] => Arash & Helena ) [encoder_settings] => Array ( [0] => LAME 64bits version 3.98.4 (http://www.mp3dev.org/) ) [length] => Array ( [0] => 191111 ) ) ) [bitrate] => 160000 [playtime_string] => 3:11 [comments] => Array ( [title] => Array ( [0] => Broken Angel ) [artist] => Array ( [0] => Arash & Helena ) [encoder_settings] => Array ( [0] => LAME 64bits version 3.98.4 (http://www.mp3dev.org/) ) [length] => Array ( [0] => 191111 ) ) [comments_html] => Array ( [title] => Array ( [0] => Broken Angel ) [artist] => Array ( [0] => Arash & Helena ) [encoder_settings] => Array ( [0] => LAME 64bits version 3.98.4 (http://www.mp3dev.org/) ) [length] => Array ( [0] => 191111 ) ) )
Please open up /demo/demo.browse.php, browse to the file in question (D:/Program Files/Apache Group/Apache/htdocs/joomla25/music/Arash_and_Helena_-_Broken_angel.mp3), and then email me the HTML of that page, it would be useful to me.ecolora wrote:I'm not using /demo/demo.browse.php
Return to Support 1.x (resolved)
Users browsing this forum: No registered users and 0 guests