반응형
Read MP3 ID3 Tag Script for PHP
$id3_tags = mp3_get_tags($file); $id3_tags["title"]; // Title of mp3 file $id3_tags["album"]; // Album Title of mp3 file $id3_tags["artist"]; // Artist Tag $id3_tags["year"]; // Year $id3_tags["comment"]; // Title of mp3 file $id3_tags["genre"]; // Genre can be text or numeric value representing genre $id3_tags["genre_name"] = mp3_get_genre_name($id3_tags["genre"]); // Get genre name from number value
$id3_tags["id3_tag_version"]; // ID3 Tag Version; 1, 2.2, 2.3 or 2.4
$id3_tags["version"]; // MPEG Audio version ID
$id3_tags["layer"]; // MPEG Audio layer description
$id3_tags["crc"]; // 0 = Yes using CRC. 1 = No CRC
$id3_tags["bitrate"]; // Ex: 64, 128, 160, 320. CBR (Constant Bit Rate)
$id3_tags["frequency"]; // Sampling Rate Frequency
$id3_tags["filesize"]; // Size of mp3 file
$id3_tags["duration"]; // Duration of mp3 in seconds. Probably only correct for CBR not VBR
$id3_tags["formatted_time"]; // Duration of mp3 in i:s. Probably only correct for CBR not VBR
http://www.seabreezecomputers.com/tips/mp3_id3_tag.htm
반응형
댓글