SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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

Reply
 
Thread Tools Search this Thread Display Modes
  #241  
Old 09-23-2010, 05:55 AM
valnar valnar is offline
Sage Icon
 
Join Date: Oct 2003
Posts: 1,252
Send a message via ICQ to valnar
Quote:
Originally Posted by tmiranda View Post
It might actually be comskip producing them during detection on live TV. I thought those files were automatically deleted when comskip found that the show being scanned was no longer "in a commercial". Are you using the default .ini that comes with CD or are you using an altered version?
Everything is default. I edited nothing. That's why I thought it was your plugin.
Reply With Quote
  #242  
Old 09-23-2010, 09:11 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
.incommercial was added to Comskip a while ago.

Quote:
Changes in 0.80.025
- Added parameter: incommercial_frames, default is 1000. When live_tv is set comskip also outputs a file with the extension ".incommercial" that contains a single line with a "0" when outside a commercial and a "1" when the current processed frame is less then incommercial_frames after the last detected commercial.
Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #243  
Old 09-24-2010, 05:16 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
gplasky is correct, it is CD creating those files. I had not noticed because on my systems I use a modified version of the .ini that does not set the live_tv flag.

You must manually add incommercial to the list of files to get cleaned up. I'll make it the default in the next update.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #244  
Old 09-26-2010, 12:29 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Next

I figured I post a little about what I'm currently working on to see what people think about this idea and if you have any suggestions. I'm working on implementing "Intelligent Comskip Scheduling".

What this will do is only run comskip when nothing is recording and the job(s) will likely finish before any upcoming recordings. In order to do this it will dynamically keep track of how long recordings take to process (on a channel-by-channel basis) so if it finds a "gap" in the recording schedule it will launch just enough queued jobs so that they all finish before the next scheduled recording.

It will still honor any times that you have restricted comskip from running but if this works as I hope it should eliminate the need for using that setting.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #245  
Old 09-26-2010, 02:18 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
I'm hoping you're going to make this optional. I can see a lot of value in it, but I for one like my detection done live. I still love this plugin after getting used to it.

I'm having one problem, but for now I have a workaround for it. When I have more recordings running than the number of threads for SAV, the extra recordings never get analyzed. For now I've set the number of threads to the same number as I have tuners so this can't be a problem. Any ideas?
Reply With Quote
  #246  
Old 09-26-2010, 03:12 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by toricred View Post
I'm hoping you're going to make this optional. I can see a lot of value in it, but I for one like my detection done live. I still love this plugin after getting used to it.

I'm having one problem, but for now I have a workaround for it. When I have more recordings running than the number of threads for SAV, the extra recordings never get analyzed. For now I've set the number of threads to the same number as I have tuners so this can't be a problem. Any ideas?
Intelligent Scheduling will be optional.

Regarding the issue you you are having - I don't know what you mean by "SAV". What this plugin should do if you have Maximum Concurrent Jobs set to something less than the number of recordings in progress (including live tv), is to queue them up until some of the in-process jobs complete. I'll look into it to see why that is not happening for you.

Can you attach a log with the debug level set to Trace?

Thanks,

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #247  
Old 09-26-2010, 03:56 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
Sorry, SAV=ShowAnalyzer. I'll work on getting a log for you tomorrow night when I next have a bunch of recordings at the same time.
Reply With Quote
  #248  
Old 09-26-2010, 05:21 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I completely bypass ShowAnalyzer's threading mechanism which is why you need to point my plugin at ShowAnalyzerEngine.exe. ShowAnalyzer's threading settings will not effect my plugin at all.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #249  
Old 09-26-2010, 05:49 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
I understand that and I'm talking about the number of threads setting in your plugin. I am calling ShowAnalyzerEngine.
Reply With Quote
  #250  
Old 09-27-2010, 05:54 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
OK, just wanted to make sure. How many jobs are you launching at once? I want to try to reproduce your problem.

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #251  
Old 09-27-2010, 02:56 PM
Sambo555 Sambo555 is offline
Sage User
 
Join Date: Jun 2005
Posts: 18
First I'd like to say a big thanks tmiranda for this plugin.

I'm just having a couple of minor problems with it.

My main problems is that the cleanup of comskip files is hit and miss. Would it be possible to have it look for orphaned comskip files and clean those up, either manually or at user set intervals or whenever CD does it's thing?

I think my file cleanup issues are stemming from the fact that comskip on my machine takes about 5 hours on an hours worth of .ts file. Maybe this is preventing sage or the plugin from deleting the ts right away. I can then look back in the log later and find the ts has been deleted by Sage but the CD cleanup never seems to do it's thing after that. This happens mostly when watching live tv or deleting a recording that has not finished comskipping yet.

The other minor problem is about the CS icon on main menu. On my HD200, it will only appear when something else is active in that same menu section, for example, 'REC' or JavaHeapMonitor is visible then CS appears. It seems the CS will not activate that menu area on it's own even when comskip is still running. I see other people having CS icon related problem and maybe this observation will help in resolution.
__________________
Sage Server: Acer Revo 3610, Intel Atom 330, 4GB RAM. Win7 Premium, HD-PVRx2.
HD-200 Extender.
Reply With Quote
  #252  
Old 09-27-2010, 06:01 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
Quote:
Originally Posted by tmiranda View Post
OK, just wanted to make sure. How many jobs are you launching at once? I want to try to reproduce your problem.

Tom
I'm running 3 threads at once. I only recall the issue when I'm recording several recordings at the same time. It might require 7 or more recordings to cause the problem.
Reply With Quote
  #253  
Old 09-28-2010, 06:40 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by Sambo555 View Post
My main problems is that the cleanup of comskip files is hit and miss. Would it be possible to have it look for orphaned comskip files and clean those up, either manually or at user set intervals or whenever CD does it's thing?

The other minor problem is about the CS icon on main menu. On my HD200, it will only appear when something else is active in that same menu section, for example, 'REC' or JavaHeapMonitor is visible then CS appears. It seems the CS will not activate that menu area on it's own even when comskip is still running. I see other people having CS icon related problem and maybe this observation will help in resolution.
Thanks for the observation on the CS Icon, I think that will help. The STV will only display the icon area if certain things are in progress but I thought I'd added a check in there for the CS icon. Maybe I missed it.....

I don't know why you are having problems with cleanup. The cleanup happens when you manually delete the recording (or Sage automatically deletes it) so it should not matter how long comskip takes. I don't quite understand your comment about "preventing Sage or the plugin from deleting the ts right away". The plugin will never delete the ts, it will only delete the corresponding edl (and other extensions you specify) after you or Sage deletes the ts.

Furthermore, it will not delete the edl if any valid video file still exists. So if you have MyShow-XXXX.mpg, MyShow-XXXX.ts, and MyShow-XXXX.avi, it will only delete the edl when all three of the video files are deleted.

I had thought about putting in an option to manually cleanup any orphaned edl files but never got around to it. I'll see if I can get that into a future release.

Thanks for the feedback,

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #254  
Old 09-28-2010, 07:02 AM
jerryt jerryt is offline
Sage Fanatic
 
Join Date: Oct 2007
Posts: 832
Is it possible to use CommercialDetector to run CCextractor.exe along with comskip.exe?

Or do I need Dirmon2...
Reply With Quote
  #255  
Old 09-28-2010, 08:44 AM
electronics4lif electronics4lif is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 141
Quote:
Originally Posted by tmiranda View Post
I figured I post a little about what I'm currently working on to see what people think about this idea and if you have any suggestions. I'm working on implementing "Intelligent Comskip Scheduling".

What this will do is only run comskip when nothing is recording and the job(s) will likely finish before any upcoming recordings. In order to do this it will dynamically keep track of how long recordings take to process (on a channel-by-channel basis) so if it finds a "gap" in the recording schedule it will launch just enough queued jobs so that they all finish before the next scheduled recording.

It will still honor any times that you have restricted comskip from running but if this works as I hope it should eliminate the need for using that setting.
I think this option would be great for those of us that have a large number of tuners with only a small number of disks to record to! I am in this group with 8 tuners recording to 3 drives. I currently have comskip monitor set up with black out periods to avoid stuttering during 'prime time' recording. I am eagerly awaiting the addition of your intelligent recording. I know SJQ can do this, but it had too high of a learning curve for me to bother with it.
Reply With Quote
  #256  
Old 09-28-2010, 11:28 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by jerryt View Post
Is it possible to use CommercialDetector to run CCextractor.exe along with comskip.exe?

Or do I need Dirmon2...
I think you will be better off using Dirmon2 or SJQ.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #257  
Old 09-28-2010, 11:35 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by electronics4lif View Post
I think this option would be great for those of us that have a large number of tuners with only a small number of disks to record to!
I am actually in the same boat and that is one of my main drivers for implementing this. If you are interested in helping me test please PM me your email address and I'll send you somethig when it's ready. I would like more data than just my system can provide so I can "tune" things to work as smooth as possible. The way it's architected right now it will try to estimate how long jobs take to finish and as more jobs are run it should get better at estimating. Of course this is all theory until I can get enough data samples.

There is already the ability to totally block comskip from running during certian periods, I added that in the last update.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #258  
Old 09-28-2010, 07:39 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
@tmiranda OK, I had the problem with some shows not getting analyzed last night and I had the debug log set to trace. Which log file should I grab and provide?
Reply With Quote
  #259  
Old 09-28-2010, 08:56 PM
Sambo555 Sambo555 is offline
Sage User
 
Join Date: Jun 2005
Posts: 18
Quote:
Originally Posted by tmiranda View Post
I don't know why you are having problems with cleanup. The cleanup happens when you manually delete the recording (or Sage automatically deletes it) so it should not matter how long comskip takes. I don't quite understand your comment about "preventing Sage or the plugin from deleting the ts right away". The plugin will never delete the ts, it will only delete the corresponding edl (and other extensions you specify) after you or Sage deletes the ts.

Furthermore, it will not delete the edl if any valid video file still exists. So if you have MyShow-XXXX.mpg, MyShow-XXXX.ts, and MyShow-XXXX.avi, it will only delete the edl when all three of the video files are deleted.
Oops, what I meant to say was 'preventing Sage from deleting the ts file, thus preventing CD from deleting the comskip files. That'll teach me to not try to troubleshoot this stuff when I'm sick.

I just tried a test tonight. I watched LiveTV, which started off the comskip process. I then stopped watching the show and looked at sage log. Sage had not deleted the file yet but had moved it to the partial recordings. I don't know if this was because comskip is still running or because that is the way Sage handles deletions normally. I then deleted the show in the partial recordings menu to see what would happen and have attached an excerpt from the log file to show what occurred after that.

Upshot is that the .ts file was deleted successfully but the comskip files are still there. Maybe the log will shed more light.

Kelly
Attached Files
File Type: txt SageTV_0.txt (8.1 KB, 180 views)
__________________
Sage Server: Acer Revo 3610, Intel Atom 330, 4GB RAM. Win7 Premium, HD-PVRx2.
HD-200 Extender.
Reply With Quote
  #260  
Old 09-29-2010, 05:15 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by toricred View Post
@tmiranda OK, I had the problem with some shows not getting analyzed last night and I had the debug log set to trace. Which log file should I grab and provide?
The sage log file from the server: sagetv_0.txt.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
Reply


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

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
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) cslatt SageTV Customizations 48 06-11-2012 10:44 AM
Plugin :: My TV for V7 bialio SageTV v7 Customizations 41 03-26-2011 11:09 AM
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
Plugin Manager: Configure plugin medwynd SageTV Beta Test Software 0 05-29-2010 08:43 AM
Hulu: Possible to Use XBMC Hulu Plugin to create SageTV Plugin? Brent SageTV Customizations 8 02-24-2009 04:16 PM


All times are GMT -6. The time now is 01:23 PM.


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