Effects of Compression

ngsm13
5,000+ posts

BSEE
41,527
6
Cincinnati, OH
Trying to redo this thread since JMAC deleted all his posts...

 

COPIED from the WHAT.CD Wiki Tutorials:

 

What is a transcode?

Wikipedia says that "Transcoding is the direct digital-to-digital conversion from one (usually lossy) codec to another." A transcode is any conversion of format.

Why is lossy transcoding bad?

Whenever you encode a file to a lossy format (such as mp3, m4a(AAC), ogg, or mpc) information is permanently lost. It doesn't matter what you do, it's impossible to get this information back without making a new rip from the original lossless source. If you re-encode it to a different format or bitrate, you are reducing the quality. This applies to any lossy to lossy conversion, so even if you convert from 320kbps to 192kbps, the final file will still sound worse than if you had just ripped to 192kbps in the first place.

It's also important to remember to verify that lossless rips actually came from an original source. People that download lossless expect it to be identical to the original. There's no point in people downloading a bigger file just to get another lossy rip.

So how do I verify that my music isn't a transcode?

The simplest way is to rip and encode it from the original source yourself. That way, you know that there has been only one lossy step (or that the rip is truly lossless, if you decided to do a lossless rip).

You should also check it by using a wave editor (such as Adobe Audition) to look at the spectral frequency display.

What is the difference between FhG and LAME?

Most lossy encoders use a low-pass filter when encoding. The filter is set to cut frequencies above a certain point and leave those below. The reason they're doing it is, that high frequencies are more difficult to encode and hearing is less sensitive in higher frequencies. MP3 encoders at 128kbps will typically use a LPF at 16kHz. As you raise the bitrate, the frequency threshold raises. At 192kbps the LPF is usually set at 18kHz or higher.

How can I view the Spectral Analysis of songs using Adobe Audition?

To view the spectral analysis of audio files in Adobe Audition, first ensure you are in Edit Waveform View by pressing the number 8 on your keyboard. Then, go to File > Open and select the file you wish to test. Adobe Audition will open the audio file in the "Waveform View" by default each time, so you'll need to choose View > Spectral View or press F9 to switch to Spectral View.

Common Bitrate Comparisons

The following section contains a list of common bitrates and their audio spectrum. The LAME were all done using dbpoweramp from a flac source, and they are all encoded using LAME version 3.97. The FhG were all done using Adobe Audition 1.5 FhG. The shape of the screen-shots differ due to different screen resolutions.

Original (FLAC):



128 LAME:



160 LAME:



160 FhG:



192 LAME:



192 FhG:



V2 (preset standard, aka aps):



224 LAME:



224 FhG:



256 LAME:



wrwekjl

 
Continued...

256 FhG:



320 LAME:



320 FhG:



V0 (preset extreme, aka apx):



Typical Webrip: (notice the gap)



Analysis

As you can see, LAME uses 'full resolution' up to the frequency threshold, whereas FhG, encodes at 'full resolution' up to 16kHz, and uses 'low resolution' at higher frequencies. This is an easy way to tell which encoder was used. At 128kbps, LAME uses a LPF at ~17kHz and FhG at ~16kHz. I have included a screenshot of FhG at 128kbps without the LPF. At 160kbps FhG's LPF is set at 20kHz. At 192kbps, LAME stops at 19kHz and FhG encodes upto 22kHz.

FhG looks like it's not doing its job right, but if you listen to the 192kbps samples, you can hardly tell which is LAME and which is FhG. At 128kbps, LAME sounds a bit better, more 'clear'. FhG encoding at 128kbps without the LPF sounds bad, you can certainly listen to the artifacts.

LAME APS will typically use a LPF at 18.5kHz, whereas APX will go up to 19kHz.

 
How to view the Spectral Analysis of songs using Adobe Audition

To view the spectral analysis of audio files in Adobe Audition, first ensure you are in Edit Waveform View by pressing the number 8 on your keyboard. Then, go to File > Open and select the file you wish to test. Adobe Audition will open the audio file in the "Waveform View" by default each time, so you'll need to choose View > Spectral View or press F9 to switch to Spectral View.

I've seen a lot of discussion here about how to spot transcodes. Many people have suggested using a spectral analysis from programs like Cool Edit / Adobe Audition / EAC and looking at the 'cut off' point. There is some disagreement about how effective this is, but those who recommend it suggest looking for cut-offs between 1600 Khz as the signature of a 128kbps mp3 source and 2100 Khz as the signature of Lossless.

One counter argument to this 'cut off' level method is that the same cut off which characterises lossy encodes may also be the result of a poor quality recording - a bootleg of a live show or a 'third world' vinyl master.

A number of spectral views have been posted and linked to, but nearly all of these have been analyses of entire tracks... which IMHO is NOT the most effective way to use spectral analysis to detect transcodes.

What I haven't seen anyone discuss is the 'blocky' appearance of the spectral analysis of lossy rips which is noticeable only when you zoom in close enough. IMHO this is a more reliable way to detect whether a file which purports to be lossless has in fact been transcoded from a lossy rip, and may even be a useful way to detect re-encodes from lower to higher bitrate mp3s (although this is much harder whatever method you use).

The image below illustrates what I mean. The track (from an album by Philip Glass) was ripped from CD to flac and a 1 second sample was saved to 320 kbps LAME mp3 and 128 kbps FhG mp3 and then in each case saved again to flac. The spectral analysis was done at full screen on a monitor with resolution of 1280 x 1024. Each of the three strips below is of the same 0.15 of a second.

FLAC / 320 mp3 / 128 mp3 compared

flac320mp3128mp3compareum0.gif


And here are bigger strips of the three spectral analyses. The zoom level is the same - bigger simply means that what is shown here is around 0.5 of a second - and NOT the whole track!

FLAC

flacfn7.gif


320Kbps LAME mp3

320kbpslamemp3ok9.gif


128Kbps FhG mp3

128kbpsfhgmp3wu5.gif


Credits

Adopted from the tutorial by brigetd: forums.php?action=viewthread&threadid=1200

 
Really though, anything above 192 kbps I think sounds just fine. I'm pretty sure most you guys can't tell the difference between them to. Nice data.

 
I went and bought the Tool cd's to compare to all of my 192k files. No audible difference was detected by my ears.

Jmac, can you please explain what diminishes in quality are caused by the compression. Like the drop of frequency above 12k-16k...

 
hmm. why are there differences between the original and the lossless compression. lossless compression should give exact results, anyone disagreeing should look at the proliferation of ZIP, ARJ, BZIP, ect... files out there.

 
hmm. why are there differences between the original and the lossless compression. lossless compression should give exact results, anyone disagreeing should look at the proliferation of ZIP, ARJ, BZIP, ect... files out there.
the guy who does the tech article in car audio and electronics did a good job explaining that in this months issue. maybe check that out.

 
I remember back in the Napster days when most songs out there were ripped @ 128 kb... especially in rock music the sound is clearly awful!

Reading up on many msg boards... it seems VBR (Variable Bit Rate) is the way to go to compress music.

 
Activity
No one is currently typing a reply...
Old Thread: Please note, there have been no replies in this thread for over 3 years!
Content in this thread may no longer be relevant.
Perhaps it would be better to start a new thread instead.

About this thread

ngsm13

5,000+ posts
BSEE
Thread starter
ngsm13
Joined
Location
Cincinnati, OH
Start date
Participants
Who Replied
Replies
81
Views
72,117
Last reply date
Last reply from
W124_Man
DD451980-D607-41AB-B69C-6745AAE4B848.jpeg

SlugButter

    Mar 28, 2024
  • 0
  • 0
F98C6D78-7734-4659-9FCA-34969BDDC56A.jpeg

SlugButter

    Mar 28, 2024
  • 0
  • 0

Latest topics

Top