Is there a way to search metadata in .wav files?
-
timoteo
- Posts: 14
- Joined: 04 Sep 2020 12:01
Is there a way to search metadata in .wav files?
Is there a way to search metadata? Specifically I want to search WAV files that have keywords in the "Comments" section of the metadata . Is this possible?
Thanks!
-Tim
Thanks!
-Tim
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Is there a way to search metadata in .wav files?
Upload such a file (that contains a comment)...
One of my scripts helped you out? Please donate via Paypal
-
timoteo
- Posts: 14
- Joined: 04 Sep 2020 12:01
Re: Is there a way to search metadata in .wav files?
I'll try to find something. Most of the stuff is copyrighted, so I can't upload those. However, I can tell you that it is Comments with the field ID "ICMT" if that helps. Also, see the attached screen shot to see the field I am talking about inside Xyplorer. Does that help?
To see the attached files, you need to log into the forum.
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Is there a way to search metadata in .wav files?
Get this script: viewtopic.php?p=150223#p150223
Extract it and run it while that "BWF_AmbCity-32_w..." file is selected. Does the output of it show a column that has the Ambience, City, Traffic, Birds content?
If yes, show it...
Extract it and run it while that "BWF_AmbCity-32_w..." file is selected. Does the output of it show a column that has the Ambience, City, Traffic, Birds content?
If yes, show it...
One of my scripts helped you out? Please donate via Paypal
-
timoteo
- Posts: 14
- Joined: 04 Sep 2020 12:01
Re: Is there a way to search metadata in .wav files?
Here you go ...
...
IDs with names & values: 31
===========================
#001 | Size: 16.5 MB
#002 | Item type: Windows Media Player
#003 | Date modified: 9/4/2020 6:53 AM
#004 | Date created: 9/4/2020 6:53 AM
#005 | Date accessed: 9/4/2020 6:53 AM
#006 | Attributes: A
#009 | Perceived type: Audio
#010 | Owner: Administrators
#011 | Kind: Music
#013 | Contributing artists: BWFX
#015 | Year: 2015
#016 | Genre: Ambience
#019 | Rating: Unrated
#020 | Authors: BWFX
#021 | Title: Amb City-w-traff
#024 | Comments: Ambience, City, Traffic, Birds
...
...
IDs with names & values: 31
===========================
#001 | Size: 16.5 MB
#002 | Item type: Windows Media Player
#003 | Date modified: 9/4/2020 6:53 AM
#004 | Date created: 9/4/2020 6:53 AM
#005 | Date accessed: 9/4/2020 6:53 AM
#006 | Attributes: A
#009 | Perceived type: Audio
#010 | Owner: Administrators
#011 | Kind: Music
#013 | Contributing artists: BWFX
#015 | Year: 2015
#016 | Genre: Ambience
#019 | Rating: Unrated
#020 | Authors: BWFX
#021 | Title: Amb City-w-traff
#024 | Comments: Ambience, City, Traffic, Birds
...
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Is there a way to search metadata in .wav files?
Try this in the Name: field (Name & Location tab):
prop:comments:<search term>
e.g.
prop:comments:traffic
if comments doesn't work, use #024 instead:
prop:#024:traffic
prop:comments:<search term>
e.g.
prop:comments:traffic
if comments doesn't work, use #024 instead:
prop:#024:traffic
One of my scripts helped you out? Please donate via Paypal
-
timoteo
- Posts: 14
- Joined: 04 Sep 2020 12:01
Re: Is there a way to search metadata in .wav files?
Second one (prop:#024:traffic) was the ticket! THANKS highend!! Lifesaver!
One final question though ... Probably won't come up too often, but let's say I wanted to search for a specific name of the file ... how can I enter that AND the "prop:#024:xxxxx" meta search at the same time? Is this possible?
One final question though ... Probably won't come up too often, but let's say I wanted to search for a specific name of the file ... how can I enter that AND the "prop:#024:xxxxx" meta search at the same time? Is this possible?
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Is there a way to search metadata in .wav files?
:name:<part of a file name> AND prop:#24:trafficOne of my scripts helped you out? Please donate via Paypal
-
timoteo
- Posts: 14
- Joined: 04 Sep 2020 12:01
Re: Is there a way to search metadata in .wav files?
AWESOME! THANK YOU!!!!
-
timoteo
- Posts: 14
- Joined: 04 Sep 2020 12:01
Re: Is there a way to search metadata in .wav files?
While I have your "ear" ... Is there a way in XY to edit metadata ... that is, could I edit the "Comments"? I looked at EXIFTOOLGUI, but it appears to only have a limited number of fields it can edit, and is geared more towards images.
EDIT: I actually can do it in SoundForge (and I'm sure other audio editors) but it is not as efficient of course, as opposed to working in something like XY.
EDIT: I actually can do it in SoundForge (and I'm sure other audio editors) but it is not as efficient of course, as opposed to working in something like XY.
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Is there a way to search metadata in .wav files?
Only via scripting and not without a third party CLI tool. So if e.g. exiftool is able to write these tags, it's possible...
One of my scripts helped you out? Please donate via Paypal
-
mazot
- Posts: 48
- Joined: 20 Apr 2020 23:19
Re: Is there a way to search metadata in .wav files?
I thought of ffmpeg as a CLI tool , and searched and found loads of info on metadata , BUT of course with ffmpeg nothings
straight forward .
I did a search on https://forum.level1techs.com/t/wav-fil ... r/125792/5 and found this "Mastic_Warrior
Mar '18
WAV files were not designed or amended to store complex metadata. If this is for a personal music collection, I would recommend using FLAAC instead. That is basically a wrapper around an uncompressed WAV (if you encode it properly). You can then do the nifty MP3 tag stuff with that and still have your high bit rate audio."
IHTH.
straight forward .
I did a search on https://forum.level1techs.com/t/wav-fil ... r/125792/5 and found this "Mastic_Warrior
Mar '18
WAV files were not designed or amended to store complex metadata. If this is for a personal music collection, I would recommend using FLAAC instead. That is basically a wrapper around an uncompressed WAV (if you encode it properly). You can then do the nifty MP3 tag stuff with that and still have your high bit rate audio."
IHTH.
-
timoteo
- Posts: 14
- Joined: 04 Sep 2020 12:01
Re: Is there a way to search metadata in .wav files?
Unfortunately, Mastic_Warrior managed to get almost every single thing wrong in that post, lol. WAV files most certainly were/are made to include complex metadata. In fact, that is one of their most powerful features. They will even retain markers and notes on those markers for sound editing programs. Also, WAV files are (almost) always an uncompressed format, and FLAAC is not a wrapper around a uncompressed WAV. FLAAC, while lossless, is a compression format -- think of it almost like the lossless zip file of the audio domain. Honestly not sure what type of embedding it supports as I've never really had a need to use it.mazot wrote: ↑04 Sep 2020 21:18 I thought of ffmpeg as a CLI tool , and searched and found loads of info on metadata , BUT of course with ffmpeg nothings
straight forward .
I did a search on https://forum.level1techs.com/t/wav-fil ... r/125792/5 and found this "Mastic_Warrior
Mar '18
WAV files were not designed or amended to store complex metadata. If this is for a personal music collection, I would recommend using FLAAC instead. That is basically a wrapper around an uncompressed WAV (if you encode it properly). You can then do the nifty MP3 tag stuff with that and still have your high bit rate audio."
IHTH.
This is definitely a case of "don't trust everything you read on the internet".
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Is there a way to search metadata in .wav files?
At least you could use ffmpeg to script the whole thing, although not without creating (at least) a temporary file (no in-place editing of metadata)...
One of my scripts helped you out? Please donate via Paypal
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Is there a way to search metadata in .wav files?
Starting the script (reads the metadata of the selected file):
After editing the metadata:
And this is how it looks when ffmpeg outputs of what was written:
You need to edit the path to ffmpeg in the script!
Not heavily tested...
It does not handle deleting the original file and renaming the new one into the old name (I don't want to destroy the original file)...
Not heavily tested...
It does not handle deleting the original file and renaming the new one into the old name (I don't want to destroy the original file)...
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club