MP3 Info

This plugin can be used to extract header information from a given mp3-file.
It does NOT read ID3-tags, just the standard header according to the MP3 specification plus the filesize in human-readable format.

I used it mainly to gather information for a podcast-feed without the need of custom fields where the publisher has to enter things like length etc.

Usage:

{exp:mp3info file="http://gadgets.silenz.org/mp3/Tom_Sawyer.mp3" path="/home/noone/htdocs/mp3/"}
{version_id}
{version}
{layer_id}
{layer}
{protection}
{bitrate}
{sampling_rate}
{padding}
{private}
{channel_mode}
{copyright}
{original}
{filesize}
{length}
{
/exp:mp3info}

Parameters:

We need the full path to the mp3-file. There are two parameters to achieve this:

file=""

  1. If this is the full path + the filename, the path-paramter must not be used.
  2. If this is the filename only, specify the path in the path-paramter.
  3. If this is the URL to the file, the filename will be extracted. Specify the path in the path-paramter.

path=""

The full path to the file. Use only in cases 2. and 3. explained above.

Variables:

All the ones in the above usage example.

This plugin requires the cache-folder in your ExpressionEngine system directory to be writeable by ExpressionEngine. A folder named ‘MP3info’ will be created there where cached file-information will be stored.

Download: pi.mp3info.zip
3.28 KB

If you found something useful here and want to show your appreciation feel free to


Comments:

1 of 1 pages

This plugin is currently only intended to work for local files, that is true.

Posted by  on  02/15  at  08:54 PM

It looks like this plugin requires the MP3 files to be local on the server, right? If not, what might be used for the path variable if the files are remotely hosted?

Thanks!

Posted by John  on  02/15  at  10:14 AM

1 of 1 pages