Removing clipping from an MP3 file

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
MT3269
Posts: 17
Joined: Sun Jan 24, 2016 5:15 am
Operating System: Windows 7

Removing clipping from an MP3 file

Post by MT3269 » Sun Jan 24, 2016 5:30 am

Howdy

New to this forum, but anyhow, last year, I recorded a file which has pretty bad clipping in it. It's not that bad in which one can't hear any of it clearly at all, but it's certainly not clear of clipping. I was just wondering, are there any tools in Audacity that can eliminate this clipping? I've tried the de-clip plugin, and I can't seem to get it to work properly. Basically it I just waiting for the process to end, and it's exactly the same afterwards. Basically, I just want to replace the faulty bits with stable ones, but I'd like to do it using a in a program, instead of a long daunting task doing it manually.

I'm using version 2.1.0 btw. Windows 7 Home Premium 64 bit

Here's a preview of the bad file. I really want to get this one fixed if possible, as the actual audio its self stands out to me like dogballs. It's been annoying me for months now, but I recorded it with the wrong settings unknowingly.

http://i7.photobucket.com/albums/y255/S ... cs8suu.jpg

Thanks

DVDdoug
Forum Crew
Posts: 9419
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: Removing clipping from an MP3 file

Post by DVDdoug » Sun Jan 24, 2016 6:54 am

That waveform doesn't look clipped. At least not badly... There are couple of negative spikes, but at that zoom level it's hard to know if there's some kind of glitch, or clipping, etc. And in general, you can't judge sound quality by looking at the waveform...

A couple of times when I tried Clip Fix, it made the waveform look better, but it didn't fix the sound.

If you select View -> Show Clipping you should see red where there's clipping, and if you zoom-in you should see clipped waveforms. (You might have to use the Amplify effect to reduce the volume in order to see the clipped peaks.)

Note that MP3 compression often boosts some peaks by one or two dB . MP3 files can to over 0dB, and this peak-boost can result in Audacity showing potential clipping even though the wave peaks are not clipped.

cyrano
Posts: 2629
Joined: Fri Apr 17, 2015 11:54 pm
Operating System: macOS 10.13 High Sierra

Re: Removing clipping from an MP3 file

Post by cyrano » Sun Jan 24, 2016 1:38 pm

When rendering to an mp3, the peaks should be below -3 dB. If not, mp3 will sound awful. Even without clipping...

If you really need to compress dynamics, use a multi band compressor if your end result will be an mp3. It could also be wise for other lossy compression, but I've never experimented a lot with those.

There's no real fix after the facts. That's why you should at least keep an uncompressed archive copy of your project, so you can go back.

There are some expensive plugins that can make clipping less noticeable, but I have no idea if any of them work with Audacity, as I don't own them...

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Removing clipping from an MP3 file

Post by Gale Andrews » Sun Jan 24, 2016 4:17 pm

MT3269 wrote:I just want to replace the faulty bits with stable ones, but I'd like to do it using a in a program, instead of a long daunting task doing it manually.
Does EZ-Patch help?

Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

DVDdoug
Forum Crew
Posts: 9419
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: Removing clipping from an MP3 file

Post by DVDdoug » Sun Jan 24, 2016 4:39 pm

When rendering to an mp3, the peaks should be below -3 dB. If not, mp3 will sound awful. Even without clipping...
I've never heard of a case where reducing the level before encoding prevented or reduced compression artifacts.

NOTE - A proper scientific, blind, ABX Text must be level matched. That means you'd have to reduce the loud MP3 (after encoding) before comparing the sound quality of the loud & quiet versions. And, you'd have to do that with a tool like MP3directCut that allows level changes without de-compressing/re-compressing.

cyrano
Posts: 2629
Joined: Fri Apr 17, 2015 11:54 pm
Operating System: macOS 10.13 High Sierra

Re: Removing clipping from an MP3 file

Post by cyrano » Sun Jan 24, 2016 5:24 pm

DVDdoug wrote:
When rendering to an mp3, the peaks should be below -3 dB. If not, mp3 will sound awful. Even without clipping...
I've never heard of a case where reducing the level before encoding prevented or reduced compression artifacts.
I've put quite some time in researching why some of my mp3's in iTunes sounded so bad.

First, I suspected bitrate. But then i found some lower bitrate mp"s sounded good.
Then I suspected the software used to convert to mp3. There was no pattern to be found.

So I started experimenting with CD's and ripping them with iTunes and other encoders. No pattern either. Until I ripped a Metallica CD that was compressed to zero dB and already had some clipping. It was awful, once ripped.

So I took some very good quality productions from Zappa, Chris Rea and others and started amplifying those before ripping. No problem until you go over -3 dB.

Long after that, I found a youtube vid from TC Electronic in Denmark. It was about the new LUFS metering system for broadcast and how that would kill the incentive to over compress. And there was a specialist from TC Electronic confirming what I discovered on my own.

Lemme see if I can dig up the vid. It's very enlightening on the subject of compression.
NOTE - A proper scientific, blind, ABX Text must be level matched. That means you'd have to reduce the loud MP3 (after encoding) before comparing the sound quality of the loud & quiet versions. And, you'd have to do that with a tool like MP3directCut that allows level changes without de-compressing/re-compressing.
I know about levels and have the software to do blind listening tests. I wouldn't use a tool like MP3directcut, as you can easily adjust playback level in the DAW when necessary.

When I started all of this, I started with the suspicion that my old monitors needed a rebuild. In fact, I rebuilt some of them, to be quite disappointed. The mp3's even sounded a bit worse, afterwards...

I also don't ever do blind listening tests on my own. We do these with at least five listeners, all of them audio engineers or at least people who have listening experience and can compare with live (classical) music. One person rules the button that switches, the four others listen and take notes. Of course, we rotate the person who controls the button... :D
Last edited by cyrano on Sun Jan 24, 2016 5:31 pm, edited 2 times in total.

cyrano
Posts: 2629
Joined: Fri Apr 17, 2015 11:54 pm
Operating System: macOS 10.13 High Sierra

Re: Removing clipping from an MP3 file

Post by cyrano » Sun Jan 24, 2016 5:25 pm


Post Reply