I don't think you can easily do the channel-by-channel specification to
remove commercials or not. But from the tv-programs sub-menu you can just
remove the edl for that program before you watch it, that should let you
watch it in full. The code that does the commdetect is src/commdetectcore.py
below is the method that does the remove of commercials based upon the when
mplayer determines are black frames.

    def findCommercials(self):
        startFrame=None
        startFrameTime=0
        endFrame=None
        for bframe in self.blackframes:
            if (startFrameTime==0):
                #Commerical break
                startFrame=bframe
                startFrameTime=bframe.time
            else:
                if ((bframe.time==startFrameTime)or(bframe.time==
(startFrameTime-1))):
                    #Same commercial break
                    startFrameTime=bframe.time
                    endFrame=bframe
                else:
                    #New commercial break
                    if not endFrame:
                        #Sometimes a blackframe is thrown in the beginning
                        endFrame=startFrame
                    if ((endFrame.seconds-startFrame.seconds)>0):
                        newEdl = self.edl()
                        newEdl.startSkipTime=startFrame.seconds
                        newEdl.endSkipTime=endFrame.seconds
                        self.edlList.append(newEdl)
                    startFrame=None
                    startFrameTime=0
                    endFrame=None
        if ((len(self.edlList)==0)and(startFrame and endFrame)):
            #Only one commercial
            newEdl = self.edl()
            newEdl.startSkipTime=startFrame.seconds
            newEdl.endSkipTime=endFrame.seconds
            self.edlList.append(newEdl)


On Jan 23, 2008 4:04 AM, Elizabeth Dodd <[EMAIL PROTECTED]> wrote:

>
>
> this is working on 1.7.5 for me, but it is too aggressive, and the
> disgruntled
> household members have told me that it removed about 50% of Top Gear, and
> some of Mythbusters.
>
> Recordings are from non-commercial TV, which has station commercials and
> from
> a public TV channel with more standardised commercials. None are
> from "normal" commercial TV.
>
> Perhaps the settings may need tuning for each channel??
>
> Anyway - how do I start on the code to make it less aggressive?
>
> Liz
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Freevo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to