SageTV Community  

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

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #401  
Old 02-05-2009, 02:42 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Peter_h View Post
Also, I had a job stuck in queue yesterday.

It was a comskip job and when i checked the logs it was at 53%. An hour later it was still at 53%.

I restarted the computer to clear sage and SJQ and checked on the file and it was finished processing but the job was still in SJQ as processing.

I cleared it and all was well.

Where would i start to troubleshoot this? I don't think this is on the comskip side but I could be wrong.
Define 'stuck' in the queue? The job was in the queue, stuck in waiting state and never assigned to a client? The job was in the queue, stuck in started state after being assigned to a client? The job was in the queue, stuck in running state and never left the queue after being assigned to a client? The job was stuck in the queue, put in started state, but no client was assigned to it? Something else?

If it was assigned to a client, marked as running state and then never left that state then you need to determine if the comskip process had actually completed and terminated (i.e. no longer shows up in the task manager). If that's confirmed then the problem may lie in the client not sending the update back to the server. And the update would be missed if the server was down or the client crashed or a bug in my code, etc. Which logs were you checking? The log output shown in SJQ or an external log file from comskip? If the former, then we don't know much because if it was an SJQ problem then the task client might have stopped sending logs to the server. The point here, is that this particular report is going to be very hard to track down and 1) confirm, 2) squash without very specific instructions on how to consistently reproduce the problem. First we need to define 'stuck in the queue' and then you need to determine if comskip actually finished and properly terminated itself.

Finally, you shouldn't need to reboot your entire system to restart SJQ. Simply touch the context file (see 'Restart' section), which will force a restart of SJQ and that will reset the task queue (though it still may not be sync'ed up if one were to restart SJQ while a task client were still running a task). In other words, kill all task clients before restarting the server then once the server is restarted properly then restart all task clients.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
  #402  
Old 02-05-2009, 04:18 PM
Peter_h Peter_h is offline
Sage Fanatic
 
Join Date: May 2008
Location: Kailua, HI
Posts: 798
The job was in the queue, assigned to a client and was running.

I checked on the job by clicking on the client -> log and it showed what looked like the output of the comskip job.

This was at 53%. An hour later, the job was still in the "running state" and still at 53%. However, comskip was no longer running in Task Manager and when i checked the file, commercials were processed all the way through.

So, the comskip definately finished but SJQ never received anything past 53%? Once I get home I'll check the logfile for comskip to see if it did finish.
  #403  
Old 02-06-2009, 05:16 PM
Wheemer's Avatar
Wheemer Wheemer is offline
Sage Icon
 
Join Date: Dec 2004
Location: Deer Lake, NL, Canada
Posts: 1,493
I am trying to extract usable smi files for captions. I have compskip outputting it and it usually does fine. However there are times when it outputs an unusable smi that is 1 kb.

I'm looking for a way to have these files that have 1 kb smi to be reprocessed using ccextractor.

But I also want to ensure that it only tries once, since i it fails as well there will still be the 1 kb smi, and I don't want a loop.

I'm really not sure if this is possible, please help if you can.
  #404  
Old 02-06-2009, 05:28 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Wheemer View Post
I am trying to extract usable smi files for captions. I have compskip outputting it and it usually does fine. However there are times when it outputs an unusable smi that is 1 kb.

I'm looking for a way to have these files that have 1 kb smi to be reprocessed using ccextractor.

But I also want to ensure that it only tries once, since i it fails as well there will still be the 1 kb smi, and I don't want a loop.

I'm really not sure if this is possible, please help if you can.
There is no way to test the size of a file not registered with SageTV (in wiz.bin) and perform an action based on that file size. The MediaSize test in SJQ is only capable of testing the size of files registered with SageTV (in the wiz.bin). SJQ can test for the existence of an external file so if you can somehow create a file to signify that you want to rerun ccextractor then you could trigger a rerun that way, but trying to determine that based on the size of some external file is not possible with SJQ.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
  #405  
Old 02-06-2009, 11:02 PM
scott2020 scott2020 is offline
Sage Advanced User
 
Join Date: Jun 2008
Posts: 128
Is it possible to do a NOT test on the TimeOfDay test? Basically I want my COMSKIP job NOT to run between 7pm and 10pm.

TimeOf Day !< "19:00" || TimeOfDay !> "22:00"

Maybe I am thinking backwards!

Scott
__________________
Server - Intel Pentium 3.2 - 3 GB RAM - WinXP SP3 - Headless
80GB system drive - 500GB Recordings - 2TB NAS
(1) HVR-2250 Analog Cable & Clear QAM (1) HD Homerun clear QAM
(1) KWorld 115 ATSC Tuner OTA
(1) HD200 HDMI to Samsung 50" Plasma
(1) MediaMVP to 19" in bedroom

SageTV 7.0.23 release
  #406  
Old 02-06-2009, 11:47 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by scott2020 View Post
Is it possible to do a NOT test on the TimeOfDay test? Basically I want my COMSKIP job NOT to run between 7pm and 10pm.

TimeOf Day !< "19:00" || TimeOfDay !> "22:00"

Maybe I am thinking backwards!

Scott
TimeOfDay < "19:00" || TimeOfDay > "22:00"

This reads as, "the time of day must be before 7pm or after 10pm". In other words, the time of day can't be between 7pm and 10pm.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
  #407  
Old 02-07-2009, 06:42 AM
theringnebula's Avatar
theringnebula theringnebula is offline
Sage User
 
Join Date: Jul 2008
Location: Kingston, NH
Posts: 49
Question

Hi,

Thank you for this great tool. I am having a minor issue with it that doesn't seem to hurt anything but is causing unnecessary processing and I want to make sure I'm not missing something. I am running the latest 2.1 release version of the server and the client service on the same machine. Here is my code:

Server Rules:
Code:
// Comskip scan
if [IsTV == true && IsActivelyRecording == false && FileExists == "%d%\\%p%.mpg" && FileExists != "%d%\\%p%.edl" && ChannelName !^ "WGBH" && ChannelName !^ "WENH" && ChannelName !^ "WGBX" && ChannelName !^ "HBO" && ChannelName !^ "STRZ" && ChannelName !^ "ENCR"]
{
COMSKIP
}

//Comskip TS scan
if [IsTV == true && IsActivelyRecording == false && FileExists == "%d%\\%p%.ts" && FileExists != "%d%\\%p%.edl" && ChannelName !^ "WGBH" && ChannelName !^ "WENH" && ChannelName !^ "WGBX" && ChannelName !^ "HBO" && ChannelName !^ "STRZ" && ChannelName !^ "ENCR"]
{
COMSKIPTS
}
Client Rules:
Code:
//Client Options
:MAXPROCS 2

//Commercial Skip
COMSKIP {
:MAXRUNTIMERATIO 1.0
"C:\\Comskip\\comskip.bat \"%c%\""
}

//Commercial Skip for HD PVR
COMSKIPTS {
:MAX 1
:MAXRUNTIMERATIO 2.0
"C:\\Comskip\\comskip.bat \"%c%\""
}
The problem I have is that when watching live TV and the program changes SJQ is adding that recording to the queue and processing comskip on it before sage has a chance to delete the temporary recording. Is there a way to avoid this that I am missing?

Thanks!
  #408  
Old 02-07-2009, 10:35 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by theringnebula View Post
The problem I have is that when watching live TV and the program changes SJQ is adding that recording to the queue and processing comskip on it before sage has a chance to delete the temporary recording. Is there a way to avoid this that I am missing?

Thanks!
Use the IsScheduledRecording test (i.e. IsScheduledRecording == true). That test will only match recordings that you specifically scheduled to record (either through a manual recording or a favourite recording).
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
  #409  
Old 02-07-2009, 11:15 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by theringnebula View Post
Client Rules:
Code:
//Client Options
:MAXPROCS 2

//Commercial Skip
COMSKIP {
:MAXRUNTIMERATIO 1.0
"C:\\Comskip\\comskip.bat \"%c%\""
}

//Commercial Skip for HD PVR
COMSKIPTS {
:MAX 1
:MAXRUNTIMERATIO 2.0
"C:\\Comskip\\comskip.bat \"%c%\""
}
Replace MAXRUNTIMERATIO with MAXRUNRATIO, the names of those optoins were incorrectly documented at first, but have since been corrected in the wiki. As written, those options would simply be ignored right now meaning your tasks are not setting a timeout timer.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
  #410  
Old 02-09-2009, 03:06 PM
perfessor101 perfessor101 is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: Vancouver, British Columbia, Canada
Posts: 246
Can I manually kick off a log purge?

Hello,
I checked my logs and it would seem they go back a few weeks. I stayed with the default setting of clearing logs weekly, but I'm not sure it looks like it's still keeping at least some of the information.

I've attached a jpg of a log page and a jpg of the settings page ...

please don't judge the shows I record

I am currently running SJQv2.1.1.236

Thanks for your time,
Bobby
Attached Images
File Type: jpg logs.jpg (174.9 KB, 174 views)
File Type: jpg settings.jpg (18.1 KB, 178 views)
__________________
SageTV Server: Windows 7 64Bit, Phenom II X6 1090T, Asus M4A89GTD-PRO/USB3 (AM3), ATI Radeon HD 4290, 2 x KHX1600C9D3/4GX, 4 x HD-PVR2 Gaming, , 4 x 320GB recording drives, 2 x USB-UIRT, SageTV Server Beta
SageTV Client & 2 x HD-300 Extender.
40.8TB unRaid 6.6.5 media server
  #411  
Old 02-09-2009, 03:48 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by perfessor101 View Post
Hello,
I checked my logs and it would seem they go back a few weeks. I stayed with the default setting of clearing logs weekly, but I'm not sure it looks like it's still keeping at least some of the information.

I've attached a jpg of a log page and a jpg of the settings page ...

please don't judge the shows I record

I am currently running SJQv2.1.1.236

Thanks for your time,
Bobby
When you click on one of those entries to view the program output for that task it should be empty. That's the data that gets purged, the task history entry in the db itself is never purged (it's kept there to ensure that the same job never runs more than once). If you really want to remove the task history (and risk a successfully completed task running again) then right click in the grid and select 'remove all', though I don't think you really want to do that.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
  #412  
Old 02-11-2009, 02:08 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
SJQ v2.1.1 is now available. This is a bug fix release that addresses various issues with the server and task client packages. All users are encouraged to upgrade to this version. See the project home page for details of the changes included in this release.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
  #413  
Old 02-11-2009, 02:11 PM
mgleed mgleed is offline
Sage User
 
Join Date: Jun 2007
Posts: 19
I'm personally looking forward to making use of the RETURNCODE option.
  #414  
Old 02-11-2009, 02:34 PM
mgleed mgleed is offline
Sage User
 
Join Date: Jun 2007
Posts: 19
What's the correct way to upgrade the service version of the client?
  #415  
Old 02-11-2009, 02:40 PM
ccourtney ccourtney is offline
Sage User
 
Join Date: Mar 2008
Posts: 27
I have successfully upgraded the service version by stopping the service. Overwriting the files from the new distribution and then starting the service again. I suppose one could be more cautious and unregister before overwriting and register after to be on the safe side as well.
__________________
Server - WHS, AMD X2 4850e, 3TB, 2 HD-PVRs w/ D11 DirecTV STBs
Client 1 - HD200
Client 2 - XP Home, AMD X2 5200+ w/ 8400GS
Client 3 - XP Pro, AMD X2 3800+ w/ 8400GS
  #416  
Old 02-11-2009, 02:58 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by ccourtney View Post
I have successfully upgraded the service version by stopping the service. Overwriting the files from the new distribution and then starting the service again. I suppose one could be more cautious and unregister before overwriting and register after to be on the safe side as well.
This is how I've always done it as well. Just make sure to stop the service before overwriting anything then you should be good to go. I haven't had a need to unregister the service - just stop, overwrite, restart. The task client installation wiki doc has been updated with a paragraph including this information.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
  #417  
Old 02-11-2009, 09:20 PM
bnh's Avatar
bnh bnh is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 120
i apologize for not reading the entire thread. What is the primary reason that you are using this plugin?

I'm considering using it to offload comskip and transcoding processing to two other clients in the house. is that the idea...to keep the sage server near idle? I have noticed when both the sagetranscoder and comskip are running, HD playback on the clients are "skippy", since the server nears 100% CPU usage. this plugin may alleviate that, but i like the ability to monitor transcode status within SageMC. Can i still observe that with this plugin? what are the advantages?

just thinking outloud...
__________________

Server: Sage 9.0.13.536, Windows10-64bit, AMD Phenom II X4 905e 2.5GHz , 16GB Ram, 2.6TB recording
Tuners: OpenDCT 0.5.2 Ceton InfiniTV4
NAS: 16TB, unRaid Plus, Asus H87I-Plus mini-ITX, Intel Core i3-4130, 16GB Ram, Fractal Node 304 case
10 Clients: HD-300, HD-200, SageWin10, Plex, AndroidMiniClient
  #418  
Old 02-11-2009, 10:09 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by bnh View Post
i apologize for not reading the entire thread. What is the primary reason that you are using this plugin?

I'm considering using it to offload comskip and transcoding processing to two other clients in the house. is that the idea...to keep the sage server near idle? I have noticed when both the sagetranscoder and comskip are running, HD playback on the clients are "skippy", since the server nears 100% CPU usage. this plugin may alleviate that, but i like the ability to monitor transcode status within SageMC. Can i still observe that with this plugin? what are the advantages?

just thinking outloud...
The original purpose of the plugin - and still the main reason I use it - is to selectively process certain recordings while ignoring others. Basically I don't want any live tv recordings to be comskipped, I don't want recordings from channels known not to have commercials to be comskipped (HBO, PPV, etc.) since it's just a waste of time (and CPU). When I first wrote this plugin my Sage server was a little underpowered so I couldn't afford to be wasting CPU cycles running comskip on recordings I knew didn't have commercials - now I have a quad core CPU and wanted a way to make use of it, which is how v2.x came about. v2.x introduced parallel task execution and the natural addition to parallel task execution was distributed task execution. So now my quad core is setup to run multiple tasks simultaneously, I also have some Linux hardware on my LAN that I can offload some work to if I wanted to.

You can offload comskip jobs to other hardware for sure, but if you use the SageTV transcoder then those tasks can't be distributed to other hardware since SJQ just registers jobs with the Sage core and the Sage core runs all transcoding jobs on the server. But with SJQ you can choose when jobs are sent to the SageTV transcoder. For example, if you have problems transcoding while watching tv then you can tell SJQ not to send jobs to the transcoder if a client is connected or if an extender is watching tv or you tell SJQ not to send jobs to the transcoder if it's between 8pm and 11pm or you can tell SJQ not to send a recording to the transcoder until it's at least 30 days old. Or you can combine all those rules, etc. The possibilities are almost endless, and that's where the power of this plugin comes from.

SageTV transcode jobs triggered by SJQ would still be viewable in SageMC since SJQ just registers the jobs in the SageTV transcode queue.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
  #419  
Old 02-12-2009, 08:54 AM
bnh's Avatar
bnh bnh is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 120
Quote:
Originally Posted by Slugger View Post
you can tell SJQ not to send jobs to the transcoder if a client is connected or if an extender is watching tv
THAT is compelling. thanks!
__________________

Server: Sage 9.0.13.536, Windows10-64bit, AMD Phenom II X4 905e 2.5GHz , 16GB Ram, 2.6TB recording
Tuners: OpenDCT 0.5.2 Ceton InfiniTV4
NAS: 16TB, unRaid Plus, Asus H87I-Plus mini-ITX, Intel Core i3-4130, 16GB Ram, Fractal Node 304 case
10 Clients: HD-300, HD-200, SageWin10, Plex, AndroidMiniClient
  #420  
Old 02-13-2009, 05:16 PM
perfessor101 perfessor101 is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: Vancouver, British Columbia, Canada
Posts: 246
is there a way of Marking all tasks for all media files done?

Hello, Slugger
you were right ... my logs are getting deleted as expected.

I have a lot of recordings from previous SageTV and previous SJQ (or Dirmon) installs. (1,265 recordings)

I got used to using marker files to tag the levels of processing that way when I have to start over with a new install nothing needs reprocessing.

However, I'm guessing all the media files that have never been processed by SJQ 2.1 are getting run through every rule check each time the Queue Loader runs ... and with the number of media files I currently have it seems to be confusing something between SageTV, Jetty and SJQ.

I was curious is there a way of marking all tasks for all media files done?
(if there was a command I could type ...)

Another possibility I have been thinking of is changing the rules and the tasks to a set of "blank" rules and "blank" batch files so that SJQ could "process all files"

I've up, down and re-graded Jetty (1.4, 1.5) and tried sjq-2.1.1.186 and sjq-2.1.1.236 and I'm thinking maybe it's time to switch to linux

Thanks for your time,
Bobby
__________________
SageTV Server: Windows 7 64Bit, Phenom II X6 1090T, Asus M4A89GTD-PRO/USB3 (AM3), ATI Radeon HD 4290, 2 x KHX1600C9D3/4GX, 4 x HD-PVR2 Gaming, , 4 x 320GB recording drives, 2 x USB-UIRT, SageTV Server Beta
SageTV Client & 2 x HD-300 Extender.
40.8TB unRaid 6.6.5 media server
Closed Thread


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: Sage Job Queue (SJQ) v3 Slugger SageTV Customizations 1355 07-25-2013 07:44 AM
Sage Job Queue (SJQ) new release notifications Slugger Customization Announcements 3 12-17-2009 09:59 AM
Sage Job Queue Completed tasks problem raffmanlt SageTV Customizations 2 08-18-2009 07:34 PM
Comskip Monitor VS Sage Job Queue SJQ personalt SageTV Customizations 6 03-02-2009 10:27 AM
Plugin: SJQ v1.1.0RC1 Available - Testers Needed Slugger SageTV Customizations 35 04-21-2008 08:12 AM


All times are GMT -6. The time now is 09:29 AM.


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