Test mp3 quality, delete crapola

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Test mp3 quality, delete crapola Tue Aug 22, 2023 7:30 pm • by ontology
Situation: I have a large collection of mp3, Flac, ape, etc. files collected over the years. I also have Spotify.

Complication: Many of my files are very old and are encoded in low bit rate, poor quality formats/codecs.

Resolution: Time for a cleanup of old crapola cruft.

I would like hazel to:

1. iteratively go through the folder
2. Find mp3 files
3. Check the audio quality (e.g. Is it less than 320kbps?)
4. If yes on (3), delete

I can do everything other than (3).

Can anyone give me a solution for checking/testing the bitrate of an audio file in Hazel?
ontology
 
Posts: 2
Joined: Tue Aug 22, 2023 7:24 pm

Re: Test mp3 quality, delete crapola Wed Aug 23, 2023 9:16 am • by Mr_Noodle
If you select "Other" in the attributes pop-up in your rule condition, you can see what metadata is available on your system. On mine, I have Audio bit rate. If you have that too, it's worth trying that. If you don't, then you can do one of the following:

- Find a Spotlight importer for mp3s which does import that data.
- Use a script condition in Hazel to run some program which can extract that info.

You can use Hazel's preview function to see the values of various fields while editing your rule to help test things.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Test mp3 quality, delete crapola Wed Aug 23, 2023 6:49 pm • by ontology
Other doesn't work.
OS: macOS Sonoma 14.0 Beta (23A5328b)
Hazel: 5.1.1

How to repeat the issue:

1. Create a new rule
2. Attempt to select other

Outcome: Dialog box flashes briefly and then disappears.
Evidence: Video available at

https://we.tl/t-wYtez7bNLq

Sorry about the harsh contrast in the iPhone video - not sure what is happening with it)
ontology
 
Posts: 2
Joined: Tue Aug 22, 2023 7:24 pm

Re: Test mp3 quality, delete crapola Thu Aug 24, 2023 8:41 am • by Mr_Noodle
5.1.1 is very out of date. Try updating to 5.2.2. Note that the in-app updater may be broken in which case I suggest downloading and installing the update manually.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support