Set Time Limit?

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
Post Reply
ThePaladinTech
Posts: 4
Joined: Sat Mar 08, 2014 12:32 am

Set Time Limit?

Post by ThePaladinTech »

Hi -

Is there a setting that can limit how long comskip will work on file? I'd like to have comskip 'give up' after a time I set. I've had bad recordings bring comskip to it's knees and days later I notice nothing is getting processed and when I look into it... comskip is still running an a bad recording from a day or more ago.

So is this possible?
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: Set Time Limit?

Post by erik »

Currently not
ImCoKeMaN
Posts: 2
Joined: Mon May 01, 2017 11:03 pm

Re: Set Time Limit?

Post by ImCoKeMaN »

you could probably put it in a wrapper script to launch it in the background and monitor if it finishes/kill it after a time. Check Stackoverflow google search results =)

Another thought, I wonder if you could get a sample to post the video with the logs so that it may be able to be debugged as to why it makes it crash
ThePaladinTech
Posts: 4
Joined: Sat Mar 08, 2014 12:32 am

Re: Set Time Limit?

Post by ThePaladinTech »

Well next time it happens I could do that. AFAIK it's always been when the cable went out.. so the file starts with video, and then somewhere inside the cable drops. I think the error was something like "Panic Volume=0" - over and over.
mogulman
Posts: 52
Joined: Tue Dec 06, 2011 6:58 pm

Re: Set Time Limit?

Post by mogulman »

I have a powershell script that runs using Windows task scheduler every night at 12am.

#kill comskip if it is hung
if (Get-Process comskip| where { $_.StartTime -lt (Get-Date).AddHours(-5)} ) {
# PowerShell Kill Process
$process = Get-Process comskip
$process.Kill()
}

Basically it kills any Comskip processes that started more than 5 hours ago.
Post Reply