[mythtv] PATCH: Commercial detection/skip using blank frames

Andy Davidoff dert at pobox.com
Sat Feb 22 08:43:39 EST 2003

Another metric you could use is the temporal proximity of commercials
given the size of the program.  If you've just returned from a 4min
commercial break in the middle of a 30min program, the likelihood of
another commercial in the next frame starts at 0.0 and increases to,
say, 0.9 in the course of the remaining 13 minutes.  Each time a break
occurs, you have 1/Nth as much time to speculate on, which decreases
your chances of generating false positives.  The value of N would of
course reflect how aggressive you wanted to be able scanning for the
commercial footprint and how aggressive you think the broadcaster is
about advertising.

I can't remember seeing a 1hr program with zero commercials in the first
40 minutes and one or more in the remaining time.  You could probably
be even more aggressive than that, but that's already cutting the scope
in half.

I think these kinds of heuristics, coupled with weights for different
networks, programs (or genres), and broadcast times (prime time versus
night owl) could go a long way towards reducing the reliance on a few
technical hacks and assumptions.

I don't ever want to miss an eyeball scene on the Simpsons. ;-)

More information about the mythtv-dev mailing list