Opened 8 months ago

Last modified 7 months ago

#9613 new enhancement

add volumedetect filter support for >16bit audio

Reported by: chconnor Owned by:
Priority: normal Component: avfilter
Version: unspecified Keywords: normalize, loudness, normalization, filter, filtering, filters, volume, volumedetect
Cc: chconnor, slhck Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Running the volume detect filter on e.g. 32bit float audio does not work correctly because it converts internally to 16bit integer format (see docs:

It would be great if the filter supported such audio files.

Change History (5)

comment:1 by slhck, 8 months ago

Cc: slhck added

comment:2 by Elon Musk, 7 months ago

It would give no real benefits, unless you care for >0 dB samples.

in reply to:  2 comment:3 by chconnor, 7 months ago

Yeah. In my case I was normalizing ~1700 files (convolution reverb impulse responses) most of which had peaks over 0 dBFS.

Floating point audio isn't too uncommon a thing to want normalize, and the reason to normalize it is often precisely because it can have peaks over 0 dBFS.

comment:4 by slhck, 7 months ago

I'd agree that this would be useful to have.

comment:5 by Elon Musk, 7 months ago

It is already available in astats filter, -af astats=measure_overall=Peak_level:measure_perchannel=0

Note: See TracTickets for help on using tickets.