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
  #501  
Old 03-07-2009, 09:55 AM
voidpt's Avatar
voidpt voidpt is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Norway
Posts: 296
Quote:
Originally Posted by Slugger View Post
Under the QueueLoader menu it tells you when it last ran and when it's scheduled to run next. Set it to run after each recording, manually run it, wait 2-3 minutes then look at the that menu again. What time is it telling you it'll run next? I've never had any problems with the trigger code for the QueueLoader so I'd be surprised if it's not running for some reason (though I'm not silly enough to say it's impossible).
Your correct. Was pretty tired last evning, so probably missed some logic. I think I've got it working fine now. What I failed to realise was the if one adds a manual recording that will finish before 'Next Run' of QueueLoader, it will not be processed 'After end', because QueueLoader do not know to wake for this manual recording. I guess the logic is that each time QueueLoader is run it finds out the earliest time it needs to wake next time, and kicks in then. If something is done inbetween it cannot know about it (or should there be a 'hook' against SageTV for events like this in SJQ). Guess that is what the maxtime between runs eventually solves. Correct me if I'm wrong in some of my assumptions. Thanks for a great tool btw
__________________
SageTV 7.1.9 (headless/service) JavaRE 1.6.0_37 2x FloppyDTV C/CI (DVB-C) (fw: 1.2.10 B43110) (CAM: Conax) Win7 x64 Intel E3-1245V2 3.4GHz 16GB PC3-10600 ECC ASUS P8C WS (Intel C216) APC Back-UPS RS 800 STP-HD300 Extender (fw: beta 20110506 0) - HDMI/SPDIF - Yamaha RX-V2700 - HDMI - Sony KDL-52X2000
  #502  
Old 03-07-2009, 10:48 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by voidpt View Post
Your correct. Was pretty tired last evning, so probably missed some logic. I think I've got it working fine now. What I failed to realise was the if one adds a manual recording that will finish before 'Next Run' of QueueLoader, it will not be processed 'After end', because QueueLoader do not know to wake for this manual recording. I guess the logic is that each time QueueLoader is run it finds out the earliest time it needs to wake next time, and kicks in then. If something is done inbetween it cannot know about it (or should there be a 'hook' against SageTV for events like this in SJQ). Guess that is what the maxtime between runs eventually solves. Correct me if I'm wrong in some of my assumptions. Thanks for a great tool btw
You've got it exactly right. There is no way to listen for Sage events in Java, but I really wish there was. Since I can't listen for Sage events then if you do add manual recordings then the QueueLoader has no way to run in between (as implemented - I could periodically pole the recording schedule and adjust the queue loader, but I don't see the point).
__________________
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...
  #503  
Old 03-09-2009, 07:30 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
When my server comes back up after a reboot I get several dialog box messages saying "Comskip has encountered a problem and needs to close". I am not 100% sure but I am assuming that this is coming from some SJQ jobs that got stuck in the queue or failed and are trying to start upon SageService & SJQ starting. Otherwise why would comskip even by started? But this happens before I start SJQ Client which I start manually rather than as a service.

Has anyone else seen this? Or would this have nothing to do with SJQ?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
  #504  
Old 03-09-2009, 08:38 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by wayner View Post
When my server comes back up after a reboot I get several dialog box messages saying "Comskip has encountered a problem and needs to close". I am not 100% sure but I am assuming that this is coming from some SJQ jobs that got stuck in the queue or failed and are trying to start upon SageService & SJQ starting. Otherwise why would comskip even by started? But this happens before I start SJQ Client which I start manually rather than as a service.

Has anyone else seen this? Or would this have nothing to do with SJQ?
I don't believe it has anything to do with SJQ, I get those as well and it's a result of comskip crashing while processing HD-PVR recordings. I can reproduce the same results by rerunning comskip against the same HD-PVR recording outside of 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...
  #505  
Old 03-09-2009, 08:48 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
That makes sense - thanks Slugger.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
  #506  
Old 03-09-2009, 05:07 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Additional use for SJQ

I have set up an additional task in SJQ to call MediaScraper to download Fanart for any Movies that I record on TV. Just one more use for a great tool!
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
  #507  
Old 03-09-2009, 07:52 PM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
What does everyone use SJQ for? Right now I only use it for comskip.

I am under the impression I can use to resize some videos so that I can copy for my phone to play on the bus but what else should I be thinking about?
  #508  
Old 03-09-2009, 08:20 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I use it for Comskip (separate task for HD and SD although there isn't much reason to do so), running Mediascrape to download Fanart for Recorded Movies and Transcoding SD TV shows to Divx format and archiving (I convert to MPEG-4 Godd quality deinterlaced and move the file to \Videos\Kids Shows\Dora, etc.)
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
  #509  
Old 03-10-2009, 06:32 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
So are you able to set this up running more than one process at once on livetv?

I am currently using dirmon and it works great but only process one show at a time and my wife always seems to pick the recording it is not working on.

It would be even greater if I could assign it to multi proccessor having a quad core that would give me that ability to scan up to 4 at a time each using it's own thread.
  #510  
Old 03-10-2009, 08:38 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by PLUCKYHD View Post
So are you able to set this up running more than one process at once on livetv?

I am currently using dirmon and it works great but only process one show at a time and my wife always seems to pick the recording it is not working on.

It would be even greater if I could assign it to multi proccessor having a quad core that would give me that ability to scan up to 4 at a time each using it's own thread.
You can configure multiple clients to work on tasks and each client can be configured to do multiple tasks in parallel. In my own setup, I have a quad core and have configured my SJQ client to do up to 4 instances of comskip at once. So if the server queues 4 comskip tasks then my client will pull them all down at once and do them in parallel.
__________________
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...
  #511  
Old 03-10-2009, 08:43 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Slugger View Post
You can configure multiple clients to work on tasks and each client can be configured to do multiple tasks in parallel. In my own setup, I have a quad core and have configured my SJQ client to do up to 4 instances of comskip at once. So if the server queues 4 comskip tasks then my client will pull them all down at once and do them in parallel.
That sounds great I may hit you up with a pm tonight to help me out if I can't on my own.

It does still work on livetv as well correct?
  #512  
Old 03-10-2009, 08:51 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by PLUCKYHD View Post
That sounds great I may hit you up with a pm tonight to help me out if I can't on my own.

It does still work on livetv as well correct?
Yes, sort of. The QueueLoader thread (the thread that queues up the tasks to run) can run after the start of each scheduled recording, after the end of each scheduled recording or on a constant interval.

If you want to comskip actual live tv recordings (selecting "Watch Live TV") while you watch them then you're going to have to run SJQ on a constant interval. If you mean you want to comskip scheduled recordings while they're recording then that's no problem at all - just tell SJQ to run after the start of each recording.

Currently, SageTV doesn't support event listeners from external Java plugins so SJQ has no way to know when you're starting to watch live tv and therefore when it should run the QueueLoader - that's why I added the constant interval setting, though it's not the most efficient way to run 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...
  #513  
Old 03-10-2009, 09:22 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Slugger View Post
Yes, sort of. The QueueLoader thread (the thread that queues up the tasks to run) can run after the start of each scheduled recording, after the end of each scheduled recording or on a constant interval.

If you want to comskip actual live tv recordings (selecting "Watch Live TV") while you watch them then you're going to have to run SJQ on a constant interval. If you mean you want to comskip scheduled recordings while they're recording then that's no problem at all - just tell SJQ to run after the start of each recording.

Currently, SageTV doesn't support event listeners from external Java plugins so SJQ has no way to know when you're starting to watch live tv and therefore when it should run the QueueLoader - that's why I added the constant interval setting, though it's not the most efficient way to run SJQ.
Okay question why doesn't it just look for the creation of the mpeg filelike diremon does? It works on livetv as it just scanns the recorded folder very 4 minutes (what I have mine set at.)
  #514  
Old 03-10-2009, 09:27 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by PLUCKYHD View Post
Okay question why doesn't it just look for the creation of the mpeg filelike diremon does? It works on livetv as it just scanns the recorded folder very 4 minutes (what I have mine set at.)
That's what the constant interval setting will do - it will scan your media on a constant interval. Instead of scanning the physical file system, it queries the SageTV wiz.bin for the data.
__________________
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...
  #515  
Old 03-10-2009, 09:29 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Slugger View Post
That's what the constant interval setting will do - it will scan your media on a constant interval. Instead of scanning the physical file system, it queries the SageTV wiz.bin for the data.
got it thanks I will try this out. Only problem is I have problem with comskip working accurately and I use show analyzer don't know if it can run concurrent (more than 1) but if not I am a paid beta comskip customer as ]well and I am sure with some tweaking I could get it better.

Thanks again

Last edited by PLUCKYHD; 03-10-2009 at 09:32 AM.
  #516  
Old 03-10-2009, 01:40 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
[See project home page for more details, access to the downloads, etc.]

Official v2.1.2 Builds Released

10 Mar 2009: The official server and task client builds for SJQ v2.1.2 are now available for download in the project downloads section.

The v2.1.2 release is a bug fix release that addresses various issues with the server and task client packages:

Server Fixes

* Fix error in ruleset parser where a test block could start with a conditional operator and not report a syntax error
* Use JDBC SQL batch processing when writing or purging log entries
* Fix Logger buffering to ensure that log buffering is working as expected
* Increase performance of log purging thread
* Rewrite GUI to use vanilla GWT components; 3rd party libs (gwt-ext, etc.) always cause quirks that break basic functionality
* Issue 50 : Fix inability to load settings panel on Safari, Opera and Chrome browsers
* Issue 52 : Add media debugger; replaces massive dump of data when debug mode is turned on; debug mode is much quieter and more useful now
* Issue 54 : Ensure default settings are properly initialized on a fresh installation
* Add ability to ignore task client logs for processes (task client messages are still always logged)
* Fix ruleset parser bug where subject data could have unbalanced double quotes and not report a syntax error, which then lead to null pointer problems later on in the QueueLoader run
* Add separate package that forces all GUI actions to protected (SSL) port of Jetty installation; non-ssl package also supports SSL connections, but does not force non-SSL requests to the SSL port
* Allow denial of task clients by IP address (using CIDR notation)

Task Client Fixes

* Connect to server by hostname instead of IP address; some SSL connections will be denied if attempted by IP address instead of hostname (if the IP address isn't listed as an alternate name for the SSL certificate)

NOTE: Both the SSL and non-SSL server packages contain the exact same application code. The only difference between them is that the ssl zip file will force all GUI traffic to the secured (SSL) port on your Jetty installation. Since SJQ requests an id/pwd on each GUI session, it is recommended that the connection be secured. If you do not have Jetty configured for SSL access then do not use the ssl package as SJQ will not work properly. The non-SSL zip package will also work over the secured port, but does not force the connection away from the non-SSL port.
__________________
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...
  #517  
Old 03-10-2009, 03:28 PM
Peter_h Peter_h is offline
Sage Fanatic
 
Join Date: May 2008
Location: Kailua, HI
Posts: 798
Can I install this on top of 2.1.1 or do I need to uninstall?

The new gui looks nice.
  #518  
Old 03-10-2009, 03:38 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Peter_h View Post
Can I install this on top of 2.1.1 or do I need to uninstall?

The new gui looks nice.
Yeah, you shouldn't need to even stop SageTV to update the server. Upgrade details are in the installation wiki.
__________________
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...
  #519  
Old 03-10-2009, 04:08 PM
Peter_h Peter_h is offline
Sage Fanatic
 
Join Date: May 2008
Location: Kailua, HI
Posts: 798
So I tried installing it and I am getting an error when I try to extract the package.

"C:\sjqc\sjq-2.1.2.343.zip Cannot create jetty\webapps\sjq.war"
"The process cannot access the file because it is being used by another process."

So I guess I should stop the sage service and try again?
  #520  
Old 03-10-2009, 05:14 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Peter_h View Post
So I tried installing it and I am getting an error when I try to extract the package.

"C:\sjqc\sjq-2.1.2.343.zip Cannot create jetty\webapps\sjq.war"
"The process cannot access the file because it is being used by another process."

So I guess I should stop the sage service and try again?
Yeah, if you get errors about files being locked when trying a hot deploy then simply stop Sage, unzip, restart Sage.
__________________
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...
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 04:14 PM.


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