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 Info for EE2?

Development and Programming

ChrisClark's avatar
ChrisClark
60 posts
14 years ago
ChrisClark's avatar ChrisClark

I’m looking for an EE2 add-on that can do what MP3 Info does for EE1. Basically, I want to be able to extract file size (in bytes) and the run time from the MP3 file. This is to help me build an iTunes-compatible podcast feed without having to enter that information into custom fields.

       
Matt:P's avatar
Matt:P
277 posts
14 years ago
Matt:P's avatar Matt:P

Hi Chris

Check out File Oracle. I’ve used it to get all sorts of info about a clients MP3 uploads recently… http://devot-ee.com/add-ons/file-oracle

Best

       
ChrisClark's avatar
ChrisClark
60 posts
14 years ago
ChrisClark's avatar ChrisClark

Thanks for the tip. I’ve been trying that, but keep getting a “The file was not found - please check your settings” error message. Have you run into that?

       
Matt:P's avatar
Matt:P
277 posts
14 years ago
Matt:P's avatar Matt:P

No trouble Chris, this is the code I used most recently:

{exp:file_oracle file="/uploads/talks/{talk_mp3}{filename}.{extension}{/talk_mp3}" target="_blank"}
{human_size}
{/exp:file_oracle}

…where talk_mp3 is the file field. Does that help?

       
ChrisClark's avatar
ChrisClark
60 posts
14 years ago
ChrisClark's avatar ChrisClark

I think I figured out why this plugin won’t work for me. It wants “relative to the document root of the site” or “full server path” and my fields spit out the full URL (for example http://www.geekforcefive.com/audio/fivecast-314.mp3). It doesn’t seem to be able to handle that. Oh well.

The code I was trying to use was

length="{exp:file_oracle file="{audio}"}{size}{/exp:file_oracle}"
       
Matt:P's avatar
Matt:P
277 posts
14 years ago
Matt:P's avatar Matt:P

Sorry, I should’ve pointed that out Chris!

Would it work for you to hard code the relative directories as per my example?

       
ChrisClark's avatar
ChrisClark
60 posts
14 years ago
ChrisClark's avatar ChrisClark

I’m not sure how I would get the information in the custom field to spit out just the file name so that I could hard code the rest of it. Any thoughts on that?

       

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.