|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#921
|
||||
|
||||
New $ object
Sounds pretty reasonable to me Slugger. While I'm not a "power" SJQ user certainly having access to a broader range of information typically isn't a bad thing. About the only downside I can see is having to reprogram some rules when upgrading from v2 to v3.
__________________
Check it out! - http://www.vholdr.com/video/playing-sky |
#922
|
|||
|
|||
this is a generic question, but I'm not suer of the answer.
My situation is that I use SJQ to run compskip and generate edl files. When I delete the show, the edl file still exists and I end up with a bunch of unused edl files. Is there a way to have SJQ clean these up? I also just thought this might be an optino is SageMC (which I am using) and I'll look into that. I am thinking SJQ can't because it just scans all media files.. |
#923
|
|||
|
|||
Quote:
__________________
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... |
#924
|
|||
|
|||
Quote:
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#925
|
|||
|
|||
ah, I forgot about this section. I recently had to reinstall SageTV and had to reconfigure SJQ and noticed these files building up. So, since I had setup SJQ many months ago when it first came out, I forgot to re-setup this file cleaning.
Thanks for reminding me. On that note, is there a way to backup/save/restore the client and server rulesets? |
#926
|
|||
|
|||
Quote:
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#927
|
|||
|
|||
Quote:
__________________
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... |
#928
|
||||
|
||||
Client Log Error - HTTP 500
EDIT: I found the problem. I had cut/pasted from the PDF, which had # comments in it...after removing those, the system runs fine. Might cause issues for others, so might be worth changing the PDF for the time being. Cheers!
Hey there...been trying to find a solution to this in this (quite long) thread, but am not having any luck. Everything seems to be configured correctly, I've run through the PDF document step-by-step and have a server and Windows-Service based client installed on the same machine. I see the client in the Clients screen, but have the below error log from there. Same error occurs every 5 minutes or so, and have yet to have it kick-off the task. I have 6 items in my queue (Waiting). I have one task on the client (ComSkip, per instructions in PDF). Thoughts? THANKS!! Code:
HTTP ERROR 500 2009/10/11 17:47:01.600 Problem accessing /sjq/SJQ. Reason: 2009/10/11 17:47:01.741 Unexpected '#' on line 1 Caused by:java.lang.RuntimeException: Unexpected '#' on line 1 2009/10/11 17:47:01.913 at com.google.code.sagetvaddons.sjq.server.ClientParser.<init>(ClientParser.java:192) 2009/10/11 17:47:02.053 at com.google.code.sagetvaddons.sjq.server.SJQServlet.doPost(SJQServlet.java:166) 2009/10/11 17:47:02.194 at com.google.code.sagetvaddons.sjq.server.SJQServlet.doGet(SJQServlet.java:92) 2009/10/11 17:47:02.335 at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) 2009/10/11 17:47:02.475 at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) 2009/10/11 17:47:02.616 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) 2009/10/11 17:47:02.772 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389) 2009/10/11 17:47:02.928 at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) 2009/10/11 17:47:03.100 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) 2009/10/11 17:47:03.335 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) 2009/10/11 17:47:03.600 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) 2009/10/11 17:47:03.866 at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) 2009/10/11 17:47:04.038 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) 2009/10/11 17:47:04.210 at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230) 2009/10/11 17:47:04.366 at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) 2009/10/11 17:47:04.522 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) 2009/10/11 17:47:04.694 at org.mortbay.jetty.Server.handle(Server.java:326) 2009/10/11 17:47:04.850 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) 2009/10/11 17:47:05.038 at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) 2009/10/11 17:47:05.194 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) 2009/10/11 17:47:05.335 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) 2009/10/11 17:47:05.491 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) 2009/10/11 17:47:05.631 at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) 2009/10/11 17:47:05.803 at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) 2009/10/11 17:47:06.006
__________________
Al Bsharah / Twitter Clients: Two STX-HD100 High-Def Extenders Media Server / NAS: Case: Thermaltake Armor CPU: AMD Opteron 1218 (2.6GHz Dual Core) Motherboard: ASUS MN2-LR Memory: 2GB Gfx Card: Headless Tuner: Hauppauge HD-PVR, Hauppauge PVR-350 (not in use) O/S: Windows 7 Sage: Latest RAID: On-Board Drives: 6 x 1.5TB SATA RAID-5, 2 x 80GB IDE RAID-1 (O/S) Storage: 7.5TB Total Last edited by Addict; 10-11-2009 at 07:15 PM. |
#929
|
|||
|
|||
Please paste in your client config here. Be sure to surround it in code tags in your reply for easier reading.
__________________
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... |
#930
|
|||
|
|||
I'm not a current SJQ user but have been following your work on you google page. The time and date availability rules is the last thing stopping me from switching from dirmon2 to SJQ... I do have a question about SJQ that loosely relates to availability.
Does SJQ have the notion of resource allocation... aka you can run multiple threads of comskip but only one video conversion thread? like in dirmon2 each "job" consumes x amount of resource out of a total y. Dirmon2 will then allocate jobs until the sum of all x is the maximum that does not exceed y. not sure if this notion of resource allocation already... if so sorry.. maybe i should rtfm ... if not though it would be a welcome addition to SJQ
__________________
Server 2003 r2 32bit, SageTV9 (finally!) 2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast) 2x HD300, 1x SageClient (Win10 Test/Development) Check out TVExplorer |
#931
|
|||
|
|||
Quote:
Here's what I've done: Add two options to the client config "OFFDAY" and "OFFHOUR". You can specify a range of days (of the week, 1-7) or hours of the day (0-23) and if the current day or hour matches any of the listed ranges then the client is disabled and will not receive new tasks to run (any tasks that are running are not killed). Quote:
So you can say something like, "run up to 5 tasks simultaneously on this client, but no more than 3 comskips, 1 transcode and unlimited fanart downloads." Of course, "unlimited" is unlimited up to 5 so you'll never have more than 5 task threads running at once and never any more than 3 comskip threads and never any more than 1 transcode thread. Hopefully that makes sense? So now I just have to get the bugs out of the interpreter for the off hours/off day settings.
__________________
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... |
#932
|
|||
|
|||
Quote:
|
#933
|
|||
|
|||
Quote:
Quote:
__________________
Server 2003 r2 32bit, SageTV9 (finally!) 2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast) 2x HD300, 1x SageClient (Win10 Test/Development) Check out TVExplorer |
#934
|
|||
|
|||
Quote:
20-23,0-8 Which would be the same thing. Blackouts are by hour only (as currently written). No, you can't have virtual machines. Machines are identified by IP address so you can't. Except on the localhost, you actually can have two separate clients running. One that connects to 127.0.0.1 and one that connects via the LAN IP (192.x.x.x or whatever). In that case only, you can actually have two separate clients on the same physical machine (this wasn't done on purpose, but happens to work in this case). Quote:
I might look into moving the client blackouts to the task level, but that's a big maybe b/c it really adds a whole new level of complications that I really don't want to write, test, nor maintain. The client level blackouts are actually quite easy to add, but I'll take a look (seems unlikely though).
__________________
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... |
#935
|
|||
|
|||
Ok, so I did a little reading of the source code and adding task based blackouts wasn't as big a deal as I thought it would be so I added it. Now clients can be blacked out and tasks can be blacked out.
This will all be added to the new SJQ v3 user guide, but as a preview (and a place for me to scribble some notes to remind me), here's what you can do with the clients and tasks now: Ruleset Code:
# We don't want to transcode Criminal Minds episodes between 8pm and 2am daily (for whatever reason) if [IsObjMediaFile == true && $.GetShowTitle{} == "Criminal Minds"] { :OFFHOUR "20-23,0-2" # Blackout this task from 8:00pm-11:59pm and from midnight to 2:59am MYTRANSCODE } Code:
# The OFFHOUR and OFFDAY settings are OR'd together (i.e. if either one matches then the blackout test is considered true :OFFHOUR "19-23" # This client is blacked out daily from 7pm-11:59pm :OFFDAY "2-5" # This client is also blacked out all day Mon-Fri, inclusive MYTRANSCODE { "/path/to/transcode/exe \"%c%\"" }
__________________
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... |
#936
|
|||
|
|||
wowow thank you, i look forward to trying out v3
__________________
Server 2003 r2 32bit, SageTV9 (finally!) 2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast) 2x HD300, 1x SageClient (Win10 Test/Development) Check out TVExplorer |
#937
|
|||
|
|||
[Pasted from the issue ticket...]
Some things to consider: Let's say you don't want to run transcode tasks between 8pm and 11pm because that's when you're watching tv so you black out the transcode task in your ruleset... Well, if the server does a scan at 7:58pm it'll add the task to the queue (because it's not between 8pm-11pm yet). A client might not check for work again until 8:01pm and it'll get that task and run it during the "blackout period". Even if you blacked out the client from 8pm-11pm the server might scan at 7:58 and add the task and the client might check for work at 7:59 and get the task to run which means it'll be running that task during the blackout period. Task blackouts are used to prevent tasks from entering the queue. Once in the queue, tasks will be assigned to clients that aren't blacked out and aren't running at capacity. There are so many edge cases that simply can't be contained nor am I going to try to contain them all. In other words, the blackout settings are a best effort kind of thing, but it's almost a guarantee that your blackout rules won't be honoured and it's because of scenarios like the one I just described.
__________________
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... |
#938
|
|||
|
|||
Quote:
__________________
Server 2003 r2 32bit, SageTV9 (finally!) 2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast) 2x HD300, 1x SageClient (Win10 Test/Development) Check out TVExplorer |
#939
|
|||
|
|||
Cannot get Service to run on WHS
I have been able to get SJQ running fine, and have a ruleset that is setting up jobs to run. I am on SJQ ver 2.1.5.542.
I have tried to install the standalone client with 127.0.0.1, \\server, and localhost and I get the following output from the command line SJQ Task Client v2.1.5.556 Using 'C:/sjqc' as location for configuration file... Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundExcep tion: http://localhost:80/sjq/SJQ?proto=2&cmd=writeLog at com.google.code.sagetvaddons.sjqc.TaskClient.log(Unknown Source) at com.google.code.sagetvaddons.sjqc.TaskClient.log(Unknown Source) at com.google.code.sagetvaddons.sjqc.TaskClient.pop(Unknown Source) at com.google.code.sagetvaddons.sjqc.TaskClient.run(Unknown Source) at com.google.code.sagetvaddons.sjqc.TaskClient.main(Unknown Source) Caused by: java.io.FileNotFoundException: http://localhost:80/sjq/SJQ?proto=2&cm d=writeLog at sun.net.http://www.protocol.http.HttpURLConn...Stream(Unknown So urce) ... 5 more I have also tried the service and get the same results, here is the output from the wrapper.log STATUS | wrapper | 2009/10/18 17:13:14 | STATUS | wrapper | 2009/10/18 17:13:14 | Launching a JVM... INFO | jvm 1 | 2009/10/18 17:13:14 | WrapperManager: Initializing... INFO | jvm 1 | 2009/10/18 17:13:15 | SJQ Task Client v2.1.5.556 INFO | jvm 1 | 2009/10/18 17:13:15 | Using 'C:/sjqc' as location for configuration file... INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: Encountered an error running main: INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: java.lang.RuntimeException: java.io.FileNotFoundException: http://127.0.0.1:80/sjq/SJQ?proto=2&cmd=writeLog INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: at com.google.code.sagetvaddons.sjqc.TaskClient.log(Unknown Source) INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: at com.google.code.sagetvaddons.sjqc.TaskClient.log(Unknown Source) INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: at com.google.code.sagetvaddons.sjqc.TaskClient.pop(Unknown Source) INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: at com.google.code.sagetvaddons.sjqc.TaskClient.run(Unknown Source) INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: at com.google.code.sagetvaddons.sjqc.TaskClient.main(Unknown Source) INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: at java.lang.reflect.Method.invoke(Unknown Source) INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:236) INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: at java.lang.Thread.run(Unknown Source) INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: Caused by: java.io.FileNotFoundException: http://127.0.0.1:80/sjq/SJQ?proto=2&cmd=writeLog INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: at sun.net.http://www.protocol.http.HttpURLConn...Stream(Unknown Source) INFO | jvm 1 | 2009/10/18 17:13:15 | WrapperSimpleApp: ... 11 more STATUS | wrapper | 2009/10/18 17:13:17 | <-- Wrapper Stopped I have Java ver 6 update 15 installed Can anyone help me get the client working? Last edited by mguebert; 10-18-2009 at 06:40 PM. Reason: added information |
#940
|
|||
|
|||
Despite the presence of these in my ini:
output_default=0 output_edl=1 comskip will not output edl files when triggered by SJQ. It will do it if I manually drag and drop files. Here is my sjq settings file if it helps: :MAXPROCS 3 COMSKIP { :MAX 3 :CPU "NORMAL" :RETURNCODE 1 "C:/Program Files/SageTV/SageTV/comskip/comskip.exe \"%c%\"" }
__________________
[size=1]Current Server:V9 UNRAID Docker, SuperMicro x9dri-LNF4+, 32 GB ECC, 2x Xeon e5-2660v2, storage array 6TB, 2 Dish r5000HD tuners, 1 HDHomerun Quatro, 1 HDHomerun Extend 4 Nvidia Shield TVs with Miniclient |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |