barefootsanders Posted August 14, 2007 Share Posted August 14, 2007 Hey everyone, Is there anyway to extract the metadata i.e. title, artist, album, from audio files using PHP?? Thanks for any help in advance. -Barefoot Quote Link to comment https://forums.phpfreaks.com/topic/64784-extracting-metadata-using-php/ Share on other sites More sharing options...
keeB Posted August 14, 2007 Share Posted August 14, 2007 Sure there is. Use fopen() and read up on mp3 Quote Link to comment https://forums.phpfreaks.com/topic/64784-extracting-metadata-using-php/#findComment-323185 Share on other sites More sharing options...
teng84 Posted August 14, 2007 Share Posted August 14, 2007 you can also use file_get_contents http://www.php.net/manual/en/function.file-get-contents.php see related topic there Quote Link to comment https://forums.phpfreaks.com/topic/64784-extracting-metadata-using-php/#findComment-323192 Share on other sites More sharing options...
barefootsanders Posted August 14, 2007 Author Share Posted August 14, 2007 you can also use file_get_contents http://www.php.net/manual/en/function.file-get-contents.php see related topic there So I attempted to use this method and I got random code like this, "!©ªâêzhÌsù¼,˜Ie×kk‰". How can I specify or parse out the metadata that I would need? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/64784-extracting-metadata-using-php/#findComment-323201 Share on other sites More sharing options...
barefootsanders Posted August 14, 2007 Author Share Posted August 14, 2007 you can also use file_get_contents http://www.php.net/manual/en/function.file-get-contents.php see related topic there Sure there is. Use fopen() and read up on mp3 How would I extract metadata from the fopen() response? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/64784-extracting-metadata-using-php/#findComment-323202 Share on other sites More sharing options...
keeB Posted August 14, 2007 Share Posted August 14, 2007 Read up on ID3 tags and how they are embedded in to media files. We gave you the ground work, you seem to be competent, follow through Quote Link to comment https://forums.phpfreaks.com/topic/64784-extracting-metadata-using-php/#findComment-323203 Share on other sites More sharing options...
teng84 Posted August 14, 2007 Share Posted August 14, 2007 Read up on ID3 tags and how they are embedded in to media files. We gave you the ground work, you seem to be competent, follow through relax even if your right take it easy cool ;D ;D try http://www.php.net/manual/en/function.file.php if you know array then this will help you better Quote Link to comment https://forums.phpfreaks.com/topic/64784-extracting-metadata-using-php/#findComment-323204 Share on other sites More sharing options...
barefootsanders Posted August 14, 2007 Author Share Posted August 14, 2007 Read up on ID3 tags and how they are embedded in to media files. We gave you the ground work, you seem to be competent, follow through ID3 tags, right, got it.. Thanks for the help! Quote Link to comment https://forums.phpfreaks.com/topic/64784-extracting-metadata-using-php/#findComment-323208 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.