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

Isaac Richards ijr at po.cwru.edu
Tue Feb 25 00:12:15 EST 2003


On Monday 24 February 2003 11:56 pm, Chris Pinkham wrote:
> Thanks. :)  My thumbs are starting to wear out from twidling them so
> much while recompiling if I touched NuppelVideoPlayer.h. :)

Yeah, it was a tad excessive =)  I should probably go through and cull out 
similiar extraneous header includes when I've got time.

> I think I'm going to dive into trying to flag blank frames during
> recording and then start working on a function that can take that
> info and generate a list to skip commercials automatically.
>
> Isaac, is the cutlist in the recorded table going to stay in it's current
> format?  Would it be OK to define another field like this so that the
> frontend could retrieve the list the same as it retrieves the cutlist? 
> This list would be generated by whatever automatic commercial detection
> code we come up with.  Then auto-commercial-skip would use the list if
> turned on.  If auto-skip was off, then the user could still hit the 'Z' key
> and if there was a start/end interval defined in the commercial-list then
> the player would skip to the end frame without having to try to analyze the
> frames on the fly.  If there was no commercial list for a program or the
> current frame number was not part of any interval in the list, then the
> current blank-detection code could take over.

Yeah, the cutlist format is going to stay the same, and yeah, adding another 
similar field's cool.  However, what happens if there's a cutlist _and_ the 
automatic commercial detection list?  Kind of worried about conflicts during 
playback there.  How about making is so that the cutlist, if it exists, makes 
it ignore the automatically generated commercial list?  That way, the 
auto-commercial-list could be used as initial settings for the cutlist if the 
user enters edit mode, and then superceeded when the (fixed-up) cutlist is 
saved back to the database..  Might be able to work it so that it doesn't 
need a separate list in the db, just a flag if it's automatically or user 
generated.

Isaac


More information about the mythtv-dev mailing list