Automatically IDing compressed audio
Printed From: Top 40 Music on CD
Category: Top 40 Music On Compact Disc
Forum Name: Chat Board
Forum Description: Chat away but please observe the chat board rules
URL: https://top40musiconcd.com/forum/forum_posts.asp?TID=9730
Printed Date: 13 June 2025 at 6:59pm Software Version: Web Wiz Forums 12.07 - https://www.webwizforums.com
Topic: Automatically IDing compressed audio
Posted By: eric_a
Subject: Automatically IDing compressed audio
Date Posted: 22 December 2021 at 10:27am
We've talked about identifying compressed audio by
looking for high frequencies in spectrograms. This new
RadioWorld article shows a way to analyze files in bulk,
programmatically, so you can sort your library by
likeliness of being uncompressed.
This approach does require some light coding. I haven't
had a chance to try this yet, but it should be a
fun experiment over the holiday break. If I get it
working, I'll share my findings.
https://www.radioworld.com/tech-and-gear/radio-it-management/whats-in-your-audio-library -
RadioWorld: What's In Your Audio Library
|
Replies:
Posted By: NightAire
Date Posted: 22 December 2021 at 4:28pm
I think the board formatting broke up the link; try https://www.radioworld.com/tech-and-gear/radio-it-management/whats-in-your-audio-library - this .
------------- Gene Savage
http://www.BlackLightRadio.com - http://www.BlackLightRadio.com
http://www.facebook.com/TulsaSavage - http://www.facebook.com/TulsaSavage
Tulsa, Oklahoma USA
|
Posted By: VWestlife
Date Posted: 22 December 2021 at 8:18pm
The easiest way is to look at a real-time spectrum analysis graph while the song is playing. MP3 has only one scale factor for frequencies above 16 kHz, so there will almost always be a visible transition at the 16 kHz mark, with the spectrum graph becoming very choppy and erratic above that point. Or some older, cruder MP3 encoders simply filtered out everything above 16 kHz, especially at lower bitrates.
MP2 (MPEG I Layer II) actually handles high frequencies more gracefully, and will show the spectrum graph dynamically altering its bandwidth in approximately 0.5 kHz increments. Many radio stations still have all or part of their music library in MP2 format, because it is deemed to be "broadcast-quality" (at least at higher bitrates), while MP3 is not.
M4A (AAC) encoding is much more difficult to identify based on a spectrum analysis, because it usually preserves the entire audio spectrum up to 20 kHz quite accurately. Unfortunately quite a few tracks on iTunes were transcoded from MP3 to AAC, because although Apple recommends that artists and publishers upload their music in uncompressed or lossless form, it does not require them to do so. (And even if they did require music to be submitted in a format like WAV or FLAC, people could just cheat and convert their MP3s to WAV first.) The telltale signs of MP3 encoding will still be visible even after it has been transcoded to AAC.
|
Posted By: Hykker
Date Posted: 23 December 2021 at 6:36am
Somewhat related, but maybe 10 years ago I got a bunch of
songs on mp3. These songs will play on any player that
will play mp3s, but if I open them with Adobe Audition all
I see is an empty file. Any idea what these files might be
and why AA can't read them?
Most of this material I have in a lossless format, but I
was just curious about these.
|
Posted By: VWestlife
Date Posted: 23 December 2021 at 6:03pm
MediaInfo will tell you exactly what they are:
https://mediaarea.net/en/MediaInfo - https://mediaarea.net/en/MediaInfo
And sometimes a corrupted MP3 file will show up as blank in an audio editor. MP3Diags will fix any problems with the file:
http://mp3diags.sourceforge.net/ - http://mp3diags.sourceforge.net/
|
Posted By: mjb50
Date Posted: 24 December 2021 at 4:03pm
I took a look at one of Hykker's MP3 files. They are improperly encoded with empty CRC values for every frame. Audition's MP3 decoder, instead of doing what most do in this situation (ignore it), just reports silence for that frame. Since the problem is in every frame, Audition thinks the entire file is silent.
There's a helpful https://ericheikes.com/the-curious-case-of-the-silent-mp3/ - blog post which chronicles someone's diagnosis of the same problem, and provides a couple of ways to fix it. Notably, MP3Diags does not properly report the actual error in this kind of file (I tried it too). The problem can be fixed in the MP3 by converting to VBR with (win)mp3packer, or running mp3val as described in that blog post. I believe one could also just whip up some code to replace the FF FA ## ## 00 00 frame headers with FF FB ## ##. Another workaround is to just convert the file to WAV with something else (e.g. foobar2000) and load the WAV in Audition.
|
Posted By: Hykker
Date Posted: 25 December 2021 at 7:15am
Thanks for the analysis of this Mike. I've come up with better rips of most of these songs now, my question was more out of
curiosity as to why I could play, but not edit them. You're the first one who's been able to answer that.
|
|