[FFmpeg-devel] [PATCH] avfilter/select: evaluate silencedetect metadata

Timo Rothenpieler timo at rothenpieler.org
Fri Jun 18 14:32:27 EEST 2021


On 18.06.2021 06:19, Gyan Doshi wrote:
> Instead of a specific option for silencedetect, it would be future-proof 
> if it was an option called, say, metadata with a constant for 
> silencedetect to start with.
> There are multiple per-frame analysis filters like blackframe, 
> blackdetect, freezedetect..etc and it will be easier to just extend 
> 'metadata' with new constants
> than to add a new option for each filter.

The only issue I see with that is a loss of flexibility.
I does not seem like you can pass parameters to variables in the 
expression syntax.
So there would need to be two new parameters for the select filter itself.
The start and the end marker metadata name.

But what if a user wanted to combine multiple detection filters?
I guess chaining multiple select filters would work, but can be pretty 
annoying, depending on the usecase.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4494 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210618/0acd55c9/attachment.bin>


More information about the ffmpeg-devel mailing list