Log in

View Full Version : AudioBoost for Avisynth: Possible issue with curve 2 or 4


LigH
24th April 2026, 10:07
I wrote the AudioBoost (https://github.com/LigH-de/AudioBoost) filter, and I am very grateful for everyone helping me in making it possible. And I am pretty sure that it worked well on the desktop PC with a Ryzen 7 CPU I made it on. Unfortunately, this PC is unavailable to me right now.

Instead I have a laptop with Ryzen 5 CPU here and discovered that it does not work well when using curve 2 or 4 (square or absolute ratio sigmoid). There is no useful output when the internal normalization is on, and when I switch it off I see in the stereo histogram that there is audio originating from the minimum point of both channels (not around [0,0] but above [-1,-1], the bottom point of the diamond shape ◇ the stereo graph plots).

Could anyone please try to confirm or deny with mentioning the CPU model, testing in x86 and x64? Thanks in advance.

fn = "" # your favorite audio source, e.g. wav or flac file etc.
c = 2 # compare 0..4

LwLibavAudioSource(fn)
ConvertAudioToFloat()
a=AudioBoost(curve=c, norm=false)
AudioDub(ColorBarsHD(), a)
Trim(0, Ceil(a.AudioDuration*FrameRateNumerator/FrameRateDenominator))
Histogram("audiolevels")
Histogram("stereooverlay")
Info()

hello_hello
24th April 2026, 18:21
I haven't used AudioBoost before, but I thought I'd give it a spin for you.

AMD Ryzen 9 7900X CPU (running Avisynth in Wine on Linux, although I doubt it matters).

Curves 1 & 3 seem fine, but curves 2 & 4 are severely clipped (I checked both the 32 and 64 bit flavours).

https://imgur.com/NQtaVpO.png

LigH
25th April 2026, 05:36
Same issue like mine, thank you. So I will have to fix that when I can use my PC again...

FranceBB
27th April 2026, 23:37
Intel i7 12800H 14c/20th (6 P Core / 12 P Thread + 8 E Core / 8 E Threads) with up to AVX2

Avisynth 3.7.5 r4289
Windows 11 Enterprise x64

same as you guys: c1 and c3 are fine, c2 and c4 are clipped out

c1 fine - c2 clipped out

https://images2.imgbox.com/be/27/oGAHau4E_o.pnghttps://images2.imgbox.com/d2/88/0WWQlLDR_o.png

c3 fine - c4 clipped out even more
https://images2.imgbox.com/3e/81/eyjKGUBe_o.pnghttps://images2.imgbox.com/4c/5d/Du7SPW6p_o.png