DynamicAudioNormalizer icon indicating copy to clipboard operation
DynamicAudioNormalizer copied to clipboard

Support for overlapping audio frames

Open cmrdt opened this issue 8 years ago • 3 comments

when the audio frames get bigger, (less risk of gap artifacts) but the get spaced further apart, and thus less time-precision if there was overlap maybe get slightly finer results?

cmrdt avatar Feb 27 '17 20:02 cmrdt

Actually I think that we don't need longer frames to avoid "gap artifacts". That's because you can simply increase the filter size, i.e. the number of frames in the filter's window, if you think the filter is adjusting the amplification factor too quickly. The minimum filter followed by Gaussian smoothing filter already avoids "abrupt" changes in the amplification factor. The bigger the window, the less variation there will be.

FilterSize.png


I considered using "overlapping" windows when implementing the filter. But it would make things considerably more complex. And I don't currently see the need for it. We already do not use the same amplification factor for all samples in a frame. We interpolate (linearly) between neighboring frames.

Interpolation.png

lordmulder avatar Mar 01 '17 17:03 lordmulder

FFmpeg filter dynaudnorm have overlap option implemented.

richardpl avatar Nov 10 '22 08:11 richardpl

Thanks for the info!

But, even though the FFmpeg filter was based on idea from DynAudNorm (I believe), it is whole different/new code.

So, will not be trivial to back-port overlap option...

lordmulder avatar Nov 10 '22 19:11 lordmulder