[FFmpeg-user] How to use ffmpeg to detect commercials

Venkateswaran.S venketeswaran2015 at gmail.com
Thu Sep 30 16:45:44 EEST 2021


>
> I thinks it's not possible with ffmpeg command line tool. There is a
> *delogo* filter which removes the logo from the clip but doesn't tell you
> the timings where this logo appears.

You can easily detect the logo in image using opencv lib
> <https://ai-facets.org/robust-logo-detection-with-opencv/> . So if you
> can understand some C or C++, you can use ffmpeg c API to get sequence of
> avframes from your clip and feed it to opencv as an image to detect the
> logo. You can also get the timings of that frame from ffmpeg.


More information about the ffmpeg-user mailing list