On 18.06.2021 14:35, Gyan Doshi wrote:
The drawtext filter does not use expression evaluation for its text parameter.It implements its own logic for that, and it's purely text-replace.The expression parser does support functions, but only functions with one or two numeric arguments. So it'll have to be something like detected(silence) and then silence is a constant numeric variable that the detected function resolves to the specific metadata names.Yeah, so I guess this patch can go ahead as-is, and I'll look into extending eval with a metadata(key) function for a generic facility.
I don't think this can be easily added to the expression parser, since it needs to keep track of the internal state.
Various kinds of metadatas work very differently as well.I'm almost finished changing this patch to a more generic way, where new detection filters that follow the principle of silencedetect can be added easily.
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".