play_nice_sleep not working. 95% cpu

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
K24A3
Posts: 23
Joined: Mon Feb 10, 2014 12:03 pm

play_nice_sleep not working. 95% cpu

Post by K24A3 »

I'm using 056 Donator and I have comskip running with Media Portal.

When comskip runs two or more instances, it totally hangs the PC for minutes and can totally corrupt the MediaPortal recordings. I look in Task Manager and see the CPU running at around 95% (I didnt check the IO usage but that is probably also very high).

I tried adding these settings to comskip.ini but it didn't seem to make any difference. It is still hanging the PC (Core i5 Ivy Bridge, 8GB, Win8.1 64bit, Samsung SSD).

play_nice_sleep=50
play_nice_start=-1
play_nice_end=-1
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: play_nice_sleep not working. 95% cpu

Post by erik »

Could you check at what priority comskip is running. Use task manager.
Comskip should run at nice priority.

Where do you store your recordings? On the SDD or on a network drive?
K24A3
Posts: 23
Joined: Mon Feb 10, 2014 12:03 pm

Re: play_nice_sleep not working. 95% cpu

Post by K24A3 »

CPU Priority is Normal in Task Manager.

I save the recordings to the local SSD.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: play_nice_sleep not working. 95% cpu

Post by erik »

How many thread do you use in processing?

Comskip running at normal is weird as comskip set its own priority to nice when it starts.
K24A3
Posts: 23
Joined: Mon Feb 10, 2014 12:03 pm

Re: play_nice_sleep not working. 95% cpu

Post by K24A3 »

Not sure which setting that is, I'm using the default comskip.ini with the additional play_nice settings.

I checked the affinity the other day and all four cores where being used by Comskip in Task Manager.
Last edited by K24A3 on Mon Feb 10, 2014 1:51 pm, edited 1 time in total.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: play_nice_sleep not working. 95% cpu

Post by erik »

Default value is 2

Can you add to your comskip.ini

thread_count=1
K24A3
Posts: 23
Joined: Mon Feb 10, 2014 12:03 pm

Re: play_nice_sleep not working. 95% cpu

Post by K24A3 »

Ok I've added that option.

I ran comskip but all four CPU's are ticked in Task Manager, and the priority is normal.

1 comskip process is using 44% CPU. IO reads is about 34 per second,
K24A3
Posts: 23
Joined: Mon Feb 10, 2014 12:03 pm

Re: play_nice_sleep not working. 95% cpu

Post by K24A3 »

Perhaps comskip isn't using the INI?

In MediaPortal I have comskip set up as:

Program: c:\comskip\comskip.exe
Parameters: "{0}"
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: play_nice_sleep not working. 95% cpu

Post by erik »

Set
verbose=10
in comskip.ini and comskip should generate a long log file next to the recording.
If that does not happen comskip is not using the ini file
K24A3
Posts: 23
Joined: Mon Feb 10, 2014 12:03 pm

Re: play_nice_sleep not working. 95% cpu

Post by K24A3 »

It is already using Verbose=10 and I can see the log file as well as the logo.txt and EDL file in the same folder as the TS file.
K24A3
Posts: 23
Joined: Mon Feb 10, 2014 12:03 pm

Re: play_nice_sleep not working. 95% cpu

Post by K24A3 »

play_nice_sleep exists in 056 yes?

I see a later change in 057:
With the increasing speed of CPUs it was time to reduce the default play_nice_sleep to 2 when using playnice.

Should I try 058 anyway?
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: play_nice_sleep not working. 95% cpu

Post by erik »

YOu should set

play_nice_start=0000
play_nice_end=2359
K24A3
Posts: 23
Joined: Mon Feb 10, 2014 12:03 pm

Re: play_nice_sleep not working. 95% cpu

Post by K24A3 »

After googling play_nice I assumed -1 would default to 0 and 2359 since so many people were using -1 but I'll give it a try later. Perhaps you could modify comskip to accept -1
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: play_nice_sleep not working. 95% cpu

Post by erik »

-1 means disable
K24A3
Posts: 23
Joined: Mon Feb 10, 2014 12:03 pm

Re: play_nice_sleep not working. 95% cpu

Post by K24A3 »

I see, ok thanks for the help erik.
Post Reply