Extracting metadata from WAV file and import into RS

631 views
Skip to first unread message

pathways.ge

unread,
Nov 2, 2016, 9:15:59 AM11/2/16
to ResourceSpace
Dear all,

We are using staticsync ($ingesting=false) to feed our assets into RS.
Currently, we are importing recordings, in the form of WAV files, into the system.

The main question is:
How do I get the metadata out of the file and into RS? Should that be done by default, or do I need to configure stuff?

1) We have a resource_type called Audio, and I figured that I should create metadata field for it. So I created the field 'Recorder', that will hold the device.
2) Now, how do i get the metadata into this field?
From my import logs, I can see that there is metadata:
Input #0, wav, from '/home/path/to/file/4CH062M2.wav':
 
Metadata:
    encoded_by      
: ZOOM Handy Recorder H4n
    date            
: 2016-10-30
    creation_time  
: 10:44:49
    time_reference  
: 1857072000
    coding_history  
: A=PCM,F=48000,W=24,M=stereo,T=ZOOM Handy Recorder H4n
 
Duration: 00:02:55.79, bitrate: 2304 kb/s
   
Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s32 (24 bit), 2304 kb/s

I also was able to extract this information manually
ffmpeg -i /home/path/to/file/4CH062M2.wav -f ffmetadata

3. I think that I can map those two by using the ' Exiftool field' field. Am I right there?
Then, how to know which field I need? Of course, there is the Metadata Report option that could help me, but it throws me a very unhelpful 'Error'. No further explanation given :-(

So, anybody can help me connect the remaining dots here?

Thanks,
Jakobi

Allison Stec

unread,
Nov 2, 2016, 11:05:54 AM11/2/16
to resour...@googlegroups.com, pathways.ge
Here’s an index of tags recognized by Exiftool: http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/index.html

…and some command line examples: http://owl.phy.queensu.ca/~phil/exiftool/examples.html

The metadata report in RS is based off of what Exiftool can read from the file, so running Exiftool from the command line should give you a similar report. From there you should be able to determine the relevant group and tag name needed for the ‘Exiftool field’ setting.

Once you’ve got that you’ll want to run the tools script update_exiftool_field.php to extract the metadata from existing resources.
--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pathways.ge

unread,
Nov 4, 2016, 3:35:48 AM11/4/16
to ResourceSpace
Running exiftool on a file gives not so much information.

# exiftool -a /home/path/to/4CH062M2.wav
ExifTool Version Number         : 8.15
File Name                       : 4CH062M2.wav
Directory                       : /home/path/to
File Size                       : 48 MB
File Modification Date/Time     : 2016:11:02 10:12:53+04:00
File Permissions                : rwxrwxrwx
File Type                       : WAV
MIME
Type                       : audio/x-wav
Encoding                        : Microsoft PCM
Num Channels                    : 2
Sample Rate                     : 48000
Avg Bytes Per Sec               : 288000
Bits Per Sample                 : 24
Duration                        : 02:55

From the ffmpeg results, I know there is more information in this file, but exiftool currently doesn't show me.
1) Does exiftool give me all tags there are, or just common ones?
2) The date that exiftool gives me is the file creation time, not the embedded recording time.

So, any more clues would be highly appreciated ;-)

pathways.ge

unread,
Nov 4, 2016, 4:43:15 AM11/4/16
to ResourceSpace
OK, forget about this one. The version I used here was too old. Upgraded to the latest and greatest exiftool (10.31) and got way better results:
# exiftool 4CH062M2.wav
ExifTool Version Number         : 10.31
File Name                       : 4CH062M2.wav
Directory                       : .

File Size                       : 48 MB
File Modification Date/Time     : 2016:11:02 10:12:53+04:00
File Access Date/Time           : 2016:11:04 11:09:46+04:00
File Inode Change Date/Time     : 2016:11:02 16:45:20+04:00

File Permissions                : rwxrwxrwx
File Type                       : WAV
File Type Extension             : wav
MIME
Type                       : audio/x-wav
Description                     :
Originator                      : ZOOM Handy Recorder H4n
Originator Reference            :
Date/Time Original              : 2016:10:30 10:44:49
Time Reference                  : 1857072000
BWF
Version                     : 0
Coding History                  : A=PCM,F=48000,W=24,M=stereo,T=ZOOM Handy Recorder H4n
Encoding                        : Microsoft PCM
Num Channels                    : 2
Sample Rate                     : 48000
Avg Bytes Per Sec               : 288000
Bits Per Sample                 : 24
Duration                        : 0:02:55
Reply all
Reply to author
Forward
0 new messages