How do I install getID3?

Multimedia and getID3?

getID3 is a PHP script that extracts data from MP3s & other multimedia file formats.

The extracted multimedia data can then be manipulated to be displayed on a website, or wherever else you may want?

Topics:


Download getID3:

Where can I Find it?

  • Everything you need to know about getID3 can be found at getid3.org.
  • If you’re using WordPress, getID3 is already included in the core WordPress files, so you don’t need to download anything. See my article on How to use Multimedia Metadata in WordPress for more info:

How do I install getID3?

Installation is straight forward. Download getID3 from getid3.org, or the other locations provided (Github, SourceForge, etc) on the getID3 website.

Un-zip the files onto your website’s server…

  • I placed the unzipped files in a folder I called it getid3, in the root of my website on my testing server (localhost). You can place the file where you want, but make sure you use the correct path to call the files.
  • The path I used was as follows:

D:\websites\XAMPP\htdocs\example.com

getID3 – Files (Example Install Location)
  • If testing locally (localhost), make sure your server is running (I’m using the XAMPP package).
  • Presuming you called the folder getid3 and placed it inside the root of your site, type the following in your browser (to display the ‘demo.browse.php’ page):

https://example.com/getID3/demos/demo.browse.php

getID3 – Path to demo.browse.php
  • The demo page ‘demo.browse.php’ is displayed.
  • You may get a security message ‘ For security reasons, this demo has been disabled. It can be enabled by removing line 15 in demos/demo.browse.php’
getID3 – Warning Message (Security)
  • Open ‘demo.browse.php’ using a text or code editor, and remove (delete) the line (in this case it was line 15 – See the images above and below).
getID3 Security – This demo has been disabled. It can be enabled by removing line…
  • Once removed, save the file and refresh the browser to re-load the ‘demo.browse.php’ page.
  • You will now get the following page (or something similar).
getID3 – The demo.browse.php Page

You now have getID3 working.


Testing getID3:

If you have downloaded the ‘getID3’ files, you can test ‘getID3’ as follows (using ‘demo.browse.php’ ).

  • Go to the ‘demo.browse.php’ search box and type in a location where an mp3 or similar media file can be found (that has ID3 tags).
getID3 – Search Box ( demo.browse.php)
  • Click the go button.
  • A list of files will be displayed.
getID3 – Search Box Results (demo.browse.php)
  • Click on a media file that’s been listed (highlighted blue).
  • It’s ID3 tags and a whole list of other attributes will appear.
getID3 – ID3 tag Media Results (demo.browse.php)

get id3 Example:

Here is an example where getID3 has been used to build a web page that displays a list of songs on a music player. getID3 has been used to automatically populate the fields in the music player.

Using getID3 to Retrieve Metadata and Insert it in a Music Player

When you add a song to the page, getID3 pulls out the metadata from the music file, and places it in the music player alongside the song. It’s great, you don’t have to type a thing!

Here’s a link to a working example:

Marie – My Songs (works in progress)

Do you use WordPress? I have another article that explains a bit more about how to use getID3 with WordPress.


getID3 Errors?

ERROR: Could not open directory: /

The correct path has probably not been specified in the browser.

  • Note: the full path has to be used. A good example is to display a WordPress page, you may only have to specify the shorter ‘theme’ directory path. i.e.

‘https://example.com/media/’

  • Whereas with getID3 you need to specify the full path.

Using the getID3 ‘demo.browse.php’ search box. type in the full path:

D:/websites/XAMPP/htdocs/example.com/wp-content/themes/example/assets/media

  • A good clue is the path displayed directly above the getID3 ‘demo.browse.php’ search box (see the image below).
getID3 – Search Box Path (demo.browse.php)
  • Which would give you the media file results:
getID3 – Search Box Media Results (demo.browse.php)

Other getID3 Articles:

For WordPress users, see my article on How to use Multimedia Metadata in WordPress for more info:

Exit mobile version