Is there any way to reverse compression and is it worth it?

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
pdun459
Posts: 190
Joined: Mon Oct 08, 2012 8:25 pm
Operating System: Please select

Is there any way to reverse compression and is it worth it?

Post by pdun459 » Tue Feb 25, 2014 9:08 pm

I've started noticing compression and intentional clipping on many of my music files. I attached one example from an Alan Parsons CD. Practically the whole CD looks like that. My question is does anyone know if there's a way to reverse these effects and would it make that much difference in sound quality? It sounds okay as it is, but I'm wondering if it would be worth the trouble to try and improve it. Anyone have any experience here?
Attachments
Alan Parsons.jpg
Alan Parsons.jpg (94.45 KiB) Viewed 3339 times

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Is there any way to reverse compression and is it worth

Post by kozikowski » Tue Feb 25, 2014 9:41 pm

No, not really. That's the result of the Loudness War where everybody knows you need to issue music as loud as possible in order to maximize sales.

The trick is to make it sound half-way reasonable while you're doing that. The process is to reduce the loudness variations and change volume on the fly in a show depending on content. This puts it in the same league as a security encryption scheme. The only way to put it back the way it was is to know the way it was -- the circular reasoning thing.

Koz

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

Re: Is there any way to reverse compression and is it worth

Post by DVDdoug » Tue Feb 25, 2014 9:44 pm

There is a Clip Fix effect you can try. I believe it's one of the optional LADSPA plug-ins.

When I tried Clip Fix once or twice, it made the waveform look better but didn't really fix the audible distortion. You're not hearing distortion, but Clip Fix may improve the overall sound.

There are a few other clipping repair tools around. I believe Izotope RX and Adobe Audition both have them. SeeDeClip (~$25 USD & up) is a stand-alone program.

In theory, you can un-do compression with expansion. But, you can't un-do clipping or limiting because it's impossible to know the original height or shape of the waveform. These repair programs have to "guess".

In the real world, expansion doesn't work* because we don't know the original compression parameters (attack, release, threshold, ratio), the individual tracks could have been compressed before mixing, and there can be multiband compression and other unknown variables.




Note that MP3 and vinyl records "distort the distortion" so the clipping is no longer perfectly flat, making it harder to detect with software. (But if it's audible, you'll still hear it.)

People will often claim that the vinyl is less compressed because the waveform looks better and the dynamic range often measures "better" when it's all really from the same master. But in your case, this is an older recording and there is a good chance that the audio has been re-mastered and the original vinyl was more dynamic. But, I'm not saying that scratchy 30-year old vinyl is actually going to sound better than a CD.



* In the analog days, DBX had a noise reduction system that worked by compressing before recording and complementary expansion during playback and phone systems used a similar technique.
Last edited by DVDdoug on Wed Feb 26, 2014 12:03 am, edited 1 time in total.

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

Re: Is there any way to reverse compression and is it worth

Post by DVDdoug » Tue Feb 25, 2014 10:30 pm

P.S.

Expansion can be fun to play with, and you MIGHT get some useful results, but Audacity doesn't seem to come with an expansion effect so you might have to look for a plug-in or try some different software. Maybe someone else can suggest a plug-in...

I also use GoldWave ($60 USD). It has a compressor/expander effect. There is a fully-functional free trial if you want to play around with it. The GoldWave compressor/expander is a little weird, because it sometimes says it's compressing when it's really expanding. But, there are presets such as "Boost Loud Parts" or "Reduce Quiet Parts" which are both examples of dynamic expansion.

If you do expand your peaks, remember to normalize (bring the volume down so your peaks are 0dB or less) to prevent clipping when you save.

pdun459
Posts: 190
Joined: Mon Oct 08, 2012 8:25 pm
Operating System: Please select

Re: Is there any way to reverse compression and is it worth

Post by pdun459 » Tue Feb 25, 2014 10:53 pm

What I've been doing is removing DC offset and applying Clip Fix then normalizing. I'll probably just stick with that as the sound isn't that bad and it sounds like the results might not be worth the extra trouble.

Thanks for the insights and suggestions. :)

Robert J. H.
Posts: 3633
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 10

Re: Is there any way to reverse compression and is it worth

Post by Robert J. H. » Tue Feb 25, 2014 11:23 pm

Chris' Compressor allows expansion if the compression factor is negative.
The parameters for a master limiter could probably be guessed. The attack/release is usually very short. The ratio goes towards infinity (Hard Limiter, not recoverable), at least 1:10 and the threshold is often a integer value such as -3 dB, -6dB or even -10 dB.

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Is there any way to reverse compression and is it worth

Post by kozikowski » Wed Feb 26, 2014 1:46 am

Chris' Compressor allows expansion if the compression factor is negative.
I did not know that.
Koz

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

Re: Is there any way to reverse compression and is it worth

Post by Gale Andrews » Wed Feb 26, 2014 5:21 pm

DVDdoug wrote:There is a Clip Fix effect you can try. I believe it's one of the optional LADSPA plug-ins.
To clarify, Clip Fix is a Nyquist plug-in and is shipped with Audacity: http://manual.audacityteam.org/o/man/clip_fix.html .


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

Post Reply