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
  #121  
Old 07-12-2008, 01:19 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by Slugger View Post
Hmm... I only use FF. Though this laptop still has FF2 (work requirement), are you using FF3 by any chance? Though I thought I tried FF3 once with SJQ on my desktop, but may not have.
yes Version 3
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
  #122  
Old 07-12-2008, 02:32 PM
perfessor101 perfessor101 is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: Vancouver, British Columbia, Canada
Posts: 246
Yes, Firefox 3 ... Does not update the rules.sjq file

Ouch all this headache over ...

Yes, Internet Explorer 7.0 works

I created a rules.sjq manually (with a rule in it) and it read it in and displayed it in Firefox on the SJQ page and now I know why it wouldn't let me update the rules. Firefox 3 ;-)

The manually entered rule is processing things quite nicely ...

I had tried IE on the SageTV server and it didn't work, but I'm not sure which version it is.
Installing SP3 on a fresh install of MCE 2005 is a gamble it seems from what I've been reading.

I'll be trying IE7 on my main machine. I only use that for windows updates though

my sjq.sqllite file is around 2MB's

With that missed line it may have been something other than the installers fault.

I'm building a new server (separate from the current) and I'm running in service mode on that machine using a HD-100 extender to watch things on and I only use SageTV in Program Mode/Client when I'm testing DVD Burning.
So all the changes I make are in the SageTV directory on that machine and to the Sage.properties file

Thanks for all the help everyone,
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
  #123  
Old 07-13-2008, 03:50 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Indeed, Firefox 3 is the culprit of the "unable to update ruleset" issue discussed above. This is a known issue with Firefox 3. The underlying issue is that the web server plugin doesn't like the default Content-Type header provided and simply ignores it as a valid HTTP POST request. My previous fix was to override the header with a value that the web server would recognize. IE and FF2 have no problems with the header override, but FF3 does not allow it. More details, with links to more info, are available in the bug I've opened for the issue in the SJQ project.

Until I can come up with something to work around it, the SJQ ruleset editor will not be able to save changes under Firefox 3, but clicking save will incorrectly tell you that the changes were successful (but they really aren't). Saving from Firefox 2 and IE does continue to work as expected.
  #124  
Old 07-31-2008, 04:20 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
Feature Request: Multiple jobs!

It would be killer if you could have a limit per rule that generated the job, that way comskip or SA could be run #clients+1 so all can have realtime commercial detection.

As it sits right now if you try for near realtime detection you must wait until the show has finished before comskipping something else. I have mine tied up on a 2 hour show right now.
  #125  
Old 07-31-2008, 04:45 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by CollinR View Post
Feature Request: Multiple jobs!

It would be killer if you could have a limit per rule that generated the job, that way comskip or SA could be run #clients+1 so all can have realtime commercial detection.

As it sits right now if you try for near realtime detection you must wait until the show has finished before comskipping something else. I have mine tied up on a 2 hour show right now.
As it turns out, I just upgraded my server recently to a quad core and was thinking the exact same thing.

This particular feature is a bit of an undertaking as it requires a complete architectural change in the way this thing works so it's probably not going to happen while the weather stays nice - my employer keeps me in front of my laptop more than my fair share during these summer months. But I will say this particular feature is coming at some point. If you wanted to add a feature request to the project on SF with your vision of how it would work then that'd be much appreciated.

Off the top of my head, I'm planning to turn SJQ into a client/server setup where you install SJQ on one machine to act as the server and you'll install a client package on each machine you want to be able to run jobs on. You then configure each client to say how many jobs it can run simultaneously, etc. and the server will assign jobs to clients as needed. In the case of a single physical machine, you'll just install the server and the client packages on the same machine. The other thought was to just keep SJQ as is and add the ability to have it start multiple jobs through a config option. This is much easier to implement, but one of the other things I'd like to do is to take advantage of all the hardware sitting on my LAN that could otherwise be transcoding or comm flagging, etc. To facilitate that wish, I'd have to go with the first idea (SJQ client/server setup). But nothing is decided on yet, so I'm quite interested to hear how others would like to see this kind of thing implemented (or if you don't think it'd be useful at all, etc.). I suspect it'll be early fall (late Sep/early Oct) before I dive into this one.
  #126  
Old 07-31-2008, 07:23 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Slugger,

I was able to run multiple Showanalyzer across clients by modifing my batch job. I have the server and 2 clients running SJQ and Showanalyzer. I create the edl during start of processing and the vprj after completion. If one of the clients sees a working file then it exits with a non zero code and continues to the next job. Till the next scan if the working file does not exist then it will find the VPRJ and just end and mark it as completed. If showanalyzer fails then it will not mark it as completed.

I just set the scans to run at end of recording 3, 5, 7 minute intervals.



IF EXIST "%~d1%~p1%~n1.working" exit 1
IF EXIST "%~d1%~p1%~n1.vprj" goto end
echo "Commercial Skip">>"%~d1%~p1%~n1.working"
cd "C:\Program Files\Dragon Global\ShowAnalyzer"
c:
start /w /low ShowAnalyzer.exe "%~f1"
del "%~d1%~p1%~n1.working"
IF NOT EXIST "%~d1%~p1%~n1.vprj" exit 1
:end
exit



###__ShowAnalyzer
$ Filename: .mpg
RunShowAnalyzer "s:\sageencode\SJQshowanalyzer.bat" "%f%"
__________________
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; 07-31-2008 at 07:39 PM.
  #127  
Old 07-31-2008, 09:33 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by nyplayer View Post
Slugger,

I was able to run multiple Showanalyzer across clients by modifing my batch job. I have the server and 2 clients running SJQ and Showanalyzer. I create the edl during start of processing and the vprj after completion. If one of the clients sees a working file then it exits with a non zero code and continues to the next job. Till the next scan if the working file does not exist then it will find the VPRJ and just end and mark it as completed. If showanalyzer fails then it will not mark it as completed.

I just set the scans to run at end of recording 3, 5, 7 minute intervals.



IF EXIST "%~d1%~p1%~n1.working" exit 1
IF EXIST "%~d1%~p1%~n1.vprj" goto end
echo "Commercial Skip">>"%~d1%~p1%~n1.working"
cd "C:\Program Files\Dragon Global\ShowAnalyzer"
c:
start /w /low ShowAnalyzer.exe "%~f1"
del "%~d1%~p1%~n1.working"
IF NOT EXIST "%~d1%~p1%~n1.vprj" exit 1
:end
exit



###__ShowAnalyzer
$ Filename: .mpg
RunShowAnalyzer "s:\sageencode\SJQshowanalyzer.bat" "%f%"
That's a pretty smart way of doing it. Certainly the best, maybe only, way to have multiple machines able to do jobs given the current constraints of how SJQ works. The idea of having 3 SJQ databases on three different machines and not knowing where to look for log output of the actual exe run really makes me want to eliminate the need for this method.

Under my proposed client/server model, you'd only have to install the SJQ "server" package once as a plugin with SageTV (since the "server" needs to be able to access the Sage database, etc.). Then you'd install the SJQ "client" package on each machine you want to run jobs - these machines won't have to have Sage on them nor will the clients have to be installed as Sage plugins - they'd be independent clients that talk to the SJQ "server". One "server" means just one SJQ database file, which means easy management of tracking which jobs have been done, which need to be done, etc. Of course, clients would need to have the media content available via a mapped drive, etc. if the command to be run were going to work on the actual media file.

It's an ambitious project, but one I want to pursue since shortly after upgrading to my quad core I caught myself saying, "why am I not comm flagging all recordings in real time?" Then as I thought about it more I thought why am I not using the other hardware on my LAN to offset other Sage tasks like transcoding, etc.?
  #128  
Old 08-03-2008, 12:05 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Slugger View Post
Indeed, Firefox 3 is the culprit of the "unable to update ruleset" issue discussed above. This is a known issue with Firefox 3. The underlying issue is that the web server plugin doesn't like the default Content-Type header provided and simply ignores it as a valid HTTP POST request. My previous fix was to override the header with a value that the web server would recognize. IE and FF2 have no problems with the header override, but FF3 does not allow it. More details, with links to more info, are available in the bug I've opened for the issue in the SJQ project.

Until I can come up with something to work around it, the SJQ ruleset editor will not be able to save changes under Firefox 3, but clicking save will incorrectly tell you that the changes were successful (but they really aren't). Saving from Firefox 2 and IE does continue to work as expected.
After upgrading to FF3 on my laptop, it was time to fix this bug once and for all. Unfortunately, the fix had to be done on the web server plugin side. I have built a version of the web server plugin that contains two fixes:

1) Allow post requests from Firefox 3 (i.e. the bug referenced in the quote above). This will allow the SJQ ruleset editor to properly save changes to disk from FF3.

2) Increase the maximum size of a post request from 10,000 bytes to 1,000,000. This fixes an issue reported some time ago where if you have large enough rulesets then you wouldn't be able to save them via the servlet as you'd hit this limit. 1 million bytes should be more than enough for even the largest of ruleset files.

As I said, I've built my own version of the web server that contains these fixes and I've installed it and am running it. Everything seems to be fine, but I only did limited testing. I've also submitted my changes as a patch to the web server project on SF and my hope is that they'll be applied and the next official release of the web server will include these fixes.

I am not posting my web server build publically as I do not want to get into the business of providing "special" releases of others' plugins, however these particular fixes greatly impact the usability of SJQ so if you require this patched web server please PM me and I'll send you the installer for my patched version "v2.22ddb01".
  #129  
Old 08-03-2008, 04:28 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
I am having some trouble with a rule, anyone wanna show me the fix?


Code:
Processing media object: 'Color Correction'
	Checking if media object '2828284' has been processed by action type 'COMMFLAG'
	'E:\TV\ColorCorrection-TheRedZone-2773228-0.edl' does exist; checking next segment...
	All segments passed
	Rule processing stopped: Rule 0.2 returned false
	Checking if media object '2828284' has been processed by action type 'TRANS'
	'E:\TV/ColorCorrection-TheRedZone-2773228-0.edl' does exist; checking next segment...
	All segments passed
	Rule processing stopped: Rule 1.2 returned false
Processing media object: 'Cities of the Underworld'
	Checking if media object '2832385' has been processed by action type 'COMMFLAG'
	Rule processing stopped: Rule 0.1 returned false
	Checking if media object '2832385' has been processed by action type 'TRANS'
	'E:\TV/CitiesoftheUnderworld-BeneathVesuvius-2775612-0.edl' does not exist; test failed.
	Rule processing stopped: Rule 1.1 returned false
Processing media object: 'Trucks!'
	Checking if media object '2832386' has been processed by action type 'COMMFLAG'
	'H:\\Trucks-BodyBagPart1-2772163-0.edl' does exist; checking next segment...
	All segments passed
	Rule processing stopped: Rule 0.2 returned false
	Checking if media object '2832386' has been processed by action type 'TRANS'
	'H:\/Trucks-BodyBagPart1-2772163-0.edl' does exist; checking next segment...
	All segments passed
	Rule processing stopped: Rule 1.2 returned false
EDIT: Oh and the Comskip side appears to work but it never transcodes.
Attached Images
File Type: jpg SJQ-Rule.jpg (65.4 KB, 276 views)
File Type: jpg SJQ-Rule-2.jpg (64.8 KB, 376 views)

Last edited by CollinR; 08-03-2008 at 05:00 PM.
  #130  
Old 08-03-2008, 04:54 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
CollinR,

I do not see your transcode rule all I see is the Comskip. Maybe you posted Comskip 2x? Rule 2 pic is also comskip.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
  #131  
Old 08-03-2008, 05:00 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
TY and Fixed.
  #132  
Old 08-03-2008, 05:07 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
In the Compress SD the fileexists edl I believe has a / instead of a \ .

Should be %d%\%b%.edl aslo check the filename mpg
__________________
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; 08-03-2008 at 05:10 PM.
  #133  
Old 08-03-2008, 08:46 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
An embarassing oversight however that didn't fix it either. The logs still say Rule 1.2 returned false but I have no clue what rule 1.2 is.
  #134  
Old 08-03-2008, 09:25 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Colin

On your check for mpg. You should change that to filename ends with .mpg... that is the extension plus the period before it.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
  #135  
Old 08-03-2008, 11:36 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by CollinR View Post
An embarassing oversight however that didn't fix it either. The logs still say Rule 1.2 returned false but I have no clue what rule 1.2 is.
All of these messages are zero-indexed, so Rule 1.2 means second rule, third test, which is the "Filename equals" test. I had to take a quick look at the source to confirm, but as I suspected the Filename test does not do the media variable expansion. As nyplayer suggested, you'll want to change this test to "ends with .mpg", which should accomplish the same thing.
  #136  
Old 08-04-2008, 10:51 AM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
That fixed it, thanks guys.
  #137  
Old 08-09-2008, 05:01 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
Well that didn't quite fix everything, it is not replacing the original file even though the command ends with true.

Should this also be in quotes?
Should it have it's own quotes?
Should it be True rather then true?

http://forums.sagetv.com/forums/atta...2&d=1217804416
  #138  
Old 08-09-2008, 05:37 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
True means to keep the original. False means to replace the original.

Sample from online Help.

Here is an example rule that triggers a transcode job in the SageTV core:

= IsTV: true
= FileExists: %d%\%b%.edl
TRANS __TRANSCODE "MPEG4-High Quality AVI" true
This example will transcode all tv recordings that have an edl file. Since true was specified on the command line the source file will be kept by SageTV after transcoding.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
  #139  
Old 08-09-2008, 06:01 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
Geeze I'm on a roll with this plugin. I think I'll shut up until I can help someone else.

Once I get this lined out as I like it I'll post screen caps from the web interface so others have it a cakewalk for common functionality.
  #140  
Old 08-22-2008, 02:39 AM
antplugger antplugger is offline
Sage Advanced User
 
Join Date: Sep 2005
Posts: 167
Install instructions link dead.

Could anyone please put the install instructions in this thread ?

Thanks
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 02:02 PM.


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