SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v9 Customizations

Notices

SageTV v9 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 9 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 9 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-06-2017, 08:38 AM
Mountainbreeze's Avatar
Mountainbreeze Mountainbreeze is offline
Sage User
 
Join Date: Jan 2017
Location: Upstate SC
Posts: 9
Comskip Questions

Hope I'm in the right place for this question. If not, just slap me (gently - I'm new to STV) and tell me the right place to ask...

I have installed the latest V9 of STV along with the Comskip Commercial Detector UI. I scheduled 2 back-to-back 30 minute recordings on the same channel. Here is what SEEMS to have happened (I was not home when it happened so I am not sure): At the appropriate time, the computer woke up, recorded the 2 shows and went back to sleep before comskip had a chance to finish running on the second program. I think this is what happened because, when I got home, the computer was sleeping and when I went to watch the shows, only the first one had commercials identified (in the timeline bar). By the time I finished watching the first show, the second show then had its commercials identified (again, in the timeline bar).

So my question is: Is there a setting I am missing that will keep the computer awake so that comskip can finish all scheduled runs?

A second question unrelated to the above: If I configure comskip to not run during the hours of 5pm to 11pm (via the check boxes in the setup) and I record a show from 8pm to 9pm (and the computer then goes to sleep), will the computer wake up in order to perform the comskip task?
Reply With Quote
  #2  
Old 01-06-2017, 09:33 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,361
Quote:
Originally Posted by Mountainbreeze View Post
Hope I'm in the right place for this question. If not, just slap me (gently - I'm new to STV) and tell me the right place to ask...

I have installed the latest V9 of STV along with the Comskip Commercial Detector UI. I scheduled 2 back-to-back 30 minute recordings on the same channel. Here is what SEEMS to have happened (I was not home when it happened so I am not sure): At the appropriate time, the computer woke up, recorded the 2 shows and went back to sleep before comskip had a chance to finish running on the second program. I think this is what happened because, when I got home, the computer was sleeping and when I went to watch the shows, only the first one had commercials identified (in the timeline bar). By the time I finished watching the first show, the second show then had its commercials identified (again, in the timeline bar).

So my question is: Is there a setting I am missing that will keep the computer awake so that comskip can finish all scheduled runs?

A second question unrelated to the above: If I configure comskip to not run during the hours of 5pm to 11pm (via the check boxes in the setup) and I record a show from 8pm to 9pm (and the computer then goes to sleep), will the computer wake up in order to perform the comskip task?
There is no setting within CommercialDetector to keep the machine awake while it is running OR to wake it up to run the task.

I never thought of adding an option for this by the way. I think you are the first to request it.

Isn't there a setting in Windows to not go to sleep if the CPU is busy?
__________________

Sage Server: ASUS/Intel C2D based system w/4GB RAM. Win7, Hauppauge PVR 150, Hauppauge HVR-2250 and an HDHR. Runs headless. Accessed via VNC when necessary. Four HD-300 Extenders.
Reply With Quote
  #3  
Old 01-06-2017, 09:58 AM
Mountainbreeze's Avatar
Mountainbreeze Mountainbreeze is offline
Sage User
 
Join Date: Jan 2017
Location: Upstate SC
Posts: 9
OK, just so I can use it as intended, give me some pointers...

I will use STV primarily in a record-watch-delete environment. Generally, I watch shows a day later so that comskip has had a chance to do its thing. While watching shows from the previous day (I usually watch during primetime), shows for the current day are recording. It seems like a good idea to not be running comskip while I am watching and recording (I am doing everything on a single computer). In BeyondTV (where I am coming from) I was able to configure comskip to run between (for example) 1am and 5am. The computer would wake, run the comskip jobs and go back to sleep. This worked well and kept the load off of the computer while watching and recording.

So, having said all of that, what are the recommendations for getting all of my shows comskipped? I prefer not to have the computer on 24/7 as I only use it 4 or 5 hours per day. I am not aware of any settings that keep the computer awake on high cpu utilization.
Reply With Quote
  #4  
Old 01-09-2017, 09:20 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,940
Quote:
Originally Posted by tmiranda View Post
There is no setting within CommercialDetector to keep the machine awake while it is running OR to wake it up to run the task.

I never thought of adding an option for this by the way. I think you are the first to request it.

Isn't there a setting in Windows to not go to sleep if the CPU is busy?
I was thinking about the possibility of adding some power management api calls to sage. Currently, there isn't much in there that isn't hard-coded to specific things sage does (watching, recording, and just as of v9 converting). A couple API calls to request a wake time, and to set and release a power hold would be advantageous. I've honestly not have my sage server sleep in at least 6 years, so its not something I've given a ton of though about, but it did occur to me back when i was making the changes to allow conversions to hold the system awake that other tasks might like this as well.

alternatively, and shorter term fix, is if comskip can be launched via a script instead of directly, that script cold use powercfg.exe to disable sleep while it's running, and reenable it when done.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #5  
Old 01-09-2017, 11:30 AM
Mountainbreeze's Avatar
Mountainbreeze Mountainbreeze is offline
Sage User
 
Join Date: Jan 2017
Location: Upstate SC
Posts: 9
Thanks for the response.

First, many thanks to tmiranda for an excellent plugin with so many great features.

In case someone is entertaining suggestions for future features for the Comskip Commercial Detector UI, here are a few that I think many would useful:

1. Have the system stay awake if Comskip is active. When Comskip completes, allow the system to sleep as usual. This is useful for when someone wants to run Comskip immediately after the recording completes or if Comskip is configured to run while the recording is in progress.

2. Keep track of whether or not there are any recordings that are to be Comskipped and wake the system at a specified time (or during the next non-restricted time) to perform the task. A subtle detail is that if a recording was made that is to be Comskipped and that recording was deleted prior to Comskip running, and no other recordings are scheduled to be Comskipped, then the system would not wake.

3. Many have found that tweaking the Comskip.ini file on a per-channel basis improves the accuracy of the Comskip output. To allow for this, provide the ability to specify the name of the .ini file to be used based on the channel the recording was made from. (Comskip provides the ability to specify the .ini file with the --ini=<file> parameter.) It looks like this one MAY be easily (yeah, I know - easy for ME to say) implemented via the "Show All Channels" configuration where which method of commercial skipping is set. Maybe add an additional setting there to allow the specification of the .ini file name.
Reply With Quote
  #6  
Old 01-11-2017, 07:18 AM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 797
Quote:
Originally Posted by Mountainbreeze View Post
3. Many have found that tweaking the Comskip.ini file on a per-channel basis improves the accuracy of the Comskip output. To allow for this, provide the ability to specify the name of the .ini file to be used based on the channel the recording was made from. (Comskip provides the ability to specify the .ini file with the --ini=<file> parameter.) It looks like this one MAY be easily (yeah, I know - easy for ME to say) implemented via the "Show All Channels" configuration where which method of commercial skipping is set. Maybe add an additional setting there to allow the specification of the .ini file name.
This is already in there. See https://code.google.com/archive/p/tm...lDetector.wiki.
Reply With Quote
  #7  
Old 01-11-2017, 07:50 AM
Mountainbreeze's Avatar
Mountainbreeze Mountainbreeze is offline
Sage User
 
Join Date: Jan 2017
Location: Upstate SC
Posts: 9
Good to know. Thanks for the feedback.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Comskip on Linux - two questions matt91 SageTV Customizations 2 08-24-2013 07:43 AM
Two Comskip Questions aweber1nj SageTV v7 Customizations 6 05-29-2011 07:27 AM
Questions about Comskip Plugin adone36 SageTV Customizations 1 08-20-2009 02:01 PM
Questions about SageMC and ComSkip Hornet SageMC Custom Interface 1 07-25-2009 12:33 PM
Questions about Show Analyser and Comskip pddurke SageTV Software 2 05-08-2006 02:10 PM


All times are GMT -6. The time now is 03:39 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.