Is there a way to search metadata in .wav files?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
timoteo
Posts: 14
Joined: 04 Sep 2020 12:01

Re: Is there a way to search metadata in .wav files?

Post by timoteo »

Cool, thanks ... I'll check it out when I get a chance.

timoteo
Posts: 14
Joined: 04 Sep 2020 12:01

Somewhat of a conundrum for ya' ...

Post by timoteo »

So, I found some of my MP3 files that have tags in a "comments" field ...
  • Using MediaInfo they appear under a field called "Description" under the standard view, or "Comment" (for everything else ... e.g. if viewed as a Sheet, Tree,Text, HTML, etc.)
  • Using XRECODE 3, under the Meta tab it has a Comment field with the description.
  • Using an audio editing app and looking at the properties, they show up under as Comments (field #2 ICMT (under FourCC column), Attribute="Comments).
However, when I run that script that you provided that shows all the embedded data, oddly enough the description text is no where to be found, even though it lists several fields call "#comment =," "#024 = Comments," and "#mp3.comments =" Nothing is recorded next to ANY of those entries.

Any idea what is going on, and how I might search for those comments?

Thanks!

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?

Post by highend »

.wav files can store a lot of additional metadata (not only RIFF), e.g. XMP, ID3

The script can only show those that ffmpeg can read (and write).

What does ffmpeg in a command prompt say about those files?
ffmpeg.exe -hide_banner -i "path to\one of those wav files.wav"
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?

Post by timoteo »

This is for MP3's (which I have been able to search for comments in the metadata for those, but these in particular I can't seem to find the correct field/string. Here is what I got for one of them (as you can see on bold, here it is listed as Description):

"Incorrect BOM value
Error reading comment frame, skipped

Input #0, mp3, from 'ABSTRACT REVERSE Hit Dark Scary 01.mp3':
Metadata:
genre : Abstract
track : 0
encoded_by : dBpoweramp Release 13.5
TOAL : www.smartsoundeffects.com
TORY : 2019
artist : SmartSound FX
title : ABSTRACT REVERSE Hit Dark Scary 01.wav
Description : A pretty dark and low frequent metallic hit. Dark, Ringing, Scary, Ring, Rumble.
Originator : © 2019 SmartSound FX All Rights
OrigReference : www.smartsoundeffects.com
TimeReference : 0
copyright : 2019 SmartSound FX www.smartsoundeffects.com
date : 2019
Duration: 00:00:02.16, start: 0.023021, bitrate: 287 kb/s
Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 234 kb/s
Metadata:
encoder : LAME3.98r
Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 512x512 [SAR 72:72 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
comment : Cover (front)
At least one output file must be specified"

timoteo
Posts: 14
Joined: 04 Sep 2020 12:01

Re: Is there a way to search metadata in .wav files?

Post by timoteo »

I tried doing a search with "prop:#Description:pretty" and "prop:Description:pretty", but XY does not find it. Maybe another type of search variable other than "prop" is needed?

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?

Post by highend »

Sorry, but what does this have to do with my script? The whole thread was about .wav files, not about .mp3.

Apart from that, without the file I can't say anything about any of its properties or how to search for them...
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?

Post by timoteo »

highend wrote: ↑12 Sep 2020 09:21 Sorry, but what does this have to do with my script? The whole thread was about .wav files, not about .mp3.

Apart from that, without the file I can't say anything about any of its properties or how to search for them...
Well they are both containers for sound files, they both contain meta-data (including comment fields), and I have been able to use XYplorer to search the metadata for both. I was just wondering why the script does not see the the ALL (only some) of the metadata in the MP3, unlike the other apps that I mentioned and/or why these fields can't be found using xyplorer. I'm sure it can, but it is a matter of knowing the right field name ... I think.

I didn't realize the script was for a specific file format ... especially since it mostly works on MP3's as well. Would it not also work in similar fashion on MP4's, AVI's, etc.? (Guess I can try it.)

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?

Post by highend »

The script is even called "Write .wav metadata [ffmpeg]"...
I was just wondering why the script does not see the the ALL (only some) of the metadata in the MP3
It's not written for .mp3 metadata. The $assignments variable contains metadata tags for .wav.

You are free to extend it to any metadata for any kind of file format, as long you have a cli tool that is able to read (and write) them all.

And I still can't say anything about the necessary property in XY without that file...
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?

Post by timoteo »

highend wrote: ↑12 Sep 2020 10:47 The script is even called "Write .wav metadata [ffmpeg]"...
I was just wondering why the script does not see the the ALL (only some) of the metadata in the MP3
It's not written for .mp3 metadata. The $assignments variable contains metadata tags for .wav.

You are free to extend it to any metadata for any kind of file format, as long you have a cli tool that is able to read (and write) them all.

And I still can't say anything about the necessary property in XY without that file...
Ahhhhh ... I see the problem with our discussion. Yikes! I believe we are talking about two different scripts! You are talking about the second script (which I have not tried yet), I am talking about the first script (Properties_V5.1). That is why you are saying it is only meant for WAV, and mentioning ffmpeg, etc.

No, I am just trying to find out why XYplorer can't find and/or I can't figure out the right search parameter for meta-data in MP3's with description/comments field data, when other apps can see it fine. (Same goes for the script ... does not see the data, but does see the fields). Has nothing to do with writing tags to WAV files, totally separate issue. Sorry for any confusion from my end.

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?

Post by highend »

The properties script can only see those that the operating system can see / report.
There are dozens of e.g. id3 properties and only tools that specifically know about them can be used to report them.
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?

Post by highend »

Even the K-Lite Codec Pack doesn't help. Your two files have stored extended id3 tags that you can't read without specialized tools.

The only thing that would allow you to search this kind of metadata in XY is by using e.g. exiftool in a script that goes through a list of your files, read the metadata and stores them in XYs tag database (which can be easily searched via the find files panel)...
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?

Post by timoteo »

highend wrote: ↑13 Sep 2020 08:28 The properties script can only see those that the operating system can see / report.
There are dozens of e.g. id3 properties and only tools that specifically know about them can be used to report them.
Oh, okay ... it's just that, as I believe I mentioned before, EVERYtool I have can indeed read them without issue. It is just XYplorer and the properties script that can't seem to do it, thus the confusion.
The only thing that would allow you to search this kind of metadata in XY is by using e.g. exiftool in a script that goes through a list of your files, read the metadata and stores them in XYs tag database (which can be easily searched via the find files panel)...
That seems like a reasonable workaround, I would just have to run it once for now, and then any time I added MP3's with comments. Might not EVER happen again, as I tend to work with WAV's and avoid MP3's as much as possible. How difficult would it be to make such a script?

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?

Post by highend »

Every tool = Tools that are audio editors or tools that need to be able to read (and/or write) all existing audio tags. XY is a multipurpose file manager and doesn't know every extended metadata tag that exists.
How difficult would it be to make such a script?
A bit. It's not technically difficult but maybe requires some research. Going through all files and reading the metadata tags is easy but how the tagging is done is a completely different thing.
E.g. Mp3tag names fields in a different way than exiftool (e.g. ALBUMARTIST vs. Band) and Mp3tag alone knows about ~90 extended metatdata tags alone. Haven't checked the official reference...
One of my scripts helped you out? Please donate via Paypal

Post Reply