[mythtv-users] Re: There's definitely

Chris Pinkham cpinkham at bc2va.org
Tue Aug 17 13:42:21 EDT 2004

> Dave Parker wrote:
> >Rrrrrgh - lots of corrupted STOS episodes :(
> >  
> >
> Try running mythcommflag on them.
> According to folklore it rebuilds the GOPs (but like all good folklore 
> it's kinda hazy!)
> David

Well, straight from the horse's mouth (meaning the guy who wrote that
part of the code), it only rebuilds the GOP markers in recordedmarkup
if you first delete any existing GOP markers for the recording
in question.

The commercial detection routine checks to see if the decoder thinks
the recording has a positionmap available (whether it's in the DB
or in the file doesn't matter).  If the recording does not have a
positionmap available, the comm detect routine tells the decoder to
save it's current positionmap (which the decoder built during
playback since there was no info available when the decoder started).
This is what causes the recordedmarkup table to be repopulated for
a recording with no GOP/keyframe info available.

The reason this is done in the commercial detection code is that
there isn't much reason to detect commercials if there's no
positionmap/seektable available to quickly skip commercials, so
the comm detect code tries to make sure there is a positionmap
available by having the decoder save the info it has.



More information about the mythtv-users mailing list