MP3 Degradation, an experiment.

hardware, software, tips and tricks
Forum rules
By using this "Production" sub-forum, you acknowledge that you have read, understood and agreed with our terms of use for this site. Click HERE to read them. If you do not agree to our terms of use, you must exit this site immediately. We do not accept any responsibility for the content, submissions, information or links contained herein. Users posting content here, do so completely at their own risk.

Quick Link to Feedback Forum
User avatar
Depone
Posts: 3526
Joined: Fri Sep 18, 2009 3:49 pm
Location: South-West UK
Contact:

MP3 Degradation, an experiment.

Post by Depone » Tue Dec 21, 2010 9:16 pm

So, we all know that MP3's dont really stand upto raw .wav or .aiff quality. Although some argue a good 320kbits mp3 is hard to tell the diference apart.

Well, I have manflu and bored, so im hoping to show some of you without the knowledge of what mp3 encoding does to your audio.
The way in which mp3's work are very clever indeed. Instead of playing every frequency intended in that sound at once, it only plays the most 'needed' or important bit to audibly be passed off as being all those frequencies... It works on psychoacoustics.
Weird stuff... And the lower the Kbps, the more information or needed bits are lost. It mainly comes out of treble, not sure why actually, maybe someone can explain...

If anyone has anything to add to this topic I shall copy paste it here:-


Ok, so I have the example clips of various qualities and a picture of its spectrum below it. I will give a brief description of whats going on at each stage.

.wav (raw)

Image

The audio -
http://www.depone.co.uk/mp3%20distructi ... neclip.wav

--------------------------------------------------------------------------------------------------------------------------------------

320kbps mp3

Here I can see a cutoff line appearing at approx 16khz


Image

The audio -
http://www.depone.co.uk/mp3%20distructi ... 20clip.mp3

--------------------------------------------------------------------------------------------------------------------------------------

192kbps mp3

Here you can see that the audio is really starting to degrade, the line before has become stronger, and we are loosing more treble


Image

The audio -
http://www.depone.co.uk/mp3%20distructi ... 92clip.mp3

--------------------------------------------------------------------------------------------------------------------------------------

128kbps mp3

Wow, what a change, just look at what the horrible mp3 encoding has done to all that lovely treble! sucks!


Image

The audio -
http://www.depone.co.uk/mp3%20distructi ... 28clip.mp3

--------------------------------------------------------------------------------------------------------------------------------------

96kbps mp3

Well well... in this next one, the graph doesnt even reach 16khz. and its cut at 12khz... wow.


Image

The audio -
http://www.depone.co.uk/mp3%20distructi ... 96clip.mp3

--------------------------------------------------------------------------------------------------------------------------------------

56kbps mp3

ok now we are getting into DnBTV oldskool streaming quality :D


Image

The audio -
http://www.depone.co.uk/mp3%20distructi ... 56clip.mp3

--------------------------------------------------------------------------------------------------------------------------------------

32kbps mp3

and at 32..... what can i say....


Image

The audio -
http://www.depone.co.uk/mp3%20distructi ... 32clip.mp3

--------------------------------------------------------------------------------------------------------------------------------------

Make sure that you listen to the clips provided, they demonstrate the visual loss of quality, although to me the top quality mp3 is very close to the wav...

User avatar
Grumblex
Posts: 185
Joined: Sun Oct 17, 2010 7:35 pm
Location: Devon
Contact:

Re: MP3 Degradation, an experiment.

Post by Grumblex » Tue Dec 21, 2010 9:19 pm

This was a good read :) large up depone . hopefully all those rippers will now realise aha

User avatar
dj nation
Posts: 372
Joined: Thu Apr 23, 2009 1:05 pm
Location: Stockholm, SWE
Contact:

Re: MP3 Degradation, an experiment.

Post by dj nation » Tue Dec 21, 2010 9:24 pm

yea mate, nice lil read, im sure lots of ppl will find it usefull, keep on it
'Dance like no one is watching'

Most recent Guitar Instrumental
Soundcloud

Soundcloud - http://www.soundcloud.com/nationsounds
Myspace - http://www.myspace.com/bagsofmoneycrew

User avatar
Depone
Posts: 3526
Joined: Fri Sep 18, 2009 3:49 pm
Location: South-West UK
Contact:

Re: MP3 Degradation, an experiment.

Post by Depone » Tue Dec 21, 2010 9:24 pm

Also, just bear in mind that soundcloud streams in 128kbps quality, just image how glorious it would sound on vinyl/cd at full resolution :)

User avatar
3za
Posts: 4605
Joined: Mon Apr 28, 2008 9:24 pm

Re: MP3 Degradation, an experiment.

Post by 3za » Tue Dec 21, 2010 9:26 pm

Just one bone to pick, you should have kept the scales of the graphs the same, so they can be compared visually.

you should take your graph of the 192, and 128 to soundcloud, and show them how just a few kbps, can make a big difference.
Last edited by 3za on Tue Dec 21, 2010 9:29 pm, edited 1 time in total.
2 keyboards 1 computer
Sure_Fire wrote:By the way does anyone have the stems to make it bun dem? Missed the beatport comp and would very much like the ego booster of saying I remixed Skrillex.

User avatar
dj nation
Posts: 372
Joined: Thu Apr 23, 2009 1:05 pm
Location: Stockholm, SWE
Contact:

Re: MP3 Degradation, an experiment.

Post by dj nation » Tue Dec 21, 2010 9:27 pm

Depone wrote:Also, just bear in mind that soundcloud streams in 128kbps quality, just image how glorious it would sound on vinyl/cd at full resolution :)
does that go for the download in soundcloud aswell?
'Dance like no one is watching'

Most recent Guitar Instrumental
Soundcloud

Soundcloud - http://www.soundcloud.com/nationsounds
Myspace - http://www.myspace.com/bagsofmoneycrew

User avatar
Depone
Posts: 3526
Joined: Fri Sep 18, 2009 3:49 pm
Location: South-West UK
Contact:

Re: MP3 Degradation, an experiment.

Post by Depone » Tue Dec 21, 2010 9:37 pm

3za wrote:Just one bone to pick, you should have kept the scales of the graphs the same, so they can be compared visually.

you should take your graph of the 192, and 128 to soundcloud, and show them how just a few kbps, can make a big difference.
Wasnt posible im afraid, the graph automatically resized to the very highest frequency thats physically there.

dj nation wrote:
Depone wrote:Also, just bear in mind that soundcloud streams in 128kbps quality, just image how glorious it would sound on vinyl/cd at full resolution :)
does that go for the download in soundcloud aswell?
No no... if you upload in .wav you can download in wav, it just streams in 128
Last edited by Depone on Tue Dec 21, 2010 9:38 pm, edited 1 time in total.

stompzi
Posts: 210
Joined: Wed Mar 11, 2009 9:19 pm

Re: MP3 Degradation, an experiment.

Post by stompzi » Tue Dec 21, 2010 9:38 pm

Depone wrote: Instead of playing every frequency intended in that sound at once, it only plays the most 'needed' or important bit to audibly be passed off as being all those frequencies... It works on psychoacoustics.

...

It mainly comes out of treble, not sure why actually, maybe someone can explain...
You had it, right there. One of the main curiosities they found in studying auditory masking was that higher frequency sounds are harder to distinguish in the presence of lower frequency sounds (I assume down to a certain point, though? I r not audio scientist :(). So, if you're gonna cut something out...
Last edited by stompzi on Tue Dec 21, 2010 9:38 pm, edited 1 time in total.
AIM: Stompzi - always up for chattin' shit

User avatar
legend4ry
Posts: 10589
Joined: Sun Oct 08, 2006 3:56 am
Location: Woolwich

Re: MP3 Degradation, an experiment.

Post by legend4ry » Tue Dec 21, 2010 9:38 pm

dj nation wrote:
Depone wrote:Also, just bear in mind that soundcloud streams in 128kbps quality, just image how glorious it would sound on vinyl/cd at full resolution :)
does that go for the download in soundcloud aswell?
Nah, soudcloud downloads are of the original file uploaded.



An interesting experiment and you really do notice the different when you listen to a 128kbs and a 320 straight after...It just goes to show with storage being so cheap you have no excuse to listen to anything less than 320 quality on your computer as you'll be losing out on so much and clearly won't be appreciating the piece of music for all its worth.
Soulstep wrote: My point is i just wanna hear more vibes
Soundcloud

User avatar
Depone
Posts: 3526
Joined: Fri Sep 18, 2009 3:49 pm
Location: South-West UK
Contact:

Re: MP3 Degradation, an experiment.

Post by Depone » Tue Dec 21, 2010 9:40 pm

stompzi wrote:
Depone wrote: Instead of playing every frequency intended in that sound at once, it only plays the most 'needed' or important bit to audibly be passed off as being all those frequencies... It works on psychoacoustics.

...

It mainly comes out of treble, not sure why actually, maybe someone can explain...
You had it, right there. One of the main curiosities they found in studying auditory masking was that higher frequency sounds are harder to distinguish in the presence of lower frequency sounds (I assume down to a certain point, though? I r not audio scientist :(). So, if you're gonna cut something out...
Right, that makes sense. Juxt position? or is it that lower frequencies have simpler waveforms, and somehow seen as more important?

User avatar
Depone
Posts: 3526
Joined: Fri Sep 18, 2009 3:49 pm
Location: South-West UK
Contact:

Re: MP3 Degradation, an experiment.

Post by Depone » Tue Dec 21, 2010 9:42 pm

legend4ry wrote:
dj nation wrote:
Depone wrote:Also, just bear in mind that soundcloud streams in 128kbps quality, just image how glorious it would sound on vinyl/cd at full resolution :)
does that go for the download in soundcloud aswell?
Nah, soudcloud downloads are of the original file uploaded.



An interesting experiment and you really do notice the different when you listen to a 128kbs and a 320 straight after...It just goes to show with storage being so cheap you have no excuse to listen to anything less than 320 quality on your computer as you'll be losing out on so much and clearly won't be appreciating the piece of music for all its worth.
Its such a shame that a lot of really good music, I can only get hold of in 128kbps. Not talking about dubstep, but some old funk and disco I only have in 128 - 192 quality... :( and are usually ripped from vinyl, so transcoding takes place as well... double par!

User avatar
Ongelegen
Posts: 2310
Joined: Thu Feb 05, 2009 5:17 pm
Location: Netherlands
Contact:

Re: MP3 Degradation, an experiment.

Post by Ongelegen » Tue Dec 21, 2010 9:54 pm

nice post depone :W:

User avatar
Shekul
Posts: 389
Joined: Mon Apr 19, 2010 6:08 pm
Location: South East, UK

Re: MP3 Degradation, an experiment.

Post by Shekul » Tue Dec 21, 2010 9:59 pm

What would be the Kbps equivalent of all those Dnb mixtapes i had back in the day? Or would does that not make sense as tape is entirely different obviously...Anyway, i sure don't miss the days of crappy tape.

"Nah i like track 3 the best"
*Fast forwards tape for about 2 minutes, stops then plays to hear which song the tape is at*
"Fuck i went past it"
*rewinds a bit*
"...this is the end of the first, fuck it ill just play from here"

sigh

User avatar
Depone
Posts: 3526
Joined: Fri Sep 18, 2009 3:49 pm
Location: South-West UK
Contact:

Re: MP3 Degradation, an experiment.

Post by Depone » Tue Dec 21, 2010 10:10 pm

Shekul wrote:What would be the Kbps equivalent of all those Dnb mixtapes i had back in the day? Or would does that not make sense as tape is entirely different obviously...Anyway, i sure don't miss the days of crappy tape.

"Nah i like track 3 the best"
*Fast forwards tape for about 2 minutes, stops then plays to hear which song the tape is at*
"Fuck i went past it"
*rewinds a bit*
"...this is the end of the first, fuck it ill just play from here"

sigh
I actually used to love he sound of my prodigy cacettes. Had MAXBASS on standard. :mrgreen:

User avatar
back2onett
Posts: 893
Joined: Sun Jan 03, 2010 3:47 pm
Location: Brizzle

Re: MP3 Degradation, an experiment.

Post by back2onett » Tue Dec 21, 2010 10:11 pm

One of the best ways to understand why it's the treble that suffers most from low quality is to look at additive synthesis; most good additive synths will use as many harmonics as possible to give the most accurate approximation of a waveform. If we look at a square wave for example it doesn't take all that many harmonics to get a recogniseable square sound:

Image

Even in this diagram we can see a fairly distinct square shape forming already after using 4 harmonics but additive synths like sytrus (If you want to look at this yourself this is a good synth to use because it can easily break down any wave into harmonics) all 256 available harmonics are used. As more harmonics are used the waveform becomes more square-like

Image

Looks pretty square already and that's only 15 harmonics.

By adding more high frequency sine waves we can better approximate the sqaure wave (the wavey bits eventually will look straight) until the point where it looks perfectly square

Image

49 harmonics and you've got a convincing square.

So let's say we're happy with this square and don't need any other harmonics, so that's over 200 high frequency harmonics that we can get rid of to make a more lightweight nimble audio file (MP3)

For the most part it's not noticable until you get to sounds where it is very high frequency heavy (drums especially suffer from this) or until you start really compromising on quality (less than 128kbps at least)

This post might seem a bit rushed, I just grabbed some pictures from wherever so they don't fit together. I know a bit about the Fourier series and basic DSP but I'm sure one of out resident mathematicians can explain in more depth.
How does I wobbled bass?

User avatar
sinehere
Posts: 150
Joined: Fri Aug 21, 2009 1:27 pm
Contact:

Re: MP3 Degradation, an experiment.

Post by sinehere » Tue Dec 21, 2010 10:28 pm

Very interesting, I have compared Wav and 320 many times and I still can't tell the difference, sometimes I think I can but I then realise it's placebo. It is quite easy to visually see the difference with frequency spectrum programs though as your experiment suggests. Good one Depone :4:
Image Image Image Image

AIM: Sin3here
widelows wrote:This is better than a wonkabar.

tavravlavish
Posts: 1312
Joined: Wed Feb 04, 2009 3:47 am
Location: seatroll

Re: MP3 Degradation, an experiment.

Post by tavravlavish » Tue Dec 21, 2010 10:28 pm

Depone wrote:
legend4ry wrote:
dj nation wrote:
Depone wrote:Also, just bear in mind that soundcloud streams in 128kbps quality, just image how glorious it would sound on vinyl/cd at full resolution :)
does that go for the download in soundcloud aswell?
Nah, soudcloud downloads are of the original file uploaded.



An interesting experiment and you really do notice the different when you listen to a 128kbs and a 320 straight after...It just goes to show with storage being so cheap you have no excuse to listen to anything less than 320 quality on your computer as you'll be losing out on so much and clearly won't be appreciating the piece of music for all its worth.
some old funk and disco I only have in 128 - 192 quality...
I WANT :o

hook a bruddah up :m:

User avatar
3za
Posts: 4605
Joined: Mon Apr 28, 2008 9:24 pm

Re: MP3 Degradation, an experiment.

Post by 3za » Tue Dec 21, 2010 10:35 pm

Depone wrote:Also, just bear in mind that soundcloud streams in 128kbps quality, just image how glorious it would sound on vinyl/cd at full resolution :)
Vinyl = full resolution -q-

But seriously I would like to see how the vinyl holds up.
2 keyboards 1 computer
Sure_Fire wrote:By the way does anyone have the stems to make it bun dem? Missed the beatport comp and would very much like the ego booster of saying I remixed Skrillex.

staticcast
Posts: 908
Joined: Fri Apr 16, 2010 12:08 pm
Location: Berlin

Re: MP3 Degradation, an experiment.

Post by staticcast » Tue Dec 21, 2010 10:53 pm

To be honest, 320kbps mp3 shits all over your average DJ vinyl setup for "fidelity". Yes, that includes your brand new Ortofon Pro QBert Super Gold cartridges. The fact is, both formats introduce their own artifacts. Those of vinyl sound - most people think - quite nice. Those of mp3 don't, but - as I've said many times before - I'm skeptical of anyone who thinks they'd be able to *really* tell the difference between a properly-encoded (not iTunes) 320kbps mp3 and a wav on your average home studio setup. The artifacts introduced by the vinyl cutting process are orders of magnitude more noticeable than those introduced by encoding to 320kbps mp3. Again, the point is that these artifacts sound "nice", whereas mp3 artifacts don't.

Dep, your analysis glosses over quite a salient point: the psychoacoustic nature of MP3 encoding applies not only to the frequency domain but to the time domain (for example, a quiet segment immediately after a loud transient, a certain frequency when there are certain other frequencies playing loudly, a certain frequency when certain other frequencies were playing loudly half a second ago - etc etc). Each MP3 encoder has a different decision process to determine which parts of the signal can be "fudged" with fewer audible artifacts, and that's what makes some encoders better than others. It shouldn't really be a surprise that there are some nasties hidden when you go and take a fourier transform of the signal -- the whole point of lossy compression is that it sounds better to the human ear (or eye) than it looks under the unflattering eye of the microscope. How many of you are gonna be pacing around the next DMZ with a handheld spectrum analyser and a concerned look on your face?

(I'm playing devil's advocate here because I love and buy vinyl. But seriously, just use your ears.)

BTW, if you want a more immediate and obvious illustration of where MP3 encoding cuts its corners, try listening to the side signal in M/S mode (ie flip the phase of one channel and then sum them).
o b j e k t

staticcast
Posts: 908
Joined: Fri Apr 16, 2010 12:08 pm
Location: Berlin

Re: MP3 Degradation, an experiment.

Post by staticcast » Tue Dec 21, 2010 11:01 pm

back2onett wrote:49 harmonics and you've got a convincing square.

So let's say we're happy with this square and don't need any other harmonics, so that's over 200 high frequency harmonics that we can get rid of to make a more lightweight nimble audio file (MP3)

For the most part it's not noticable until you get to sounds where it is very high frequency heavy (drums especially suffer from this) or until you start really compromising on quality (less than 128kbps at least)

This post might seem a bit rushed, I just grabbed some pictures from wherever so they don't fit together. I know a bit about the Fourier series and basic DSP but I'm sure one of out resident mathematicians can explain in more depth.
Kinda, but not really. You can only represent harmonics up to the Nyquist frequency, so no digital representation of a square wave will ever look like a perfect square; there'll always be wiggles. (Either that or a rounded edge, depending on what you do with the frequencies just under Nyquist.) Actually, if you draw a "perfect" square wave in a wave editor and then run it through a spectrum analyser, you'll see that there's probably a significant amount of aliasing.

What you're describing is actually just low pass filtering. I'm sure you know what that sounds like. MP3 encoding works quite differently.
o b j e k t

Locked

Who is online

Users browsing this forum: No registered users and 0 guests