[FFmpeg-devel] [PATCH FFmpeg 11/15] doc: avgclass Filter Documentation

Michael Niedermayer michael at niedermayer.cc
Sun Mar 9 21:19:24 EET 2025


Hi Maximilian

On Sat, Mar 08, 2025 at 04:01:40PM +0100, m.kaindl0208 at gmail.com wrote:
> Try the new filters using my Github Repo https://github.com/MaximilianKaindl/DeepFFMPEGVideoClassification. 
> 
> Any Feedback is appreciated!
> 
> Signed-off-by: MaximilianKaindl <m.kaindl0208 at gmail.com>
> ---
>  doc/filters.texi | 64 ++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 64 insertions(+)
> 
> diff --git a/doc/filters.texi b/doc/filters.texi
> index b6cccbacb6..bd75982d7d 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -30827,6 +30827,70 @@ ffplay -f lavfi 'amovie=input.mp3, asplit [a][out1];
[...]
> + at example
> +Classification averages:
> +Stream #0:
> +  Label: cat: Average probability 0.8765, Appeared 120 times
> +  Label: dog: Average probability 0.3421, Appeared 42 times
> +Stream #1:
> +  Label: music: Average probability 0.9823, Appeared 315 times
> +  Label: speech: Average probability 0.1245, Appeared 15 times
> + at end example

Nice!

how exactly does one interpret the average probability ?

I mean if one frame is detecting a cat with 0.99 and one with 0.01
does that give a average of 0.5 ?
iam asking as that seems not the most usefull metric as two frames with
0.5 would be alot weaker indicator than one with 0.99 that there was at
least one cat (if these behave like standard probabilities)

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250309/bafa0dea/attachment.sig>


More information about the ffmpeg-devel mailing list