sound miner meta data
-
- User
- Posts:7
- Joined:Wed May 20, 2009 3:06 pm
- Are you a spambot?:no
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.
-
- getID3() v1 developer
- Posts:1477
- Joined:Fri May 04, 2001 4:00 pm
- Are you a spambot?:no
- Location:Northern Ontario, Canada
- Contact:
Re: sound miner meta data
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.
-
- getID3() v1 developer
- Posts:1477
- Joined:Fri May 04, 2001 4:00 pm
- Are you a spambot?:no
- Location:Northern Ontario, Canada
- Contact:
Re: sound miner meta data
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.
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.
-
- getID3() v1 developer
- Posts:1477
- Joined:Fri May 04, 2001 4:00 pm
- Are you a spambot?:no
- Location:Northern Ontario, Canada
- Contact:
Re: sound miner meta data
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']['
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.53KiB)Downloaded 885 times
-
module.audio-video.riff.php
- v1.7.x
- (104.45KiB)Downloaded 1036 times
-
- User
- Posts:7
- Joined:Wed May 20, 2009 3:06 pm
- Are you a spambot?:no
Re: sound miner meta data
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.