<<and now with attachment>>

Saw that the problem with framesPlayed/framesRead is temporarily fixed, so now my code also works like a charm. Attached is therefore a patch of the working code.
Since I did not have time yet to implement the GUI part to select this flagging method (and also no clue where to start looking) you have to set the CommercialSkipMethod=8 manually in the settings table.

Marc


At 00:23 3-12-2004, you wrote:
At 19:13 2-12-2004, you wrote:
> Hi Chris,
>
> I already tried to use nvp->JumpToFrame(0) and nvp->ClearAfterSeek(), but
> to no avail. Recently some changes were applied by you to change
> framesPlayed to framesRead. maybe I was also looking at the wrong value.
> However, the frames fetched using nvp->GetLastDecodedFrame() did contain
> the frame corresponding to framesPlayed.

At the end of your new method, you have "nvp->JumpToFrame(seekIncrement);",
is that why you're not being reset to the beginning of the video after
you do your logo detection, or do you mean it's ending up somewhere else?


well, that were some of my attempts to reset the stream back to somewhere near the beginning. I now got it working by doing a JumpToFrame(0), clearAfterSeek and then getFrame().. I just had forgotten the latter one...

However, I updated to CVS, and now the frame_number in Flag_Commercials stays equal to zero. Probably this has something to do with your recent change from framesPlayed to framesRead. Could you please have a look at this?

Marc




_______________________________________________ mythtv-dev mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Attachment: opaquelogo.patch
Description: Binary data

_______________________________________________
mythtv-dev mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to