We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

MP3 Duration Plugin

Development and Programming

inoa's avatar
inoa
35 posts
17 years ago
inoa's avatar inoa

This isn’t a full release, but just a note out to anyone who is interested in working on or implementing something similiar…

For AncientFaith.com, we’ve developed a plugin that returns an iTunes duration tag (for podcast feeds) in the MM:SS format.

It’s got some dependencies (the getid3 php library, which needs to be local to the audio files) and relies heavily on the feed_enclosure plugin, but it’s working.

I’d be happy to put you in touch with our developer if you’re interested.

  • John
       
silenz's avatar
silenz
1,648 posts
17 years ago
silenz's avatar silenz

There is also a plugin named MP3info which seems do to something similar.

       
inoa's avatar
inoa
35 posts
17 years ago
inoa's avatar inoa

Man. I’m sad to hear that – glad it exists just a little frustrated since I had searched and searched before. This looks much more developed, in any case, than what we came up with.

       
inoa's avatar
inoa
35 posts
17 years ago
inoa's avatar inoa

Actually, maybe this isn’t all in vain. It seems that this plugin can’t read ID3 tags at all. Also – a big issue for us – it seems to require that the MP3s are hosted on the same server as the EE install.

       
Simon Job's avatar
Simon Job
123 posts
17 years ago
Simon Job's avatar Simon Job

centerdesk,

I’d be interested in trying out your plugin. Are you going to post it somewhere?

thanks.

       
inoa's avatar
inoa
35 posts
17 years ago
inoa's avatar inoa

Hi Simon,

I don’t think it’s really ready to post – even if it works for us. Part of the reason for this, too, is that it reuses a lot of the feed_enclosures plugin code – not sure how this works in terms of copyrights (anybody?).

As I alluded to above, we’re hosting our MP3s on a totally separate server. Right now, we have the GetID3 library installed remotely – so the plugin is calling a script on the remote server, which then returns the information we’re looking for.

Can you PM me your email address, and let me pass it on to our developer? I know he talked about making this more robust – if there’s interest, he might be willing to work on this some more.

       
silenz's avatar
silenz
1,648 posts
17 years ago
silenz's avatar silenz

Yes, the other plugin is for locally hosted files and doesn’t read ID3.

In case I’d mock it up for remotely hosetd files, I would raise the requirements from PHP4 to PHP5 otherwise I’d have to completely download the file at least once to determine the filesize which would not really be ideal performancewise.

       
inoa's avatar
inoa
35 posts
17 years ago
inoa's avatar inoa

Thanks, Silenz. I hope this thread will be helpful to anyone looking for such a thing down the road…

       
Knuckle007's avatar
Knuckle007
6 posts
16 years ago
Knuckle007's avatar Knuckle007

Just Updated for January 2009, an extension called, “MP3 Info +” from Silenz.org!

Extension Name: MP3 Info +

Extension URL: http://utilitees.silenz.org/…/mp3-info-plus/

Extension Description:

This module can be used to extract information from a given mp3-file and make it available as template variables in ExpressionEngine. This can be useful if you are podcasting or publishing any kind of MP3 and don’t want to re-enter all the data already present in the file itself. …… To make it rather light-weight each MP3 file is only analyzed once and the results are cached.

Extension Usage:

{exp:mp3_info:show file="http://mytestdomain.org/mp3/Hollow_Years.mp3" path="/home/noone/htdocs/mp3/"}
{/exp:mp3_info:show}

Notes:

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

Haven’t tried out it’s full capabilities yet, but thought this update might be useful to the EE community!

       
mhulse's avatar
mhulse
329 posts
about 16 years ago
mhulse's avatar mhulse
Just Updated for January 2009, an extension called, “MP3 Info +” from Silenz.org!

Hi,

Looks like a neat module… I just installed, but I am not sure how to reference an audio file hosted on amazon:

http://username.s3.amazonaws.com/audio/my-mp3.mp3

Any tips? Currently, everything I try gives me a blank test page.

Also, is there an official EE forum thread for this module? I kinda feel like this thread is not the best spot to ask for module help. I tried posting a comment on your site, but I was not allowed to “perform” that action. :(

Thanks! M

       
silenz's avatar
silenz
1,648 posts
about 16 years ago
silenz's avatar silenz

Remotely hosted files are currently not supported.

       
mhulse's avatar
mhulse
329 posts
about 16 years ago
mhulse's avatar mhulse
Remotely hosted files are currently not supported.

Yikes! I should have read more closely to the above conversations. :(

Thanks for the quick reply Silenz! I really appreciate it. Keep up the excellent work!

Have a great day.

Cheers, Micky

       
silenz's avatar
silenz
1,648 posts
about 16 years ago
silenz's avatar silenz

Maybe, one day if I have spare time I run some tests, but for now it will stay that way.

       
mhulse's avatar
mhulse
329 posts
about 16 years ago
mhulse's avatar mhulse
Maybe, one day if I have spare time I run some tests, but for now it will stay that way.

Ah, I am sure most people are using mp3 files on their own server…

I am just experimenting with Amazon s3 hosting… Trying to save $$ on the bandwidth. :D

Thanks again though. You are writing some kick butt plugins! That tagging one looks pretty sweet. I am already using Solspace for tagging, but I am thinking about switching. 😊

Have a nice day, Cheers, Micky

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.