WavPack and high sampling rates |
![]() ![]() |
WavPack and high sampling rates |
Dec 10 2008, 18:19
Post
#1
|
|
![]() Group: Members Posts: 364 Joined: 20-May 06 Member No.: 30963 |
Hello guys.
Iīve did a search for this but I found no answer. Iīm using WavPack a lot recently on high definition files (24/96) and I have a question. I would like to know why WavPack disables the dynamic noise shaping when used with sampling rates above 64 kHz? Will I get a benefit when I use the switch --use-dns? When using WaveLabīs frequency analysis on files that were processed without any switch Iīm getting dynamic high frequency content over 20 kHz which I assume is quantization noise. When Iīm forcing the -dns switch this noise is much lower but I think it is still there. Where is it? Is it masked in the lower frequency regions (20-20.000 Hz)? Thanks in advance for an answer. BTW, great codec! -------------------- http://marlene-d.blogspot.com/
|
|
|
|
Dec 10 2008, 18:36
Post
#2
|
|
|
Group: Members Posts: 3083 Joined: 1-September 05 From: SE Pennsylvania Member No.: 24233 |
Does this even make sense? WavPack is lossless, so the only effect of different switches would to be to change the packing efficiency, not to change the audio content.
|
|
|
|
Dec 10 2008, 18:45
Post
#3
|
|
![]() Group: Members Posts: 364 Joined: 20-May 06 Member No.: 30963 |
Does this even make sense? WavPack is lossless, so the only effect of different switches would to be to change the packing efficiency, not to change the audio content. Iīm sorry, I forgot to mention that I always use the lossy (hybrid) compression due to limited harddrive space. -------------------- http://marlene-d.blogspot.com/
|
|
|
|
Dec 10 2008, 19:00
Post
#4
|
|
|
Group: Members Posts: 3083 Joined: 1-September 05 From: SE Pennsylvania Member No.: 24233 |
Ah, now I understand.
If you are using it lossy then is there any advantage to leaving it as 24/96? |
|
|
|
Dec 10 2008, 19:08
Post
#5
|
|
![]() Group: Members Posts: 364 Joined: 20-May 06 Member No.: 30963 |
Ah, now I understand. If you are using it lossy then is there any advantage to leaving it as 24/96? When having original 24/96 files, yes. I donīt like to resample and other codecs like AAC or WMA-Professional simply discard everything above 20 kHz. I would like to keep them & save space at the same time. The lossless compression eats away too much of my limited space. -------------------- http://marlene-d.blogspot.com/
|
|
|
|
Dec 10 2008, 19:23
Post
#6
|
|
![]() Group: Members Posts: 266 Joined: 3-August 08 From: UK Member No.: 56644 |
|
|
|
|
Dec 10 2008, 19:41
Post
#7
|
|
![]() Group: Super Moderator Posts: 3268 Joined: 26-July 02 From: princegeorge.ca Member No.: 2796 |
If you're not doing anything with those 24/96 files other than simple playback and you want smaller file-size, have you considered resampling and dithering down to 44.1/16? The bonus of doing that is that you can easily burn them to CD as well. You're not going to hear the difference if all you're doing is playing them back.
This post has been edited by Canar: Dec 10 2008, 19:41 -------------------- (atrix|(fb2k->e-mu 0404 usb|audio 8 dj))->hd280|jvc ha-fx35-b
|
|
|
|
Dec 10 2008, 19:49
Post
#8
|
|
![]() Group: Members Posts: 364 Joined: 20-May 06 Member No.: 30963 |
So do your ears Please please please, no discussion over the benefit of 24/96 vs. 16/44.1. I just would like to know what happens to the quantization noise with high sampling rates when I use the dynamic noise shaping feature - nothing else. If you're not doing anything with those 24/96 files other than simple playback and you want smaller file-size, have you considered resampling and dithering down to 44.1/16? The bonus of doing that is that you can easily burn them to CD as well. You're not going to hear the difference if all you're doing is playing them back. Yes, I considered it but I listen only over my computer. I donīt burn files to CD (my CD player is barely used) and I donīt want to use a smaller sampling rate if the 24/96 files are original, say something from Linn or HDTracks.com. Please donīt let us discuss if one can hear 24/96 or not, this has been discussed on this forum before - with huge proportions. I will post it again: - I still would like to know where the noise goes when --use-dns is used Please? This post has been edited by Cavaille: Dec 10 2008, 19:52 -------------------- http://marlene-d.blogspot.com/
|
|
|
|
Dec 10 2008, 21:20
Post
#9
|
|
![]() WavPack Developer Group: Developer (Donating) Posts: 1219 Joined: 3-January 02 From: San Francisco CA Member No.: 900 |
Hello guys. Iīve did a search for this but I found no answer. Iīm using WavPack a lot recently on high definition files (24/96) and I have a question. I would like to know why WavPack disables the dynamic noise shaping when used with sampling rates above 64 kHz? Will I get a benefit when I use the switch --use-dns? When using WaveLabīs frequency analysis on files that were processed without any switch Iīm getting dynamic high frequency content over 20 kHz which I assume is quantization noise. When Iīm forcing the -dns switch this noise is much lower but I think it is still there. Where is it? Is it masked in the lower frequency regions (20-20.000 Hz)? Thanks in advance for an answer. BTW, great codec! In a very simplified description, the dynamic noise shaping feature attempts to move the quantization noise toward where the signal is. At normal sampling rates (where all frequencies represented are potentially audible) this can reduce the audibility of the quantization noise because it is masked by the signal. However, in the case of higher sampling rates where the top octave (and sometimes more) are beyond the range of human hearing, it might make more sense to bias the quantization noise in that direction, which can dramatically reduce the noise in the audible range. That's the reason that the dynamic noise shaping is disabled for high sampling rates; instead the noise shaping is equivalent to -s1.0 to force the noise up in frequency at 6 dB / octave. If you force the dynamic shaping on with the use-dns switch then the noise will be permanently shifted toward lower frequencies because that's where the signal is. I discuss this some in this thread and included some spectrum analysis showing the noise distribution. I did not do the same thing with DNS, but the noise in the audible range would be much higher. BTW, thanks! edit: added sentence for clarity This post has been edited by bryant: Dec 10 2008, 21:24 |
|
|
|
Dec 10 2008, 21:34
Post
#10
|
|
![]() Group: Members Posts: 364 Joined: 20-May 06 Member No.: 30963 |
In a very simplified description, the dynamic noise shaping feature attempts to move the quantization noise toward where the signal is. At normal sampling rates (where all frequencies represented are potentially audible) this can reduce the audibility of the quantization noise because it is masked by the signal. However, in the case of higher sampling rates where the top octave (and sometimes more) are beyond the range of human hearing, it might make more sense to bias the quantization noise in that direction, which can dramatically reduce the noise in the audible range. That's the reason that the dynamic noise shaping is disabled for high sampling rates; instead the noise shaping is equivalent to -s1.0 to force the noise up in frequency at 6 dB / octave. If you force the dynamic shaping on with the use-dns switch then the noise will be permanently shifted toward lower frequencies because that's where the signal is. I discuss this some in this thread and included some spectrum analysis showing the noise distribution. I did not do the same thing with DNS, but the noise in the audible range would be much higher. BTW, thanks! edit: added sentence for clarity Thatīs it! Man, I love you. Thank you so very much, this answers my question exactly. Also spectrum analysis made everything clear immediately. Simple and perfect explanations. As far as I can tell (from my amateursī point of view) you did a great job of creating this codec & using noise shaping. To my knowledge yours is the only codec that does noise shaping which I think is a very intelligent and unique approach for a lossy codec. Iīve used WMA-Professional before but now I can completely move over to WavPack. Thanx again. -------------------- http://marlene-d.blogspot.com/
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 15:37 |