Hello,
I'm a new user and I unable to solve a couple issue.
1.) I added "Sample Rate and Bit Depth" yet the fields are empty when accessing a folder?
2.) I wish sort the entire library collection folder by sample rate including sub folders and list the results by "Sample Rate".
Thanks
Wishing to sort Music Collection by Sample Rate
-
Jarvis
- Posts: 1
- Joined: 04 Jun 2020 19:05
Wishing to sort Music Collection by Sample Rate
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: Wishing to sort Music Collection by Sample Rate
They are empty because your OS doesn't deliver information about these values for this file type. Can you upload a .zip with one of the .aiff files?
One of my scripts helped you out? Please donate via Paypal
-
yuyu
- Posts: 171
- Joined: 19 Jun 2018 12:40
- Location: Win 7 x64 - 100%
Re: Wishing to sort Music Collection by Sample Rate
For .aiff sample rate and bit depth to be shown I added two scripted custom columns:
MediaInfo_CLI must be installed for this.
Code: Select all
return substr(runret("""C:\Program Files\MediaInfo\MediaInfo.exe"" --Inform=Audio;%SamplingRate% ""<cc_item>"""), 0, -1);
return substr(runret("""C:\Program Files\MediaInfo\MediaInfo.exe"" --Inform=Audio;%BitDepth% ""<cc_item>"""), 0, -1);
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: Wishing to sort Music Collection by Sample Rate
Yeah, there seems to be no other way than using mediainfo. Even the K-Lite codec pack (which has codecs for .aiff) doesn't add support for being able to use any of your current columns.
@yuyu
Your substr doesn't do what it should do. It just strips off one char of <crlf>, not both.
So either use
or
@yuyu
Your substr doesn't do what it should do. It just strips off one char of <crlf>, not both.
So either use
Code: Select all
return substr(runret("""C:\Program Files\MediaInfo\MediaInfo.exe"" --Inform=Audio;%SamplingRate% ""<cc_item>"""), 0, -2);
return substr(runret("""C:\Program Files\MediaInfo\MediaInfo.exe"" --Inform=Audio;%BitDepth% ""<cc_item>"""), 0, -2);
Code: Select all
return trim(runret("""C:\Program Files\MediaInfo\MediaInfo.exe"" --Inform=Audio;%SamplingRate% ""<cc_item>"""), <crlf>, "R");
return trim(runret("""C:\Program Files\MediaInfo\MediaInfo.exe"" --Inform=Audio;%BitDepth% ""<cc_item>"""), <crlf>, "R");
One of my scripts helped you out? Please donate via Paypal
-
yuyu
- Posts: 171
- Joined: 19 Jun 2018 12:40
- Location: Win 7 x64 - 100%
XYplorer Beta Club