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.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 03-07-2008, 12:22 PM
bluenote bluenote is offline
Sage Aficionado
 
Join Date: Nov 2004
Location: Vancouver, canada
Posts: 336
Hey slugger, thanks for all the great work!

I've run into another GUI issue (I can't help it .. when there's two choices available, I'd rather the program take care of syntax and file format for me).

In trying to add my action of "TRANS __TRANSCODE" "CustomH264-LowBRAVIAmp3" false
the gui complains the same way it complained for the java path, but since this is supposed to be internal, I can't imagine how I need to qualify this?

(I tried TRANS __TRANSCODE with and without quotes)
oops, I seem to have figured this one out, I think. no TRANS needed?

I have a couple other thoughts, I leave it to you to decide whether they might be useful if included. One is being able to check at evaluation time the full path (I'd like to be able to do certain things based on where the files are stored local or network for example).

Multiple actions would be a nice feature too -- for things like file renames, file flag setting, cleanup actions, etc. I imagine this after transcoding, for example, (probably if NOT using the internal transcode) but really it has many uses.

The other is, I think it may be useful to be able to say .. this rule is memoryless .. in that it will continue to execute actions (assuming criteria continue to evaluate true) until criteria change. ? I imagine this might be necessary with transcoding, sometimes my jobs get aborted? the only thing is, queuing up multiple actions if SJQ is executed in quick succession wouldn't be good. Maybe this is more trouble than it's worth.

Right now I'm trying to get my first evaluation run to work with the transcode action so I'll let you know how I make out. Thanks a lot for all the great work, I love the possibilities here.

Cory
Reply With Quote
  #22  
Old 03-07-2008, 12:58 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by cnovak View Post
Hey slugger, thanks for all the great work!

I've run into another GUI issue (I can't help it .. when there's two choices available, I'd rather the program take care of syntax and file format for me).

In trying to add my action of "TRANS __TRANSCODE" "CustomH264-LowBRAVIAmp3" false
the gui complains the same way it complained for the java path, but since this is supposed to be internal, I can't imagine how I need to qualify this?

(I tried TRANS __TRANSCODE with and without quotes)
oops, I seem to have figured this one out, I think. no TRANS needed?
Am I to understand that the __TRANSCODE exe does not work from the servlet and that you had to manually edit the ruleset in order to get it to work? I'd expect that to be the case since I know I don't check for this special exe name when verifying the path. Assuming this is the case, I'll open a bug and fix it for the next build.

Quote:
Originally Posted by cnovak View Post
I have a couple other thoughts, I leave it to you to decide whether they might be useful if included. One is being able to check at evaluation time the full path (I'd like to be able to do certain things based on where the files are stored local or network for example).
Something like a IsMediaFileLocal test?

Quote:
Originally Posted by cnovak View Post
Multiple actions would be a nice feature too -- for things like file renames, file flag setting, cleanup actions, etc. I imagine this after transcoding, for example, (probably if NOT using the internal transcode) but really it has many uses.
What I've been doing for times when I want multiple actions to be run is to create a batch file and use the batch file as the action.

Quote:
Originally Posted by cnovak View Post
The other is, I think it may be useful to be able to say .. this rule is memoryless .. in that it will continue to execute actions (assuming criteria continue to evaluate true) until criteria change. ? I imagine this might be necessary with transcoding, sometimes my jobs get aborted? the only thing is, queuing up multiple actions if SJQ is executed in quick succession wouldn't be good. Maybe this is more trouble than it's worth.
I've been debating on this 'feature' for awhile. I'm really considering just removing this restriction altogether and evaluating each rule/action combo for every media object regardless of if a previous action was run. This may or may not happen in the next build.

As for the next build, I decided to merge my db logging code into main after RC3 and so I want to stabilize that and provide all the log functions for purging logs, etc. And the state of the code is basically at a point of no return. I've invested too much time into it to back out the db logging code so now I've got to stabilize it. As I said previously, using SQLite as the db engine provides many challenges in concurrent programming that aren't an issue when using a typical client/server RDBMS. Everything was looking good until it was time to delete logs. I have some work to do in this area before I'm comfortable releasing another RC. If you don't mind being a guinea pig then PM me and I can send you builds directly as I make progress, but I probably won't post any new RC builds publicly for a week or two.

Quote:
Originally Posted by cnovak View Post
Right now I'm trying to get my first evaluation run to work with the transcode action so I'll let you know how I make out. Thanks a lot for all the great work, I love the possibilities here.

Cory
Do keep me posted on your progress.
Reply With Quote
  #23  
Old 03-07-2008, 01:23 PM
bluenote bluenote is offline
Sage Aficionado
 
Join Date: Nov 2004
Location: Vancouver, canada
Posts: 336
Quote:
Originally Posted by Slugger View Post
Am I to understand that the __TRANSCODE exe does not work from the servlet and that you had to manually edit the ruleset in order to get it to work? I'd expect that to be the case since I know I don't check for this special exe name when verifying the path. Assuming this is the case, I'll open a bug and fix it for the next build.
I did get it to work, it was just in the format __TRANSCODE , not TRANS __TRANSCODE that I saw on the webpage example ruleset file.
I had some problems with my custom conversion profile names, but I think I've got that squared away now.

Quote:
Originally Posted by Slugger View Post
Something like a IsMediaFileLocal test?
That would be damn awesome.


Quote:
Originally Posted by Slugger View Post
What I've been doing for times when I want multiple actions to be run is to create a batch file and use the batch file as the action.
That's what I will end up doing, too, but I think the transparency is a lot better if its all right there in the file. Troubleshooting command.com lines, and so forth the first time you do it is a pain in the ass if you just want to add one command.

Quote:
Originally Posted by Slugger View Post
I've been debating on this 'feature' for awhile. I'm really considering just removing this restriction altogether and evaluating each rule/action combo for every media object regardless of if a previous action was run. This may or may not happen in the next build.
I don't have any final conclusions about this one myself. I like the 'history' feature for sure (because having little text files serving as flags isn't that elegant) and in my case for example, keeping an EDL around so commercial skip doesn't run again, and another flag file to signal commercial cutting has been done, etc ... isn't elegant. It can be worked out though, possibly with renames because sage doesn't seem to care about the text name of a file, but rather just its ID. Implementing it without history does bring up the multiple instance issue though, in the case of jobs that take longer to complete than the time in between SJQ evaluations?

Quote:
Originally Posted by Slugger View Post
As for the next build, I decided to merge my db logging code into main after RC3 and so I want to stabilize that and provide all the log functions for purging logs, etc. And the state of the code is basically at a point of no return. I've invested too much time into it to back out the db logging code so now I've got to stabilize it. As I said previously, using SQLite as the db engine provides many challenges in concurrent programming that aren't an issue when using a typical client/server RDBMS. Everything was looking good until it was time to delete logs. I have some work to do in this area before I'm comfortable releasing another RC. If you don't mind being a guinea pig then PM me and I can send you builds directly as I make progress, but I probably won't post any new RC builds publicly for a week or two.
I don't mind testing if you don't mind what may be irregular progress. I have time today and tonight but I can't vouch for regularity after that. I'm certainly interested though, I'll send you a PM.

Do keep me posted on your progress.[/QUOTE]

Success, at least for one phase of my project so far. I now have +500 entries in my convert videos list !
(I wonder if this should be limited after some abritrary number though?) to consider the queue 'full' after say 10 - 15? and wait for the next execution?

thanks

Cory

Last edited by bluenote; 03-07-2008 at 01:26 PM.
Reply With Quote
  #24  
Old 03-14-2008, 11:01 AM
bluenote bluenote is offline
Sage Aficionado
 
Join Date: Nov 2004
Location: Vancouver, canada
Posts: 336
My installation is working pretty well, but necessarily uncomplete for now. How are you making out slugger?

Cory
Reply With Quote
  #25  
Old 03-14-2008, 11:44 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by cnovak View Post
My installation is working pretty well, but necessarily uncomplete for now. How are you making out slugger?

Cory
I was actually just putting the final touches on RC5. The current changelog is below (hopefully I'll post the build before 5pm today). You say "necessarily [in]complete for now", why's that? Does the current changelog for RC5 address those issues?

Code:
RC4 -> RC5
==========

FIXES:

* Stabilize database logging code
* Add ability to purge logs from servlet
* Remove unused tabs from servlet interface
* Move all plugin specific settings to database instead of using Sage properties

REMAINING ISSUES (for RC6/final release):

* Complete/enable log filtering (buttons are there now, but they do nothing)
* Add ability to have plugin (optionally) auto purge logs daily
* Add ability for plugin to (optionally) auto remove edl files for deleted recordings daily (remove [my personal] need for dirmon2 to be running anymore)

CANNOT FIX ISSUES:

* IsMediaFileLocal test: I don't see a reliable way to provide such a test using pure Java/Sage API and I don't want to get into writing JNI code or branching off into system calls to handle this.
Am I forgetting anything?
Reply With Quote
  #26  
Old 03-14-2008, 05:32 PM
bluenote bluenote is offline
Sage Aficionado
 
Join Date: Nov 2004
Location: Vancouver, canada
Posts: 336
Before I run everything together (comskip/SA launch, commercial cut, compression launch) I need to solve my remote storage issue -- because my compressions need to only happen on locally stored files.

I'm hoping you wouldn't find it too troublesome to give me a feature similar to the "filename", but instead be "filepath" upon which I could run a "contains" "doesnotcontain" or what have you much like other text fields you are evaluating? I think that will allow for much flexibility, to identify by drive letter, or by UNC, or anything else under the sun. I imagine I can use this to filter commands by the location of the particular file.

The other 'nice to have' I was hoping for was a secondary/multiple action line -- primarily for me to do things like rename/delete a flag file, move "cut" file from temporary workspace back to original storage, that sort of thing. As you pointed out I can do that in a batch file, but that necessitates having *all* commands inside which is a bit awkward (although, batch files do have the benefit of taking care of concurrency/blocking/contention problems because they execute serially). I haven't started to write these in hopes some kind of solution might be implemented, but I will if this isn't something that will make it in.

So far my server is choking down all compressions queued up, but Im still running dirmon for commercial detection and cutting , but in a semi-manual way because I don't have any flag maintenance batch files implemented, so files can enter the queue twice (for example).

I'll go ahead and start implementing the whole chain and see what happens and what the challenges are when it comes down to the bits and bolts. I'll keep you updated.

thanks

Cory
Reply With Quote
  #27  
Old 03-15-2008, 08:58 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by cnovak View Post
Before I run everything together (comskip/SA launch, commercial cut, compression launch) I need to solve my remote storage issue -- because my compressions need to only happen on locally stored files.

I'm hoping you wouldn't find it too troublesome to give me a feature similar to the "filename", but instead be "filepath" upon which I could run a "contains" "doesnotcontain" or what have you much like other text fields you are evaluating? I think that will allow for much flexibility, to identify by drive letter, or by UNC, or anything else under the sun. I imagine I can use this to filter commands by the location of the particular file.
The filename test will use the complete absolute path of the file in the next build so this should work as you're hoping (in RC5):

Code:
# Is this recording in the M: drive?
^ Filename: M:
From the servlet, this rule reads as 'Filename starts with M:'

Quote:
Originally Posted by cnovak View Post
The other 'nice to have' I was hoping for was a secondary/multiple action line -- primarily for me to do things like rename/delete a flag file, move "cut" file from temporary workspace back to original storage, that sort of thing. As you pointed out I can do that in a batch file, but that necessitates having *all* commands inside which is a bit awkward (although, batch files do have the benefit of taking care of concurrency/blocking/contention problems because they execute serially). I haven't started to write these in hopes some kind of solution might be implemented, but I will if this isn't something that will make it in.
Perhaps down the road, but this will not happen for the 1.1.0 final release. I'm still partial to using batch files for multiple actions myself so 'by down the road' you could interpret that as 'very unlikely to happen'.

Quote:
Originally Posted by cnovak View Post
So far my server is choking down all compressions queued up, but Im still running dirmon for commercial detection and cutting , but in a semi-manual way because I don't have any flag maintenance batch files implemented, so files can enter the queue twice (for example).
I'd modify the rule to limit recordings added to the trascode queue by using the Age test or some other means of restricting the number of recordings being added to the transcode queue. I have no plans on artificially restricting that number from SJQ.

Quote:
Originally Posted by cnovak View Post
I'll go ahead and start implementing the whole chain and see what happens and what the challenges are when it comes down to the bits and bolts. I'll keep you updated.

thanks

Cory
Again, keep me updated.
Reply With Quote
  #28  
Old 03-15-2008, 12:46 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
RC5 is now available.

Code:
v1.1.0RC4 -> v1.1.0RC5
======================

* Bug 48: Use complete, absolute path of file names in 'Filename' test
* Bug 54: Log arguments used in transcode action lines
* Bug 61: Store plugin settings in data store instead of using Sage properties
* Bug 62: Stabilize database logging; move back to native JDBC driver

Enhancements to the ongoing servlet development in this build:

* Add ability to purge logs from servlet
* Remove unused tabs from servlet interface
Reply With Quote
  #29  
Old 03-16-2008, 08:48 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
RC6 is now available.

v1.1.0RC5 -> v1.1.0RC6
======================

* Bug 53: Finalize DB logging issues
* Bug 57: Should quote everything in command lines printed to servlet
* Bug 59: Fix issue where some processes triggered could hang if they exhausted the OS output buffer
* Bug 63: Add new test: TranscodeQueueSize
* Bug 64: Log all stdout and stderr output from external commands to the database
* Bug 65: Fix synchronization issue in Logger class
Reply With Quote
  #30  
Old 03-19-2008, 01:29 PM
brzez brzez is offline
Sage User
 
Join Date: Feb 2008
Posts: 12
Feature request

I've been using SJQ for moving movie files from a local drive to a network drive and it works very well. One thing I'd like to use it for as well is to move normal tv recordings if or when the local drive gets filed to a certain point. It would e very useful to have SJQ check or be aware of how much space is on a local disk.

You might ask why not just have the recordings be done to the network drive?
Well, the reason for that is that I'm running a raid array on the network drive and the drives spin down when the array is not in use so it saves power that way. Unfortunately, spinup can take a while a times so recordings are not immediately accessible and that causes problems. Also when multiple recordings and playback are occurring to the network drive, the playback can stutter and suffer. So I've relegated the network drive for movies and playback only while my local drive is used for all recordings as well as playback of tv recordings.

Thanks..

-- John
Reply With Quote
  #31  
Old 03-21-2008, 10:58 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
RC7 is now available.

RC7 should basically be relabeled as the official 1.1.0 release in the next week or two as I'm not planning any more functional changes to the code. There are a few cosmetic changes I'll probably address, but nothing major. Of course, should something be brought to my attention then that's a different story.

Code:
v1.1.0RC6 -> v1.1.0RC7
======================

* Bug 49: Add link to docs from online rule editor
* Bug 50: Make action line text input larger on form
* Bug 55: Update online docs
* Bug 56: Add ability to run SJQ on demand (wake it up early and run it from servlet)
* Bug 66: Add live status message to servlet showing what SJQ is up to
* Bug 67: New test: IsSomethingRecording - returns true if Sage is currently recording anything
* Bug 68: New test: FreeSpacePercentage - allows checking the amount of free space available on the disks used for recording
Reply With Quote
  #32  
Old 04-11-2008, 07:22 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Is there anything in SJQ which prevents java 1.5 from being ok? Not an issue if it hasn't been tested, but don't want to bother if it won't work.

When I run 1.6 I have to restart SageTV frequently.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #33  
Old 04-12-2008, 09:35 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by bcjenkins View Post
Is there anything in SJQ which prevents java 1.5 from being ok? Not an issue if it hasn't been tested, but don't want to bother if it won't work.

When I run 1.6 I have to restart SageTV frequently.

B
Unfortunately, I use parts of the java.io.File API that are only available in
JRE6 so SJQ will only build and run under JRE6.
Reply With Quote
  #34  
Old 04-19-2008, 08:30 AM
perfessor101 perfessor101 is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: Vancouver, British Columbia, Canada
Posts: 246
Is there a way to have SJQ not launch a process if there will be a recording starting

Hello,
I was curious is there a way to have SJQ not launch a process if there will be a recording starting?

Ideally I would like to have SJQ not launch processes if recordings will be starting within a configurable amount of time ... I wasn't sure if I saw this option in the list (It may be lack of sleep).

Eventually it might be cool if SJQ had the ability to keep track of the time to complete a task (ETA / minutes per gigabyte on average?) so that it would launch jobs based on when it estimates there will be enough time to complete the task before a recording starts. (I think I'm dreaming already)

Thanks for your time,
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
Reply With Quote
  #35  
Old 04-20-2008, 05:15 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by perfessor101 View Post
Hello,
I was curious is there a way to have SJQ not launch a process if there will be a recording starting?

Ideally I would like to have SJQ not launch processes if recordings will be starting within a configurable amount of time ... I wasn't sure if I saw this option in the list (It may be lack of sleep).
This currently isn't in SJQ, but doesn't seem like a bad idea.

Quote:
Originally Posted by perfessor101 View Post
Eventually it might be cool if SJQ had the ability to keep track of the time to complete a task (ETA / minutes per gigabyte on average?) so that it would launch jobs based on when it estimates there will be enough time to complete the task before a recording starts. (I think I'm dreaming already)

Thanks for your time,
Bobby
This one seems like it would require a little more work and I don't really see this one surfacing to the top of my todo list in the immediate future. With that said, feel free to add it to the feature request list on the project page. I just moved my plugins (SJQ and SRE) into SourceForge so please go ahead and add a feature request so at least I'll be reminded of it. I'd actually appreciate adding both items into the feature tracker in SourceForge since these things tend to get lost otherwise as the threads get larger.
Reply With Quote
  #36  
Old 04-21-2008, 08:12 AM
perfessor101 perfessor101 is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: Vancouver, British Columbia, Canada
Posts: 246
The first one would definately help

The first one would definitely help ...

I checked my logs and found that most times showanalyzer or videoredo quick stream fix take less than 7 minutes for 1 hour of video

the second one I knew was sorta dreaming ... and if I had that Quad core right now ...


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
Reply With Quote
Reply


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
Any interest in a plugin to support/control the Sony XL1B firewire DVD changer? TerryMathews SageTV Customizations 74 07-21-2011 02:24 PM
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
STV Import: Weather Monitor deria SageTV Customizations 35 08-23-2006 08:15 PM
zaptoit plugin with SageTV 2.2.8 gregoir SageTV Canada 5 05-25-2006 11:23 PM
XMLTV Plugin not working with V4 mobby SageTV EPG Service 11 12-02-2005 12:45 PM


All times are GMT -6. The time now is 07:11 PM.


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