> 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
_______________________________________________
mythtv-dev mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev