Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: [ANNOUNCE] AutoCutter 0.1.1



--On 22. March 2004 17:03 +0200 Mikko Matilainen <mikkom@iki.fi> wrote:

>> Of the Finnish channels, Noad seems to work OK on the channels(MTV3,
>> SubTV) where the logo has a high contrast, especially after some
>> tweaking. Some channels(at least Nelonen, haven't tried it on YLE
> BTW, what kind of tweaking are you referring to? I ran both versions
> (0.3.2b and 0.4.0) just with the default options.

Just some simple changes; one to fine tune the mark position at the start
of commercial breaks(would be useful as a command line option, probably,
since it seems to vary by company/country) and a change to the logo finding
call that seems to somewhat cut down the number of false positives on
Nelonen. If I have the time & enthusiasm I might experiment with some more
changes later. I'll report to the list should I find something useful.

Changes attached.

-- 
Esa Loukkola
esa.nospam@nic.spamfilter.fi.invalid
diff -Naur noad-0.4.0/noad.cpp modified-noad-0.4.0/noad.cpp
--- noad-0.4.0/noad.cpp 2004-01-17 14:17:31.000000000 +0200
+++ modified-noad-0.4.0/noad.cpp        2004-03-21 21:53:53.000000000 +0200
@@ -1938,10 +1938,15 @@
             iCurrentFrame += (BIGSTEP/2);
           if( iCurrentFrame < iStopFrame )
             iCurrentFrame = iStopFrame;
-          iState = findLogoChange(cfn, iOldState, iCurrentFrame, SMALLSTEP, iState==1?LOGOSTABLETIME:0 );
+          iState = findLogoChange(cfn, iOldState, iCurrentFrame, SMALLSTEP, iState==1?LOGOSTABLETIME:LOGOSTABLETIME/2 );
           if( iState >= 0 )
           {
-            int iLastLogoFrame = cIF->GetNextIFrame( iLastIFrame-1, false, &FileNumber, &FileOffset, &Length, true);
+           int iLastLogoFrame;
+           if (iState == 0) {
+              iLastLogoFrame = cIF->GetNextIFrame( iLastIFrame+72, false, &FileNumber, &FileOffset, &Length, true);
+           } else {
+             iLastLogoFrame = cIF->GetNextIFrame( iLastIFrame-1, false, &FileNumber, &FileOffset, &Length, true);
+           }
             MarkToggle(pmarks, iLastLogoFrame, iState == 0 ? "Logo lost" : "Logo start");
           }
         }

Home | Main Index | Thread Index