[mythtv] help needed to complete opaque logo commercial flagging.
Chris Pinkham
cpinkham at bc2va.org
Thu Dec 2 06:39:59 UTC 2004
> I almost finished some code about flagging commercials based on detecting
> an opaque logo. However, while testing it, I could not find a method to
> rewind the video stream back to the start after I had determined the logo
> itself.
> I tried to use JumpToFrame(0) and ResetPlaying(), but after a GetFrame(1)
> (as is used in ProcessNextFrame) the frame counter increments to the frame
> after the last decoded frame.
>
> So at the moment the code works very nice for the part of the show after
> the first half hour. Who can help me a bit further to get the complete show
> flagged?
The current logo detection does this in CommDetect::SearchForLogo(). Look
for the following lines near the bottom of the method:
nvp->JumpToFrame(0);
nvp->ClearAfterSeek();
I'll take a look at your patch tomorrow. I've been working on logo
detection a little, but if you have a better detection working then
I could look at patching that in instead of tweaking what I currently
have in CVS.
--
Chris
More information about the mythtv-dev
mailing list