sound miner meta data

Locked
BlackhawkPBS
User
Posts: 7
Joined: Wed May 20, 2009 3:06 pm
Are you a spambot?: no

sound miner meta data

Post by BlackhawkPBS » Thu Jun 11, 2009 2:34 pm

I was wondering if there was a way to use getid3() to pull meta data that was encoded onto a .wav file using sound miner. There is one field that contains a concatenation of several of the sound miner fields that are needed. That field i can read however there is a track title and cd title that i'd also like to pull off that are encoded with SoundMiner. If this program doesn't do that does anyone know of a program that will read these tags? preferably open source and scriptable.

James Heinrich
getID3() v1 developer
Posts: 1476
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: sound miner meta data

Post by James Heinrich » Fri Jun 12, 2009 12:52 am

Can you provide me a link to a small sample file so I can examine how it's tagged? Post or PM me a link to a sample file, please.

James Heinrich
getID3() v1 developer
Posts: 1476
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: sound miner meta data

Post by James Heinrich » Fri Jun 12, 2009 11:37 pm

The data you're looking for is in [riff][WAVE][SNDM][data].
It looks to be a simple proprietary format, a bunch of concatenated tags in the format:
[taglength] 4 byte // including tagname and size bytes
[tagname] 4 bytes
[datalength] 2 bytes
[flags?] 2 bytes
[data] <datalength> bytes

It should be simple enough to parse. Most likely I'll whip up a couple lines of code over the weekend to handle it.

James Heinrich
getID3() v1 developer
Posts: 1476
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: sound miner meta data

Post by James Heinrich » Sat Jun 13, 2009 1:16 pm

The attached file will enable SNDM parsing.

The data you want will be in an array in $info['riff']['WAVE']['SNDM'][0]['parsed'] (or $info['riff']['WAVE']['SNDM'][0]['parsed_raw']), for example:
keywords are found in $info['riff']['WAVE']['SNDM'][0]['parsed']['keywords'] or $info['riff']['WAVE']['SNDM'][0]['parsed_raw']['
Attachments
module.audio-video.riff.php
v2.x
(95.53 KiB) Downloaded 655 times
module.audio-video.riff.php
v1.7.x
(104.45 KiB) Downloaded 616 times

BlackhawkPBS
User
Posts: 7
Joined: Wed May 20, 2009 3:06 pm
Are you a spambot?: no

Re: sound miner meta data

Post by BlackhawkPBS » Tue Jun 16, 2009 1:28 pm

Thank you very much sir for your help. That did exactly what i needed. I'd like to thank you guys for being very on the ball, quick with answers and extremely helpful. cheers.

Locked