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

Dwight Hubbard dhubbard at dwightandamy.com
Tue Feb 25 14:12:49 EST 2003


> On Mon, Feb 24, 2003 at 01:04:30AM -0500, Andy Davidoff wrote:
> I thought you were talking about doing more sophisticated analysis by
> keeping a bunch of frames around (e.g., for scanning backward).  If all
> you want is to scan for commercials ahead of playback without
> interrupting playback, I think it makes the most sense to accept the
> cost of a second decoding cycle and do it in a separate thread.  This
> way you are not limited in the amount of video that can be processed
> ahead of time (up to the entire recording), and it can be done before
> playback even starts.

It seems to me at least for software encoding it would make more sense to
do the black frame detection during the encoding of the video when the
uncompressed data is already in memory.  Then the black frame information
could be saved to an index file that the commercial skip code could use to
skip the commercials without having to decode and run the black frame
detection every time.




More information about the mythtv-dev mailing list