LiveTV Standoff settings and playnice

Here you can ask your questions on how to use Comskip for the detection of commercials. Also questions on how to remove commercials are welcome
csbaud
Posts: 8
Joined: Fri Mar 13, 2015 1:18 am

Re: LiveTV Standoff settings and playnice

Post by csbaud »

Yes, 120 seconds was too low. But I'm using dirmon2 to start comskip, so my options were limited. Dirmon2 doesn't have a setting to start a program a certain time after a file is created, only after a certain time without the file growing. Setting that to 5 minutes causes dirmon2 to wait until the recording has finished.

But I got it working by telling dirmon2 to start the following batch file as soon as thee wtv file is created. The batch file then waits 5 minutes before starting comskip. It might be a nice feature to add a wait parameter to comskip to avoid this. Anyway, here's the batch file if anybody else is interested.

Code: Select all

rem Get the [path\filename].wtv from dirmon2 command line
set a=%1
rem Create a temporary [path\filename].txt file so dirmon2 won't start this bat again
echo temp > %a:.wtv=.txt% 
rem Wait 5 minutes
timeout /t 300 /nobreak > NUL
rem Now delete the temporary .txt file created above
del %a:.wtv=.txt%
rem And start comskip
C:\Comskip\comskip.exe --ini=C:\Comskip\comskip.ini %1
Post Reply