Hello, I am testing the ebur128 filter in FFmpeg. It works very well. BUT: While my recherche I found this document from 2013 https://tech.ebu.ch/docs/events/opensource13/presentations/open-source-loudn... On page 18 there is the information that the ebur128 filter is only implemented for 48kHz sampling rate and that other input sampling rates must be resampled. What is the actual state of the ebur128 filter? Is just 48kHz still implemented or are there more sampling rates implemented since 2013? Best Regards Christoph
What is the actual state of the ebur128 filter? Is just 48kHz still implemented or are there more sampling rates implemented since 2013? From a quick look at the libavfilter/v_ebur128.c source file it seems
On 25.02.2015 10:35, Christoph Gerstbauer wrote: like indeed the filter is only designed for 48kHz and internal re-sampling occurs if you feed an input file with different sample rate. Maybe you just try it with e.g. 44.1kHz and check with "-loglevel debug" for an auto-inserted resampling filter? Regards, Tobias
What is the actual state of the ebur128 filter? Is just 48kHz still implemented or are there more sampling rates implemented since 2013? From a quick look at the libavfilter/v_ebur128.c source file it seems like indeed the filter is only designed for 48kHz and internal re-sampling occurs if you feed an input file with different sample rate.
Maybe you just try it with e.g. 44.1kHz and check with "-loglevel debug" for an auto-inserted resampling filter?
Thank you Tobias, indeed it is just for 48kHz. Part of the comandline output from via debug-loglevel [Parsed_ebur128_0 @ 00000000003eff20] auto-inserting filter 'auto-inserted resampler 0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_ebur128_0' [audio format for output stream 0:0 @ 0000000005358f40] auto-inserting filter 'auto-inserted resampler 1' between the filter 'Parsed_ebur128_0' and the filter 'audio format for output stream 0:0' [AVFilterGraph @ 000000000542c440] query_formats: 4 queried, 3 merged, 6 already done, 0 delayed [auto-inserted resampler 0 @ 00000000003a8640] ch:2 chl:stereo fmt:s32 r:44100Hz -> ch:2 chl:stereo fmt:dbl r:48000Hz [SWR @ 000000000039d460] Using double precision mode [auto-inserted resampler 1 @ 00000000003b0660] [SWR @ 0000000000398f00] Using double precision mode [auto-inserted resampler 1 @ 00000000003b0660] ch:2 chl:stereo fmt:dbl r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz Best Regards
Christoph Gerstbauer <christophgerstbauer <at> gmail.com> writes:
open-source-loudness-rmll-2013.pdf
On page 18 there is the information that the ebur128 filter is only implemented for 48kHz sampling rate and that other input sampling rates must be resampled.
What is the actual state of the ebur128 filter? Is just 48kHz still implemented or are there more sampling rates implemented since 2013?
(As you found out: Command line and complete, uncut console output missing.) I suspect there is a misunderstanding (although I don't know for sure): ebur128 is only defined for 48kHz afaict. Carl Eugen
On Wed, Feb 25, 2015 at 10:35:59AM +0100, Christoph Gerstbauer wrote: [...]
What is the actual state of the ebur128 filter? Is just 48kHz still implemented or are there more sampling rates implemented since 2013?
Yes ebur128 supports only 48kHz because that's the only one standardized (at least when it was implemented; did this change?). I saw some people generalizing the formula for other frequencies, but until this is official I don't see much point in supporting that. Of course, patches are welcome. Feel also free to open a ticket on the trac giving directions for the implementation you expect. -- Clément B.
On 25.02.2015 16:29, Clément Bœsch wrote:
On Wed, Feb 25, 2015 at 10:35:59AM +0100, Christoph Gerstbauer wrote: [...]
What is the actual state of the ebur128 filter? Is just 48kHz still implemented or are there more sampling rates implemented since 2013?
Yes ebur128 supports only 48kHz because that's the only one standardized (at least when it was implemented; did this change?). I saw some people generalizing the formula for other frequencies, but until this is official I don't see much point in supporting that. Of course, patches are welcome.
ITU-R BS.1770-2 states (page 4): """ These filter coefficients are for a sampling rate of 48 kHz. Implementations at other sampling rates will require different coefficient values, which should be chosen to provide the same frequency response that the specified filter provides at 48 kHz. """ I read this as "feel free to use a different sampling rate but you will have to calculate the filter coefficients for yourself". Regards, Tobias
On Thu, Feb 26, 2015 at 03:38:48PM +0100, Tobias Rapp wrote:
On 25.02.2015 16:29, Clément Bœsch wrote:
On Wed, Feb 25, 2015 at 10:35:59AM +0100, Christoph Gerstbauer wrote: [...]
What is the actual state of the ebur128 filter? Is just 48kHz still implemented or are there more sampling rates implemented since 2013?
Yes ebur128 supports only 48kHz because that's the only one standardized (at least when it was implemented; did this change?). I saw some people generalizing the formula for other frequencies, but until this is official I don't see much point in supporting that. Of course, patches are welcome.
ITU-R BS.1770-2 states (page 4):
""" These filter coefficients are for a sampling rate of 48 kHz. Implementations at other sampling rates will require different coefficient values, which should be chosen to provide the same frequency response that the specified filter provides at 48 kHz. """
I read this as "feel free to use a different sampling rate but you will have to calculate the filter coefficients for yourself".
I feel very lazy right now to look for the formula themselves, but if someone have a reference for the 2 filters then I can send a patch to implement them. -- Clément B.
participants (4)
-
Carl Eugen Hoyos -
Christoph Gerstbauer -
Clément Bœsch -
Tobias Rapp