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

Carl Zwanzig cpz at tuunq.com
Fri Oct 1 01:13:11 EEST 2021


On 9/30/2021 6:45 AM, Venkateswaran.S wrote:
> You can easily detect the logo in image using opencv lib

Yes, but that doesn't indicate much (the logo is often called a "bug" in 
broadcast).


Detecting a "change of scene" is not too difficult, but here's the problem- 
how do you (technically) define a commercial? Then, how do you generally 
tell that apart from other programming?

Most network programming will have a bug, but not all the time.
That bug may move around from stream/channel to stream/channel.
Often commercials have louder audio (where "louder" is a bit vague), and are 
more likely to be mono or 2.0 stereo instead of 3.1/5.1 stereo.
Old programs, and lots of locally produced programs, usually have mono audio.
etc etc

Once someone details the characteristics to separate "What I want to see" 
(programs) from "What I don't want to see" (commercials), then we can then 
discuss methods.

Later,

z!



More information about the ffmpeg-user mailing list