[FFmpeg-devel] [PATCH] avfilter/alimiter: Add "flush_buffer" option to flush the remaining valid data to the output

Marton Balint cus at passwd.hu
Mon Mar 28 00:40:51 EEST 2022



On Sat, 26 Mar 2022, Wang Cao wrote:

> The change in the commit will add some samples to the end of the audio
> stream. The intention is to add a "zero_delay" option eventually to not
> have the delay in the begining the output from alimiter due to
> lookahead.

I was very much suprised to see that the alimiter filter actually delays 
the audio - as in extra samples are inserted in the beginning and some 
samples are cut in the end. This trashes A-V sync, so it is a bug IMHO.

So unless somebody has some valid usecase for the legacy way of operation 
I'd just simply change it to be "zero delay" without any additional user 
option, in a single patch.

Regards,
Marton


More information about the ffmpeg-devel mailing list