[Libav-user] blackdetect using libavfilter C API

Venkateswaran.S venketeswaran2015 at gmail.com
Fri Mar 8 17:05:58 EET 2019


Hi,

I'm using libavfilter to detect black frame in my video. I followed this
example https://ffmpeg.org/doxygen/3.4/filtering_video_8c-example.html ,
but this example doesn't shows how to print black frame detected duration,
instead it prints out video frames. As of now, I have replaced
const char *filter_descr
<https://ffmpeg.org/doxygen/3.4/filtering__video_8c.html#a84b31b94c024a45c4bcebd875a54e73d>
= "scale=78:24,transpose=cclock"; to const char *filter_descr
<https://ffmpeg.org/doxygen/3.4/filtering__video_8c.html#a84b31b94c024a45c4bcebd875a54e73d>
= "blackdetect=d=2:pix_th=0.00";
in the code.

Thanks & regards,
S.Venkateswaran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20190308/ddf0f15a/attachment.html>


More information about the Libav-user mailing list