|
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 |
#321
|
||||
|
||||
Quote:
|
#322
|
|||
|
|||
If I'm using autoencode, wouldn't it pick the correct parameter?
__________________
Server: WHS with 11TB of storage Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD Tuners: 1) HD-Homerun 2) Avermedia USB ATSC Twitter: ohpleaseno |
#323
|
|||
|
|||
Wrong network path
Hey Slugger, I've been using SJQ for a little over a year now. I have only had a single client configured locally on the server and it has run great.
I just set up an additional client on the LAN tonight. However, I'm experiencing a problem with the it not getting sent the correct media path. Here is the relevant ruleset. Code:
if [IsObjMediaFile == true && $.IsTVFile{} == true && $.IsNotManualOrFavorite{} == false && FileExists != "%d%/%p%.edl" && Filename =$ ".mpg"] { :PRIORITY 10 COMSKIPSD } if [IsObjMediaFile == true && $.IsTVFile{} == true && $.IsNotManualOrFavorite{} == false && FileExists != "%d%/%p%.edl" && Filename =$ ".ts"] { :PRIORITY 9 COMSKIPHD } Code:
COMSKIPSD { :RESOURCES 50 # Up to 2 comskipsd can be run simultaneously. (every client has exactly 100 resources available) # CPU priority to be used for this task process; one of LOW, NORMAL, HIGH (case sensitive) :CPU "NORMAL" # Default is NORMAL if not specified # Comskip returns 1 on success instead of the universally accepted zero; tell SJQ that # a return code of 1 means success instead of the default value of zero :RETURNCODE 1 :MAXRUNRATIO 1 "C:/comskip/comskip.exe \"%c%\"" } The current recording directory is \\Server\SageTV Recordings. The original recording directory was \\Server\SageTV. Whenever the comskip task is assigned to the client on the LAN, I get an error in the log from comskip stating Code:
No such file or directory - could not open file \\Server\Sagetv\recording.mpg Is there a way to get around this in SJQ? If it is a wiz.bin problem, would I be able to move the file in SJQ using the internal _MOVEREC tasks and potentially fix this? Thanks, Peter Last edited by Peter_h; 01-08-2010 at 03:24 AM. |
#324
|
|||
|
|||
It looks like a wiz.bin problem, but you'll want to confirm that by checking the full path of the file in your STV or on the web server, etc. If they show the same (incorrect) path then the problem is in your wiz.bin. I suspect that this is the case because the value SJQ uses is just pulled from wiz.bin. However, confirm that via another source.
You have two options to handle this. First, you can use the :MAPDIR setting in SJQ to tell the client to map one dir to another. This should work fine, but if it is indeed a wiz.bin issue then you're going to have other problems (like trying to watch the recording isn't going to work because Sage thinks the file is somewhere it's not). But as far as SJQ goes, the :MAPDIR option should work just fine. My recommended solution, however, is to get the paths right in wiz.bin since not doing so is going to cause you way more problems beyond SJQ. I would not use _MOVEREC task here because _MOVEREC must always copy the file somewhere and even if it's a copy to the same dir, it will do a read/write of the entire physical file (as opposed to a rename operation). You definitely don't want to use _MOVEREC for this scenario.
__________________
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... |
#325
|
|||
|
|||
Quote:
Path \\Server\SageTV Recordings appears to be picked up as \\Server\SageTV As I stated in your other post If the file can be played in sage then the paths must be correct in sage. Look in the details of the recording.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 01-08-2010 at 05:13 PM. |
#326
|
|||
|
|||
Slugger,
I tried the ruleset you suggested and I get an error in my logs, I looked at the rule and I cannot see the problem. if [IsObjMediaFile == true && $.IsTVFile{} == true && $.IsFileCurrentlyRecording{} == false && $.IsWatchedCompletely{} == false && FileExists != "%d%/%p%.edl" && $.GetAiringChannelNumber{} !% "499|[5-7][0-9][0-9]|8(?:[0-6][0-9]|7[0-6])"] { :PRIORITY 10 COMSKIP } Here is the log output 2010-01-08 09:02:51,749 ERROR [MediaFileQueueLoader]: Unexpected exception java.util.regex.PatternSyntaxException: Unclosed group near index 41 499|[5-7][0-9][0-9]|8(?:[0-6][0-9]|7[0-6] ^ at java.util.regex.Pattern.error(Unknown Source) at java.util.regex.Pattern.accept(Unknown Source) at java.util.regex.Pattern.group0(Unknown Source) at java.util.regex.Pattern.sequence(Unknown Source) at java.util.regex.Pattern.expr(Unknown Source) at java.util.regex.Pattern.compile(Unknown Source) at java.util.regex.Pattern. |
#327
|
|||
|
|||
Quote:
Code:
java.util.regex.PatternSyntaxException: Unclosed group near index 41 499|[5-7][0-9][0-9]|8(?:[0-6][0-9]|7[0-6] ^
__________________
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... |
#328
|
|||
|
|||
And now that I've taken a closer look at the regex I originally provided, I'd revise it to this:
499|[5-7]\\d{2}|8(?:[0-6]\\d|7[0-6]) But I believe either one will work and unless you're quite comfortable reading regex expressions, the original one I provided is probably easier to read and understand what it's trying to match against. Either way, you need to make sure the end parenthesis is included in your ruleset and you still need to test to make sure that it actually matches the numbers you're expecting it to since I still haven't actually tested it (and won't, since, hey, you need something fun to do, right?)
__________________
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... |
#329
|
|||
|
|||
I am trying to figure out if I can determine that a file is part of a playlist. But in doing so, I realized that I have no idea where to get the list of tests that I can perform on an object. The Guide points me to the SageTV API document, but that seems to say the MediaFileAPI only has a few Is commands. In fact the commands that are referenced in the Guide are not listed in the API docs as being methods no that object. I must be missing something.
Can somebody point me to the right list of queries we can make on an object? Thanks Greg |
#330
|
|||
|
|||
If the object is a MediaFile object (tv recording, import video, music, photo, DVD, BluRay) then you can call methods (that start with Is, Has, Get) from the following Sage APIs:
MediaFileAPI, ShowAPI, AiringAPI, ChannelAPI If the object is a SystemMessage object then you can call methods from the following APIs: SystemMessageAPI The last paragraph in this section explains it (though I'll admit I should probably highlight it a little better in the docs).
__________________
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... |
#331
|
|||
|
|||
Starting with SJQ v3.0.2, I have repackaged the application such that it relies on the commons-logging-1.1.1 jar files being installed to the SageTV/JARs folder. However, SageTV ships with commons-logging v1.0 (installed in the JARs folder as commons-logging.jar and commons-logging-api.jar). Therefore, to use SJQ v3.0.2 or newer, you must upgrade SageTV's commons-logging jar files. I have written a wiki doc that explains the steps to do it (quite simple, actually).
The need to do all of this arose from an SRE user who was encountering ClassLoader problems. Turns out commons-logging prior to v1.1 is the root cause of the problem along with the fact that I was packaging the core commons-logging libs in my war files and they were also shipped with Sage in the JARs folder, causing additional collisions. I have opened a bug report with SageTV asking them to upgrade the commons-logging packages themselves in a future release. Until that happens, you will need to manually upgrade the libraries. I have performed this upgrade myself and it has caused no ill effects (and the SRE user who hit the ClassLoader problems has also done it with no ill effects and it also got SRE working again). However, I feel obligated to warn people that changing these libs from the ones shipped with Sage could cause undesired results so if you are unsure about doing this then simply don't do it. If you choose not to then you cannot use SJQ v3.0.2 or newer as it depends on the upgraded jars being in the SageTV/JARs folder. SJQ snapshot 748 is now available. This snapshot contains no functional changes vs. v3.0.1. The only change is that it's repackaged to properly support the use of the commons-logging-1.1.1 jars in the SageTV/JARs folder.
__________________
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... |
#332
|
|||
|
|||
Quote:
I think for what I was thinking of doing you would have to add processing of the playlists and provide access to the playlist APIs and a way to iterate over the playlist contents. I will look for another way to do what I am trying to do. Thanks Greg |
#333
|
|||
|
|||
Write your own simple function to iterate through the playlist and determine if it is a member (something like IsPlayListMember(PlayListObject, Mediafile) ). Slugger would then need to implement support for custom java methods (i.e. - something of the form package.api.Method)... pretty please
__________________
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 |
#334
|
|||
|
|||
Quote:
As for gveres' original request, it doesn't appear that the PlaylistAPI even provides good search methods for determining if a media file is in a playlist. The only way I see being able to do it is to grab all the defined Playlists and iterate through them and look for the media file in question. I could add an internal SJQ test that does this. If that's all you need, it'd be simple enough to add a test called something like 'IsObjInAnyPlaylist'. If that's something that interests you then open an issue ticket. Won't take much effort to make it happen. I could also expose the PlaylistAPI via the $ object, but, as I say, I don't see much value in it as there really isn't a lot to be done with the API.
__________________
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... |
#335
|
|||
|
|||
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 |
#336
|
|||
|
|||
Server snapshot 752 now available:
Fix issue 106: TranscodeQueueSize test now accounts for pending _TRANSCODE tasks when calculating transcode queue size Task client snapshot 750 now available: Fix issue 105: sjqc.properties file now accepts sleep property. Set it to an integer, which tells the task client how often to poll the server for new work. Default, if not specified, is 300 seconds (5 mins), min value is 30. NOTE: Starting with SJQ server v3.0.2, you must upgrade SageTV's commons-logging jar files in order to use SJQ. This wiki doc explains how to do it.
__________________
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... |
#337
|
|||
|
|||
Quote:
|
#338
|
|||
|
|||
About 50% of my ShowAnalyzer jobs never come out of the active queue. They sit there and say Running although ShowAnalyzer is complete, commercial skips are fine and ShowAnalyzerEngine.exe is no longer open.
i would assume that my setup was incorrect, but 50% of the time the items do move to the Completed List. I've tried calling SageAnalyzerEngine.exe from SJQ and I've tried using a batch file with "start /i /wait SageAnalyzerEngine.exe" in it. Either way the result is the same. Any ideas?
__________________
Thanks to the developers of the following tools - without your hard work my TV wouldn't be the same! MeinMaui - SageMC ** stuckless - Phoenix & BMT ** PLUCKYHD - Sage Movie Wall ** razrsharpe - TVExplorer ** Slugger - SJQ, SRE and SageAlert ** bialio - Advanced Mini Guide |
#339
|
||||
|
||||
Make sure that you're not calling ShowAnalyzer until the recording is finished. It's currently having problems with analyzing a file that is still recording. Jere is aware of the issue and it is included in the current bug list for the product.
|
#340
|
|||
|
|||
Going to need logs... check the client logs from the GUI. Are there any exceptions logged back by SJQ? Check the SJQ server logs. Any exceptions there? If no exceptions there then you may need to turn on Jetty debug logging and look for exceptions in the Jetty logs (this would be necessary if it's a runtime exception being thrown such as an unexpected NullPointerException).
Jobs get stuck in RUNNING state if the task client fails to report back the completed status of the task. Usually this would be a result of the task client crashing. If so, check the wrapper.log file in the logs dir of where you installed the task client (assuming you installed the Windows service version, if not then hopefully you're logging the output of the regular task client somewhere). When a task gets stuck in running state do other tasks loaded into the queue afterwards continue to run? If so, then the task client may not be crashing. I need logs/exception dumps to determine these kinds of things. As you can see, the overwhelming theme here is that I need logs. Unless you can describe an exact step by step process for reproducing the error AND I can reproduce it locally, I need error logs and exception dumps to see where things are going wrong in order to fix them. EDIT: If it's indeed the problem described by toricred, then I'd still like to get a hold of some exception dumps b/c the task client should be able to handle a native process that crashes out.
__________________
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... |
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 |