Isn't the lossless compression method more noise-resistant?
Show older comments
Hi everyone
I do an audio compression with bit per sample variations
The original file is .wav (2 channels) and compressed using the lossless .flac method with variations in bits per sample (24,16, and 8)
When measuring objective difference grade (ODG) on .flac audio with 16 and 24-bit samples compared to the original file there is no problem (ODG=0)
However, when checking the audio .flac bitpersample 8 compared to the original file the result becomes -3 (Annoying)
Why can this happen?
Even though I used a lossless method which should be more resistant to noise
Isn't the lossless compression method more noise-resistant?
I'm sorry, i cant speak english very well
Thank you very much
Answers (1)
Image Analyst
on 2 Sep 2021
1 vote
If your original (best) signal has 24 bits per sample then quantizing it to 8 or 16 bits per sample will degrade the waveform. The degraded waveform will have some difference from the original. I don't know that I'd call it "noise" exactly. Rather than an alteration of the signal due to a random process, it's more of a quantization error due to a systematic process. Even though the signal is written and recalled with a noiseless compression, there will be a difference between the quantized signal and the original due to quantization.
In general lossless compression is completely "resistant" to noise in that if you save something with lossless compression and then read it back in, it will be the same as what you originally saved.
If you have lossy compression, the recalled signal will not be the same as the original. We usually call the differences "compression artifacts" rather than "noise."
5 Comments
Sisi Misi
on 3 Sep 2021
Image Analyst
on 3 Sep 2021
I'm not sure what you mean. Lossless compression will conserve the signal in that it will be the same after a round trip compress, save, recall, uncompress. If you reduce the number of bits per sample, or if you use lossy compression, obviously you are throwing away information and there is not way to get it back 100% afterwards. You could try some interpolation but it won't be exact for every sample point.
Sisi Misi
on 6 Sep 2021
Image Analyst
on 6 Sep 2021
I'm not an expert in different ways (formats) to compress audio with loss to reduce the loss. I don't even know what formats are lossless or lossy so you know more than me already. Sorry - my expertise is in image processing not audio signal processing.
Sisi Misi
on 6 Sep 2021
Categories
Find more on Audio I/O and Waveform Generation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!