|
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 |
#261
|
|||
|
|||
Instead of writing a batch file, just add the :RETURNCODE 1 option to the client where you call comskip. That will tell SJQ that it should expect a return code of 1 instead of the default 0. No need to write a batch file anymore to work around this issue.
__________________
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... |
#262
|
||||
|
||||
that one slipped through my radar!
|
#263
|
|||
|
|||
Hi,
First, thanks for a great program! Also , sorry for any typos, I am french and english is not my first language. Is it possible to include an options for _MOVEREC task in order to specified a login and password to use when moving the file. Let me explain. My sagetv service (WinXP) is running with an account that have only read access to my nas, I don't want kids to be able to delete files from my nas within sage with the delete media button. The SJQ web is also running within the same security context as sagetv service (it is loaded by jetty that is loaded by sagetv). In order to use the _MOVEREC task I need a way to enable temporary write access to my nas. Maybe something like MOVERECLOGIN "user", "password". The only other way is with a batch file, that launch psexec, move the file and maybe a _RELINK task? Any idea? Mike |
#264
|
|||
|
|||
You're going to have to write a batch file as the Java API does not provide any means to connect to a network share with credentials other than those used by the process (unless you were to connect via FTP or something, but I won't be adding that kind of support to the _MOVEREC task). So you'll need to use a batch file to move the recording to the NAS then use the _RELINK task to relink the airing info after you move it. Something like this maybe:
Code:
# Decide which to shows to copy to the NAS as needed; # you should only move recordings with exactly one file segment because # that's all that the _RELINK task can handle (due to Sage API limitations) if [IsObjMediaFile == true && $.GetShowTitle{} == "Show to Archive" && $.GetNumberOfSegments{} == 1] { COPYREC :RELINKOPTS "$.GetAiringID{}" "\\\\nas\\tv\\%p%" # Replace the path above as needed _RELINK } Then just write a batch file or whatever that copies the recording to your NAS. As long as that task returns a zero code back to SJQ then _RELINK task will run after it to relink the airing info to the file in the new location (and it will also delete the original recording). Another idea just came to me: I'm not a Windows guru so this is just a thought that popped into my head, but couldn't you also map your NAS to a different drive letter, say Z: or something, and create that mapping as a different user with write permission to the NAS then use _MOVEREC and copy everything via the Z: and that should work as well? Don't know, just throwing it out there.
__________________
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... |
#265
|
|||
|
|||
SJQv3 is complete. Thanks to all who helped test during the beta cycle. I'll be hanging around the forums during the holidays, but am taking a holiday break from coding, tweaking, etc. so any bugs, feature requests, etc. should be added to the project issue tracker. Major issues would probably be addressed in a timely fashion, but hopefully we've squashed all of those types of problems during the beta cycle.
I plan on starting up with Sage coding again sometime after the new year (late January 2010).
__________________
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... |
#266
|
|||
|
|||
Thanks for the work on this!
I upgraded yesterday from v2 to what is, I guess, the final beta of v3. Works fine, except that my system now runs only one task at a time, instead of running two parallel tasks. Here's the client configuration, which I haven't changed in v3. Code:
:MAXPROCS 2 COMSKIP { :MAX 2 :CPU "LOW" :RETURNCODE 1 "/usr/bin/wine comskip %c%" } |
#267
|
|||
|
|||
by default (when RESOURCES is not specified) all tasks will run serially because a value of RESOURCES = 100 is assigned to it. SJQ is not aware of how many processors you have (it is system based) so it is up to the user to do the math to figure out how many resources a given task should consume.
Not sure what MAXPROCS was but i dont think its there anymore (was not a SJQ v2 user). Use MAX to specify the number of instances of this task a client will run concurrently, regardless of how many RESOURCES it consumes (must still add up to less then 100). Between RESOURCES and MAX you should be able to configure your tasks to do exactly what you want (btw thanks again to Slugger for implementing this ) SJQ Manual - MAX SJQ Manual - RESOURCES
__________________
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 |
#268
|
|||
|
|||
Thanks,razr. So, aren't MAX and RESOURCES kind of redundant? It seems like I could use either (MAX=2 RESOURCES=0), or (MAX undefined RESOURCES=50) to make sure that no more than two instances would run. Right?
|
#269
|
|||
|
|||
RESOURCES are much more configurable when running multiple different types of job. MAX doesnt really need to be used except in some very limited use cases. Here is is an example of when you want to use both MAX and RESOURCES (and the reason why Slugger added MAX back into the mix).
I would default to always using RESOURCES unless a specific use case required you to use both.
__________________
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 |
#270
|
|||
|
|||
Hi,
I have update to the latest release and my active queue is waiting forever. My active queue contain 8 jobs waiting and my client have nothing to do. Any help? Code:
2009-12-16 13:41:19,431 INFO [DataStore]: Thread 'SJQ-LogCleaner' is waiting for an exclusive DataStore connection! [AVAIL=1; MAX=25; WAIT=923313ms] 2009-12-16 13:41:27,197 INFO [SJQServlet]: Servlet POST request completed [16ms] 2009-12-16 13:41:27,197 INFO [DataStore]: Thread 'SJQ-LogCleaner' is waiting for an exclusive DataStore connection! [AVAIL=1; MAX=25; WAIT=931079ms] 2009-12-16 13:41:27,197 INFO [SJQServlet]: Servlet POST request completed [0ms] 2009-12-16 13:41:27,197 INFO [DataStore]: Thread 'SJQ-LogCleaner' is waiting for an exclusive DataStore connection! [AVAIL=1; MAX=25; WAIT=931079ms] 2009-12-16 13:41:29,415 INFO [SJQServlet]: Servlet POST request completed [0ms] 2009-12-16 13:41:29,415 INFO [DataStore]: Thread 'SJQ-LogCleaner' is waiting for an exclusive DataStore connection! [AVAIL=1; MAX=25; WAIT=933297ms] 2009-12-16 13:41:31,181 INFO [InternalTaskClient]: Run completed [0ms] 2009-12-16 13:41:39,431 INFO [SJQServlet]: Servlet POST request completed [0ms] 2009-12-16 13:41:39,431 INFO [DataStore]: Thread 'SJQ-LogCleaner' is waiting for an exclusive DataStore connection! [AVAIL=1; MAX=25; WAIT=943313ms]
__________________
Server: Sage 7 on WinXP with 1TB of storage NAS: Unraid with 6TB of storage Clients: 4 HD-200 and 3 Sage Clients PC Capture: 2 HD-PVRs + SA4250HDs |
#271
|
|||
|
|||
Quote:
Am I right? Mike
__________________
Server: Sage 7 on WinXP with 1TB of storage NAS: Unraid with 6TB of storage Clients: 4 HD-200 and 3 Sage Clients PC Capture: 2 HD-PVRs + SA4250HDs |
#272
|
|||
|
|||
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... |
#273
|
|||
|
|||
Shouldn't be, if Sage already links your media to a UNC path then you should just be able to map a drive that only SJQ uses. I'm not 100% sure that this will work, but it seems like it should. If not, then you'll have to write the batch file and do the move manually then use the _RELINK task to relink the airing info as needed.
__________________
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... |
#274
|
|||
|
|||
Quote:
Mike
__________________
Server: Sage 7 on WinXP with 1TB of storage NAS: Unraid with 6TB of storage Clients: 4 HD-200 and 3 Sage Clients PC Capture: 2 HD-PVRs + SA4250HDs |
#275
|
|||
|
|||
Do you have an idea how can I write a rule that will be trigger only once a day, say like at 3:00AM?
Also is it possible to have one trigger after savetv has done is media scan? I had mine configure to run once a day (in sagetv: Automatic library rescan frequency). I want to create a task that will run after sagetv has done it rescan job. Thanks in advance. Mike
__________________
Server: Sage 7 on WinXP with 1TB of storage NAS: Unraid with 6TB of storage Clients: 4 HD-200 and 3 Sage Clients PC Capture: 2 HD-PVRs + SA4250HDs |
#276
|
|||
|
|||
Can you provide a sample client config that was causing the problem? It seems SJQ wasn't properly recovering the db pool as intended so I'd like to reproduce this and have a closer look the next time I dig into the code.
__________________
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... |
#277
|
|||
|
|||
Quote:
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... |
#278
|
|||
|
|||
Quote:
If you look carefully you will see the last line of TESTMEDIA is missing the double quoted, also on the last line of MEDIASHRINKSD. The other two were ok. Also, there was 8 tasks waiting in the queue for TESTMEDIA at that moment Code:
/* Task block for comskip */ COMSKIP { :CPU NORMAL :RESOURCES 50 :MAX 2 // max 2 instance of this task :MAXRUNRATIO 4.0 // Up to 4 length of recording. :RETURNCODE 1 "C:/comskip/comskip.exe \"%c%\"" } /* Task block for MediaShrink HD resolution */ MEDIASHRINKHD { :NORECORDING 4.0 :NOCLIENT "true" :MAX 1 // max 1 instance of this task :CPU LOW :RESOURCES 50 "C:\\MediaShrink\\mediaShrink.exe \"%c%\" /batch /InPlace /x264 /onePass /highProfile /cliBitrate 3250 /ac3 /mkv" } /* Task block for MediaShrink SD resolution*/ MEDIASHRINKSD { :NORECORDING 2.5 :NOCLIENT "true" :CPU LOW :MAX 1 // max 1 instance of this task :RESOURCES 50 #C:/MediaShrink/mediaShrink.exe \"%c%\" /batch /InPlace /x264 /onePass /highProfile /cliBitrate 1500 /ac3 /mkv C:/MediaShrink/mediaEngine.exe /saveLog /defaultProfile autoEncode /findFileRegEx \"avi|mpg|mkv|mp4|mpeg|VIDEO_TS|ts|ogm|divx|mpts|dvr-ms\" /mediaShrink fixBug \"%c%\" /batch /InPlace /x264 /onePass /highProfile /cliBitrate 1500 /ac3 /mkv } TESTMEDIA { :MAX 1 :RESOURCES 5 R:/temp/testmedia.cmd \"%c%\" }
__________________
Server: Sage 7 on WinXP with 1TB of storage NAS: Unraid with 6TB of storage Clients: 4 HD-200 and 3 Sage Clients PC Capture: 2 HD-PVRs + SA4250HDs Last edited by mikep; 12-16-2009 at 08:43 PM. |
#279
|
|||
|
|||
Quote:
__________________
Server: Sage 7 on WinXP with 1TB of storage NAS: Unraid with 6TB of storage Clients: 4 HD-200 and 3 Sage Clients PC Capture: 2 HD-PVRs + SA4250HDs |
#280
|
||||
|
||||
I just installed SJQ 3.0 and I'm impressed. I think I can use it to replace by delicate DTB install. I've run into three problems. One is that I set my password and logged off and back on a couple of times so I'm certain that I know what the password is, but now it is saying that the password is invalid. Second I've set it up with resources at 33 for SAV1 and it's only queueing up one recording. Third is that as it was just about to finish the first SAV1 the Active queue suddenly went blank. That was made me log off and try to log back in causing the first problem. Obviously the password issue is first and foremost.
Edit: I don't know what happened, but I noticed that the client service was stopped and started it again. Then I could log in and the jobs are in the queue. Now I just have this problem with only launching 1 job. Last edited by toricred; 12-16-2009 at 09:17 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sage Job Queue (SJQ) new release notifications | Slugger | Customization Announcements | 3 | 12-17-2009 09:59 AM |
Plugin: Sage Job Queue (SJQ) | Slugger | SageTV Customizations | 991 | 12-11-2009 03:52 PM |
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 |