Extracting audio file metadata
-
Hi There,
I see that you are unavailable til the 21st, but just wanted to post my question here in case it is helpful for others. Hope your time away was good!
I am trying to extract on upload and existing files a line out of my audio file’s metadata, ideally having that information end up in the “tags”.
Quick overview: have hundreds of music files of my compositions. As I added them to itunes I added mood tags to the “comment” field of itunes’ file info. I could just go through and manually do this, but as this is an ongoing project it would be nice if these autopopulated on upload. The end goal is to show people who are interested in using my music for film only audio tracks that are the tag “moody” or “upbeat” etc.
I have read documentation and I apologize if this has been addressed… after many hours of trying to figure this out on my own I just have to ask for help!
What I think I need to do is add the code
template:[+id3,extract(‘comment)’)+]
or is it
template:[+id3,comment+]
or is it
template:[+id3,’comment’+]to the EXIF/Template Value field.
etc. point is, I do work with code a lot but can’t figure this out! I apologize, I did indeed read the documentation and forum posts that seemed to apply :/
…I know that ‘comment’ exists, I can see it in the Attachment Metadata field… I just don’t know how to get to it! It looks like this (copy and paste transformed => into =>):
array (
‘dataformat’ => ‘mp3’,
‘channels’ => 2,
‘sample_rate’ => 44100,
‘bitrate’ => 256000,
‘channelmode’ => ‘stereo’,
‘bitrate_mode’ => ‘cbr’,
‘lossless’ => false,
‘encoder_options’ => ‘CBR256’,
‘compression_ratio’ => 0.181405895691609975184377390178269706666469573974609375,
‘fileformat’ => ‘mp3’,
‘filesize’ => 10954461,
‘mime_type’ => ‘audio/mpeg’,
‘length’ => 342,
‘length_formatted’ => ‘5:42’,
‘title’ => ’12 stormy brewy 020118′,
‘artist’ => ‘Luke Janela’,
‘band’ => ‘Luke Janela’,
‘composer’ => ‘Luke Janela’,
‘track_number’ => ’12’,
‘year’ => ‘2018’,
‘genre’ => ‘Alternative’,
‘comment’ => ‘moody,ethereal,cello’,
‘encoded_by’ => ‘iTunes 12.8.0.150’,
‘album’ => ‘REVERIES 18 – MITR’,
)I’d actually love the power to do more with this info.
Your plugin is absolutely amazing, hope your time away was good, and I can’t wait to put it to use!
- The topic ‘Extracting audio file metadata’ is closed to new replies.