MP3 Info
Plugins
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=""
- If this is the full path + the filename, the path-paramter must not be used.
- If this is the filename only, specify the path in the path-paramter.
- 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


