Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: .Ogg Vorbis aotuv (Read 494188 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

.Ogg Vorbis aotuv

Reply #225
You have permission to ravage me sexually at your leisure.

As you're in Canada and I'm in the UK, it looks, sadly, as though I may have to pass on your generous offer!!

.Ogg Vorbis aotuv

Reply #226
Wow.  When using this in foobar, when I set "Highest BPS Mode Supported" to 32, I get a 58kbps output file.  When I set it to 16bits, I get a 75kbps output file!  What gives?

[edit] This is true before the patch as well.  q0.  Source was a 161kbps vorbis file from b5.61 (32bit).
Copy Restriction, Annulment, & Protection = C.R.A.P. -Supacon

.Ogg Vorbis aotuv

Reply #227
Wow. When using this in foobar, when I set "Highest BPS Mode Supported" to 32, I get a 58kbps output file. When I set it to 16bits, I get a 75kbps output file! What gives?

[edit] This is true before the patch as well. q0. Source was a 161kbps vorbis file from b5.61 (32bit).


Noise added due to dither or truncating 32->16 bits.

.Ogg Vorbis aotuv

Reply #228
Noise added due to dither or truncating 32->16 bits.


Is there any way to avoid this noise during transcoding?  Other than using 32bits?  Is there some foobar setting?
Copy Restriction, Annulment, & Protection = C.R.A.P. -Supacon

.Ogg Vorbis aotuv

Reply #229
Is there any way to avoid this noise during transcoding?  Other than using 32bits?  Is there some foobar setting?

Well, quantizatoin noise is unavoidable. But:
1. since foobar2000's dither implies noise-shaping
and
2. your settings are quite low (this implies low lowpass frequency)
then turning dither on can reduce bitrate.

.Ogg Vorbis aotuv

Reply #230
Quote
Rarewares changelog cites 'Multichannel code improved'. A while ago Vorbis was rather poor at multichannel encoding (compared to AAC, for example). Have I missed some major change in that direction?


I am guessing somebody figured out to how to couple the channels for 5.1 encoding and other types of multichannel input? changing the code to work with multichannel input is the easy part. Coupling the channels for multchannel and surround setups using Vorbis current configuration is the hard part. It would be nice to know who improved the code in that department so we can give credit where it's due. I removed some notes stating exactly the opposite in the wiki. It's been fixed for some time now. Thanks for bringing up that change for the community though. 
budding I.T professional

.Ogg Vorbis aotuv

Reply #231
Hi

I encounter 2 problems, first one:

there is a lot of clipping in vorbis from -q5 to -q10, You can see it on screenshots (in all screenshots first wave is source wav, second vorbis -q8 encoded with aoTuV 5.61).
Encoding to vorbis files that are very close to clipping gives output file with actual clipping, is there maby a way to tell encoder that if wave goes to close to clipping, have higher bitrate to avoid it.
I know You can use ReplayGain to avoid clipping, but it`s not default option, i`v made package of source and test files from -q5 to -q8 (aoTuV 5.61), the *.ogg files have calculated peak value in tags and You can simply play them in foobar2000, put volume a bit up and see how much of clipping is inside that files, for comparison You can use source file or aply ReplayGain - avoid clipping accordin to peak by track.


Test Files









Foobar2000 - ReplayGain - avoid clipping accordin to peak by track




Second one:

In screenshot below first is "udial.wav" second "udial.-q8.ogg" - I know that this is not audiable in normal listening volume and it does not last long but! it`s there, maby there is something that can bee done with it to fix it.





One way or the other, thx for Your work Aoyumi

.Ogg Vorbis aotuv

Reply #232
Does all this mean that aoTuV encoded ogg vorbis has higher volume than the source?

.Ogg Vorbis aotuv

Reply #233
You noticed that your wave was clipped before you ever encoded it, right?

.Ogg Vorbis aotuv

Reply #234
Quote
Hi

I encounter 2 problems, first one:

There is a lot of clipping in vorbis from -q5 to -q10. You can see it on screenshots (in all screenshots first wave is source wav, second vorbis -q8 encoded with aoTuV 5.61).
Encoding to vorbis files that are very close to clipping gives output file with actual clipping, is there maybe a way to tell encoder that if wave goes comes close to clipping that it is possible to allocate more bits in order to avoid it?. I know you can use ReplayGain to avoid clipping, but it`s not default option, i`v made package of source and test files from -q5 to -q8 (aoTuV 5.61), the *.ogg files have calculated peak value in tags and you can simply play them in foobar2000, put volume a bit up and see how much of clipping is inside that files, for comparison You can use source file or apply ReplayGain - avoid clipping according to peak by track.


Test Files


I am not going to rule out the possibility that the encoder could be causing clipping, but I find it highly unlikely this is a real serious problem. You can't "magically" throw more bits at the encoder to have it prevent clipping. The test samples aren't transient in nature just high frequency tones. You can only allocate more bits to deal with artifacts like pre-echo or microattacks. The one artifact that people have been complaining about recently is "distortion". Whether or not it's related to this is anyone's guess. I am guessing to adjust that you would have to alter some code in psy.c, but Aoyumi probably know's more about the internals then I do. Maybe the noise floor was altered slighly during the tuning process? your sample was clipped before hand so we don't even know if it's a real problem.
budding I.T professional

.Ogg Vorbis aotuv

Reply #235
Hi

I encounter 2 problems, first one:

there is a lot of clipping in vorbis from -q5 to -q10, You can see it on screenshots (in all screenshots first wave is source wav, second vorbis -q8 encoded with aoTuV 5.61).
Encoding to vorbis files that are very close to clipping gives output file with actual clipping, is there maby a way to tell encoder that if wave goes to close to clipping, have higher bitrate to avoid it.
I know You can use ReplayGain to avoid clipping, but it`s not default option, i`v made package of source and test files from -q5 to -q8 (aoTuV 5.61), the *.ogg files have calculated peak value in tags and You can simply play them in foobar2000, put volume a bit up and see how much of clipping is inside that files, for comparison You can use source file or aply ReplayGain - avoid clipping accordin to peak by track.

To clean up someone else's TOS#8 mess...
OK, the udial.wav sample provided is incredibly ABXable and annoying at -q5 with the Linux static gcc4 oggenc-aotuv b5.61 linked from the wiki, it shows a weird distortion that may or may not be (EDIT: Upon further review, it apparently is) related to clipping.
Code: [Select]
foo_abx 1.3.1 report
foobar2000 v0.9.5.1
2009/01/08 23:22:53

File A: D:\clipping\udial.wav
File B: D:\clipping\udial-q5.ogg

23:22:53 : Test started.
23:24:06 : 01/01  50.0%
23:25:16 : 02/02  25.0%
23:25:34 : 03/03  12.5%
23:25:43 : 04/04  6.3%
23:25:53 : 05/05  3.1%
23:26:04 : 06/06  1.6%
23:26:23 : 07/07  0.8%
23:26:59 : 08/08  0.4%
23:27:04 : Test finished.

It's easily ABXable at -q6 with the same distortion, only less of it.
Code: [Select]
foo_abx 1.3.1 report
foobar2000 v0.9.5.1
2009/01/08 23:27:30

File A: D:\clipping\udial.wav
File B: D:\clipping\udial-q6.ogg

23:27:30 : Test started.
23:27:49 : 01/01  50.0%
23:28:02 : 02/02  25.0%
23:28:14 : 03/03  12.5%
23:28:25 : 04/04  6.3%
23:29:31 : 05/05  3.1%
23:29:54 : 06/06  1.6%
23:30:03 : 07/07  0.8%
23:30:15 : 08/08  0.4%
23:30:18 : Test finished.

----------
Total: 8/8 (0.4%)

At -q7,  it's still fairly ABXable though the distortion isn't as annoying.  I could probably live with it.
Code: [Select]
foo_abx 1.3.1 report
foobar2000 v0.9.5.1
2009/01/08 23:31:54

File A: D:\clipping\udial.wav
File B: D:\clipping\udial-q7.ogg

23:31:54 : Test started.
23:32:19 : 01/01  50.0%
23:32:25 : 02/02  25.0%
23:32:34 : 03/03  12.5%
23:32:50 : 04/04  6.3%
23:32:56 : 05/05  3.1%
23:33:06 : 06/06  1.6%
23:33:13 : 07/07  0.8%
23:33:23 : 08/08  0.4%
23:33:24 : Test finished.

----------
Total: 8/8 (0.4%)

At q8, it's still easly ABXable
Code: [Select]
foo_abx 1.3.1 report
foobar2000 v0.9.5.1
2009/01/08 23:34:46

File A: D:\clipping\udial.wav
File B: D:\clipping\udial-q8.ogg

23:34:46 : Test started.
23:34:58 : 01/01  50.0%
23:35:07 : 02/02  25.0%
23:36:33 : 03/03  12.5%
23:36:39 : 04/04  6.3%
23:36:46 : 05/05  3.1%
23:36:54 : 06/06  1.6%
23:36:59 : 07/07  0.8%
23:37:08 : 08/08  0.4%
23:37:11 : Test finished.

----------
Total: 8/8 (0.4%)

Still fairly ABXable at -q9.
Code: [Select]
foo_abx 1.3.1 report
foobar2000 v0.9.5.1
2009/01/08 23:38:01

File A: D:\clipping\udial.wav
File B: D:\clipping\udial-q9.ogg

23:38:01 : Test started.
23:38:23 : 01/01  50.0%
23:38:29 : 02/02  25.0%
23:38:44 : 03/03  12.5%
23:38:52 : 04/04  6.3%
23:39:00 : 05/05  3.1%
23:39:09 : 06/06  1.6%
23:39:19 : 07/07  0.8%
23:39:24 : 08/08  0.4%
23:39:26 : Test finished.

----------
Total: 8/8 (0.4%)

At -q10, it may actually be worse than -q9.
Code: [Select]
foo_abx 1.3.1 report
foobar2000 v0.9.5.1
2009/01/08 23:40:20

File A: D:\clipping\udial.wav
File B: D:\clipping\udial-q10.ogg

23:40:20 : Test started.
23:41:25 : 01/01  50.0%
23:41:32 : 02/02  25.0%
23:41:44 : 03/03  12.5%
23:41:54 : 04/04  6.3%
23:42:08 : 05/05  3.1%
23:42:21 : 06/06  1.6%
23:42:30 : 07/07  0.8%
23:42:37 : 08/08  0.4%
23:42:40 : Test finished.

----------
Total: 8/8 (0.4%)

All of this was done with replaygain off.
With replaygain on in the abx tester, I don't think I can ABX it, but there's a strange noise (sounds kinda like an alien ray gun in some cheesy low-budget sci-fi film) on both the lossless and lossy copies (WINE bug? foobar abx plugin and diskwrriter plugin applying track gain while completely disregarding the maximum gain that can be applied without causing clipping?).

.Ogg Vorbis aotuv

Reply #236
Source does not have clipping, it`s on clipping threshold to test if hardware is clipping, if Your sound card is clipping on that sample, blame hardware, my sound card is audiotrak prodigy hd2 and on +3 dB - 100% volume there is no distortion of any kind and no clipping from source sample, same says Audacity, source file does not have clipping.
It`s easy to test visually in any audio editor software, like I said, purpose of this test sample is to find out if sound card adds clipping, on good sound card there is none i`m 100% positive.
I`v made one more sample file so that You maby can distinguish a sound card clipping from audio clipping encoded in vorbis.
Test sample - Left channel WAV - no clipping, Right channel aoTuV b5.61 -q8 - with clipping.
If You have good sound card than on full volume You will her clear sound from left channel and clipping (distortion) on right, if You hear distortion on both channels try to distinguish hardware clipping from clipping sample.

Quote
I am not going to rule out the possibility that the encoder could be causing clipping, but I find it highly unlikely this is a real serious problem. You can't "magically" throw more bits at the encoder to have it prevent clipping. The test samples aren't transient in nature just high frequency tones. You can only allocate more bits to deal with artifacts like pre-echo or microattacks. The one artifact that people have been complaining about recently is "distortion". Whether or not it's related to this is anyone's guess. I am guessing to adjust that you would have to alter some code in psy.c, but Aoyumi probably know's more about the internals then I do. Maybe the noise floor was altered slighly during the tuning process? your sample was clipped before hand so we don't even know if it's a real problem.


What i ment is that if sin wave peak is on threshold than encoder sholud know that and spend more time to analize the signal, and if necessary put higher bitrate on that specific peak to describe it more precise and avoid clipping, it`s like this:




of course that is only what i think is happening and it`s my guess why encoder adds clipping.


Quote
Does all this mean that aoTuV encoded ogg vorbis has higher volume than the source?


No, it means that it is no lossless codec and what goes with it, not evry sample have exactly the same value; that isn`t issue here, problem is when we have a sample that is almost clipping and it`s peak value is not described presisly but only as average value than it can happen something like this on that screenshots.

.Ogg Vorbis aotuv

Reply #237
All of this was done with replaygain off.
With replaygain on in the abx tester, I don't think I can ABX it, but there's a strange noise (sounds kinda like an alien ray gun in some cheesy low-budget sci-fi film) on both the lossless and lossy copies (WINE bug? foobar abx plugin and diskwrriter plugin applying track gain while completely disregarding the maximum gain that can be applied without causing clipping?).


No, there is no wine bug, in that smple there is 19-21 kHz sin wave very close to clipping, that frequency on that volume makes some hardware to generate distortions, only thing I can say is congrats on Your hearing
For me that frequency in that sample is audiable at pre-amp volume 0,0 dB and master volume -1,2 dB.

.Ogg Vorbis aotuv

Reply #238


All of this was done with replaygain off.
With replaygain on in the abx tester, I don't think I can ABX it, but there's a strange noise (sounds kinda like an alien ray gun in some cheesy low-budget sci-fi film) on both the lossless and lossy copies (WINE bug? foobar abx plugin and diskwrriter plugin applying track gain while completely disregarding the maximum gain that can be applied without causing clipping?).


No, there is no wine bug, in that smple there is 19-21 kHz sin wave very close to clipping, that frequency on that volume makes some hardware to generate distortions, only thing I can say is congrats on Your hearing
For me that frequency in that sample is audiable at pre-amp volume 0,0 dB and master volume -1,2 dB.

Actually, looking at the frequency response of the file I managed to output with foobar's diskwriter plugin, there are loud weird tones in the mids/highs that aren't in the original.  I've never heard any clipping sound like that, but I don't frequently deal with signals that are almost clipping before getting amplified by 18db (equivalent to getting multiplied by approximately 63).

EDIT: To make it clear, I mean that it seems that Foobar2000's ABX tool applies track gain without looking into the maximum gain that can be applied without clipping.  Since udial.wav happens to have the rare combination of "low average volume" (replaygain of +18db) and "near clipping" (peak at approximately 0.98), you get massive clipping.

.Ogg Vorbis aotuv

Reply #239
I encounter 2 problems, first one:

there is a lot of clipping in vorbis from -q5 to -q10, You can see it on screenshots (in all screenshots first wave is source wav, second vorbis -q8 encoded with aoTuV 5.61).
Encoding to vorbis files that are very close to clipping gives output file with actual clipping, is there maby a way to tell encoder that if wave goes to close to clipping, have higher bitrate to avoid it.
I know You can use ReplayGain to avoid clipping, but it`s not default option, i`v made package of source and test files from -q5 to -q8 (aoTuV 5.61), the *.ogg files have calculated peak value in tags and You can simply play them in foobar2000, put volume a bit up and see how much of clipping is inside that files, for comparison You can use source file or aply ReplayGain - avoid clipping accordin to peak by track.

It is a very interesting sample.
This problem is not a thing peculiar to the aoTuV (vorbis). The problem can happen in the lossy encoding whole.
I confirmed that there were the similar problems in AAC(NeroAAC 1.3.3.0 Q0.99) and MP3(LAME 3.98.2 -b320), WMA std 9.2(q98), Musepack(mppenc1.16 Q10).

Then, about the problem to occur with it sample, you can evade it by changing lowpass filter setting (without?replaygain).

e.g.
venc.exe -q5 -lowpass=18 udial.wav

.Ogg Vorbis aotuv

Reply #240
Quote
of course that is only what I think is happening and it`s my guess why encoder adds clipping.


We have just established that is not a major problem and in fact happens with most lossy encoders. It's not something directly related to the Vorbis encoder.  Again it's not a real serious problem.
budding I.T professional

.Ogg Vorbis aotuv

Reply #241
Not that it's likely to matter much with real samples, but perhaps the encoder should realize that there's a large amount of HF noise and adapt the lowpass accordingly.

(/me goes to try to ABX udial at a lower bitrate)
EDIT:  Hopefully I'm not violating TOS#8 here, but after listening to both samples, I'm fairly confident I can't ABX a aotuv b5.61 -q 3 encode.
Is this the first sample ever that's ABXable at -q 10 but not at -q 3?

.Ogg Vorbis aotuv

Reply #242
Is this the first sample ever that's ABXable at -q 10 but not at -q 3?

It is because the fixed lowpass filter setting of the default is different. Quality value does not matter.

.Ogg Vorbis aotuv

Reply #243
Using lowpass it`s not the way!

Less audio killing is to have encoder thaht knows when audio is clipping and accordingly peak should be lowered to have none cliping audio.
And it should be mandatory and default.

If other encoders do the same, that`s great but it doesn`t mean that vorbis can`t be better.

...and btw I like vorbis couse there is no frequency cutoff, for me using low pass filter is out of the question, simplest solution would be implementing something like replaygain , seting highest peak value according to clipping it should be built in encoder and set as default.

.Ogg Vorbis aotuv

Reply #244
...for me using low pass filter is out of the question...
Why? Can you provide ABX test results confirming that you can hear the difference between no lowpass and, say, a 16KHz lowpass in typical music content? Why make the encoder's job harder than it needs to be if you can't hear any difference... or can you?

Cheers, Slipstreem. 

.Ogg Vorbis aotuv

Reply #245
...for me using low pass filter is out of the question...
Why? Can you provide ABX test results confirming that you can hear the difference between no lowpass and, say, a 16KHz lowpass in typical music content? Why make the encoder's job harder than it needs to be if you can't hear any difference... or can you?

Cheers, Slipstreem. 


No, I can`t but my head splits in two when I see cutoff`s on spectrum analizer, let say it`s a matter of taste

And about low pass filter; it works in this sample couse the clipping accoures in high frequency if there were clipping on vocals, guitar, etc..., than it would do any good.

.Ogg Vorbis aotuv

Reply #246
Aoyumi Thank you for your work!
I really liked your recent work (aoTuV b5c [20081215]), especially the full Stereo mode for up to 160 kbps
I wish you success:)

 

.Ogg Vorbis aotuv

Reply #247
No, I can`t but my head splits in two when I see cutoff`s on spectrum analizer, let say it`s a matter of taste
So, in audible terms, it means nothing to you. Graphs also mean nothing unless you listen with your eyes.
Quote
And about low pass filter; it works in this sample couse the clipping accoures in high frequency if there were clipping on vocals, guitar, etc..., than it would do any good.
So you don't think it makes sense to do something that has no audible effect to you personally in terms of HF content but helps the encoder to provide perceptual transparency in some problem cases? Interesting.

As you say, it's a matter of your own personal taste, but it defies logic.

Cheers, Slipstreem. 

.Ogg Vorbis aotuv

Reply #248
No, I can`t but my head splits in two when I see cutoff`s on spectrum analizer, let say it`s a matter of taste
So, in audible terms, it means nothing to you. Graphs also mean nothing unless you listen with your eyes.
Quote
And about low pass filter; it works in this sample couse the clipping accoures in high frequency if there were clipping on vocals, guitar, etc..., than it would do any good.
So you don't think it makes sense to do something that has no audible effect to you personally in terms of HF content but helps the encoder in some problem cases? Interesting.

Cheers, Slipstreem. 



You can hear it when You don`t use low pass filter, when You use it it`s no longer there couse it`s have been cut out - this is solution to You ?

When You have clipping in lower frequencies You think cutting them out is the way to go?
Clipping is not a thing that can happen only abowe 16 kHz, the problem is not do we want or not use low pass filter or do we like it or not, problem is that vorbis gains a lot of clipping in some tracks, low pass filter can only remove clipping along with frequency, but what with clipping on the other 16 kHz You think we should cut this out too?
If someone wants to use low pass, great but even then it won`t resolve clipping problem.
Purpose of this test sample is not to correct one file, it`s for showing what is happening, and finding good solution to correct it.

.Ogg Vorbis aotuv

Reply #249
If the original content in the source material that causes the problem in question is outside your normal hearing range, yes. If not, then no.

I wasn't being deliberately argumentative as your reply seems to imply. I was merely offering a perfectly logical solution for some problem cases that could be applied at all times by a given individual once their personal requirements are realistically ascertained, thus making such problem cases a non-problem ever again at any point in the future. Take it or leave it.

Cheers, Slipstreem.