- September 3, 2012
- 238
- 26
- 25
- Home Country
- United States of America
Is there a way to have Comskip ignore certain channels? Here in the US we have a channel called PBS that airs Zero commercials. So instead of having comskip run on PBS's recordings (which is a lot) i'd rather have comskip ignore it.
Someone on the NPVR forums wrote a batch file which tells comskip to skip certain channels. Wondering if there is a way to do something like this using MediaPortal.
Someone on the NPVR forums wrote a batch file which tells comskip to skip certain channels. Wondering if there is a way to do something like this using MediaPortal.
Code:
Rem The part below can be used to not run Comskip on certain channels, please modify for your conveniance.
Rem The channel numbers that should be skipped are the numbers between the double quotes ("").
Rem You can add "if" lines as much as you want
Rem To disable this behaviour use channel numbers outside the normal range, put a "rem" before the "if" or delete the "if" lines
Rem list of channels to not run comskip on
Rem if "%2" == "27" goto eof
Rem if "%2" == "36" goto eof
Rem this trick also makes it possible to have dedicated comskip.ini file for certain channels.
Rem if "%2" == "79" goto channel79
Rem if "%2" == "72" goto channel72
Rem if "%2" == "65" goto channel65
Rem use the default comskip.ini for all other channels
goto generic
:channel79
comskip --ini=channel79.ini %1
goto continue
:channel72
comskip --ini=channel72.ini %1
goto continue
:channel65
rem This is an example of how to reuse a previously learned logo to prevent Comskip from learning the wrong logo
comskip --ini=channel65.ini --logo=channel65.logo.txt %1
goto continue
:generic
Rem The actual run of Comskip. Only one parameter, the name of the mpeg file to process.
Rem Comskip will read its settings from the Comskip.ini found in the same directory as Comskip.exe
Rem Both are supposed to be in the GBPVR default program directory. (C:\Program Files\devnz\gbpvr\)
echo Launching comskip on %1 at %date% %time% >>postprocessing.log
"c:\program files (x86)\Comskip\comskip.exe" %1