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
  #821  
Old 07-20-2009, 10:10 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Media vars have two percent signs in them:

%f% (not %f)
__________________
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...
  #822  
Old 07-20-2009, 11:51 PM
zetronboy zetronboy is offline
Sage User
 
Join Date: Aug 2007
Location: Seattle area
Posts: 31
Limit active queue

Is there a way to limit the number of items put in the Active QUeue? If it puts 20 shows in the queue at 3pm and it takes 3 hours to complete the tasks it will run into prime time. I would rather just insert a few items in the queue and reevealuate the recordings when these are done or in a few hours when the QueueLoader runs again.
__________________
SageTV 6.6.2 and SageMC on WinXP
2Gb Ram, Athlon 1800+
AverMedia A180, Duet
SJQ, MovieTimes, NetFlilx plugins
  #823  
Old 07-21-2009, 07:12 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by zetronboy View Post
Is there a way to limit the number of items put in the Active QUeue? If it puts 20 shows in the queue at 3pm and it takes 3 hours to complete the tasks it will run into prime time. I would rather just insert a few items in the queue and reevealuate the recordings when these are done or in a few hours when the QueueLoader runs again.
Currently there is not and I don't think there will be such an option. Alternatively, there is an open issue ticket asking for the ability to prevent clients from polling for work during certain times. Such a feature should accomplish the same thing. I'd recommend starring that issue at Google Code for my review come fall. As I've mentioned earlier, I tend to keep my plugins in a feature freeze during the summer (always something better to do than Java coding at this time of the year) so this particular issue ticket will probably be addressed in the fall.
__________________
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...
  #824  
Old 07-21-2009, 06:42 PM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
The saga continues.. I thank everyone for their help.. Seems to be a permissions error.. As I can see now that SJQ is sending the right file locations.. Sure enough if I do start and run and past in the executing command line it works like a champ.

I did check the permissions on the server, I set the drive with the TV shows with full permissions for both guest and everyone and had it propagate to the subfolder with the shows.. no luck.

When SJQ runs comeskip does comskip run as the user that in services for SJQ? I am trying now to assign that to a real that would have have permission on the server but I think setting full control to guest on the server means everyone should have permissions

2009/07/21 20:31:24.531 Tue Jul 21 20:31:32 EDT 2009: Starting task with priority 1/1/10
2009/07/21 20:31:24.546 Executing command line: C:\comskip\comskip.exe "\\cube\VShare\Shows\MammaMia-845735-0.ts"
2009/07/21 20:31:24.640 Comskip 0.80.019, made using:
2009/07/21 20:31:24.640 mpeg2dec-0.4.0 - by Michel Lespinasse <walken@zoy.org> and Aaron Holtzman
2009/07/21 20:31:24.640 Permission denied - could not open file \\cube\VShare\Shows\MammaMia-845735-0.ts
2009/07/21 20:31:24.750 The commandline used was:
2009/07/21 20:31:24.750 C:\comskip\comskip.exe \\cube\VShare\Shows\MammaMia-845735-0.ts
2009/07/21 20:31:24.750
2009/07/21 20:31:24.750 Opening \\cube\VShare\Shows\MammaMia-845735-0.ts

Last edited by personalt; 07-21-2009 at 06:45 PM.
  #825  
Old 07-21-2009, 06:47 PM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
I got it!!!!! Seems that setting the user that SJQ service uses fixed the problem.. I set it to a user that has permissions on the server and it fired up.

Thanks everyone...
  #826  
Old 07-22-2009, 08:18 PM
kha kha is offline
Sage Advanced User
 
Join Date: Dec 2005
Posts: 100
Rescheduling recordings

Hi,

I am running Sage server on a computer that is being shut down every night, say at 4 a.m. It then restarts at 6 a.m. I would like to make sure that no programs are scheduled to be recorded between 4 a.m. and 6 a.m. Can I use SJQ for this purpose?

Can SJQ reschedule any shows that are scheduled to record during a particular time slot. I can see that SJQ can reshedule the show if the file exists. Howvere, I would like to reschedule the show before it even gets recorded.


Best Regards,
Michael.
  #827  
Old 07-22-2009, 10:21 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by kha View Post
Hi,

I am running Sage server on a computer that is being shut down every night, say at 4 a.m. It then restarts at 6 a.m. I would like to make sure that no programs are scheduled to be recorded between 4 a.m. and 6 a.m. Can I use SJQ for this purpose?

Can SJQ reschedule any shows that are scheduled to record during a particular time slot. I can see that SJQ can reshedule the show if the file exists. Howvere, I would like to reschedule the show before it even gets recorded.


Best Regards,
Michael.
Currently, no. SJQ only works with media files on disk. However, between this and the open issue ticket to support processing of system messages, I have a funny feeling that the ability to process up coming recordings (along with many other types of Sage objects) will be coming in a future release. I would ask that you open an issue ticket for this particular request because by the time I get around to implementing new features I may forget about this one. Just so you're aware, SJQ is in a feature freeze for the summer - I won't be tackling feature requests again until fall so though I'd expect this type of thing to be added, it won't be much before October.
__________________
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...
  #828  
Old 07-23-2009, 07:50 AM
kha kha is offline
Sage Advanced User
 
Join Date: Dec 2005
Posts: 100
Quote:
Originally Posted by Slugger View Post
Currently, no. SJQ only works with media files on disk. However, between this and the open issue ticket to support processing of system messages, I have a funny feeling that the ability to process up coming recordings (along with many other types of Sage objects) will be coming in a future release. I would ask that you open an issue ticket for this particular request because by the time I get around to implementing new features I may forget about this one. Just so you're aware, SJQ is in a feature freeze for the summer - I won't be tackling feature requests again until fall so though I'd expect this type of thing to be added, it won't be much before October.
Thank you very much!
Michael
  #829  
Old 07-24-2009, 09:01 AM
madas madas is offline
Sage Advanced User
 
Join Date: Jun 2008
Posts: 83
Any ideas how I would do this?

if [IsScheduledRecording == "true" && IsHD == "false" && Filename =$ ".mp4" && FileExists == "%d%\\%p%.edl"] {
:TRANSCODEOPTS "iPhone-Widescreen" "true" "c:\\media\\iPhone-transcode\\"
_TRANSCODE
}

if [IsScheduledRecording == "true" && IsHD == "false" && Filename !$ ".mp4" && FileExists == "%d%\\%p%.edl"] {
:TRANSCODEOPTS "AppleTV-High Quality" "false"
_TRANSCODE
}

I want to transcode it once to a particular directory, keep the original. Then transcode it again to a different format and remove the original.

Currently it seems to just do the second, and not the first action.

Any ideas?

Thanks
  #830  
Old 07-24-2009, 09:24 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by madas View Post
Any ideas how I would do this?

if [IsScheduledRecording == "true" && IsHD == "false" && Filename =$ ".mp4" && FileExists == "%d%\\%p%.edl"] {
:TRANSCODEOPTS "iPhone-Widescreen" "true" "c:\\media\\iPhone-transcode\\"
_TRANSCODE
}

if [IsScheduledRecording == "true" && IsHD == "false" && Filename !$ ".mp4" && FileExists == "%d%\\%p%.edl"] {
:TRANSCODEOPTS "AppleTV-High Quality" "false"
_TRANSCODE
}

I want to transcode it once to a particular directory, keep the original. Then transcode it again to a different format and remove the original.

Currently it seems to just do the second, and not the first action.

Any ideas?

Thanks
SJQ won't process the same task twice for the same file (and _TRANSCODE is the task in both rules so it'll never run both blocks on the same file) so you'll have to do it in one task. If possible, try to setup both transcode jobs in the same task definition - but I'm not even sure if that'll work since I still think the code will recognize it as trying to register the same task more than once on the same file. You're best bet is to use an external transcoder and setup tasks with different names.
__________________
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...
  #831  
Old 07-24-2009, 11:41 AM
madas madas is offline
Sage Advanced User
 
Join Date: Jun 2008
Posts: 83
ah, let me try it in a single task. Really wanted to avoid an external processor if possible
  #832  
Old 07-25-2009, 04:16 AM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
If I change a rule do I need to restart sage, restart the PC, do nothing? I have been finding a few of my changes not taking place until I do a full reboot. Is that right?

Last edited by personalt; 07-25-2009 at 05:27 AM.
  #833  
Old 07-25-2009, 06:19 AM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
How do I start totally from scratch? I stopped sage rebooted, removed the sqlite db, started sage and my old rules were still there

I am in this place where I cant save my settings(there are no settings when I load the settings page and I cant click the save button on that page). I figured it is time to start from scratch.

what else do I need to clear but the sqlitedb?

I think I might actually have some sort of cache issue.. If I load the webage from one machine I see no rules but on another when I load the webpage I see my old rules.
  #834  
Old 07-25-2009, 08:28 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Everything's stored in the sjq.sqlite database file. You delete that file and you'll be starting from scratch. But if you really feel the need to do that then you need to stop SJQ before deleting the db file. Do that by moving the context file for sjq out of SageTV\jetty\contexts\ then delete the db file then put the context file back in that dir to restart SJQ.
__________________
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...
  #835  
Old 07-25-2009, 08:30 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by personalt View Post
If I change a rule do I need to restart sage, restart the PC, do nothing? I have been finding a few of my changes not taking place until I do a full reboot. Is that right?
Nope. A rule change takes effect on the next run of the QueueLoader. You definitely don't need to restart/reboot anything for rule changes to take effect.
__________________
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...
  #836  
Old 07-25-2009, 08:44 AM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
I tried it as mentioned below. It looks like everything is cleared however when I go to the settings page there is no save button. I was looking at the DB, in the settings table there is only a password and schema record.

Do the records for these other settings get saved in that table? Are the rows/entries for those settings supposed to be created when the database is created?

my core issue is I cant save the settings page(the button is blanked out) but was also trying to get a better understanding on how you store this data..

thanks....




Quote:
Originally Posted by Slugger View Post
Everything's stored in the sjq.sqlite database file. You delete that file and you'll be starting from scratch. But if you really feel the need to do that then you need to stop SJQ before deleting the db file. Do that by moving the context file for sjq out of SageTV\jetty\contexts\ then delete the db file then put the context file back in that dir to restart SJQ.
  #837  
Old 07-25-2009, 08:51 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by personalt View Post
I tried it as mentioned below. It looks like everything is cleared however when I go to the settings page there is no save button. I was looking at the DB, in the settings table there is only a password and schema record.

Do the records for these other settings get saved in that table? Are the rows/entries for those settings supposed to be created when the database is created?

my core issue is I cant save the settings page(the button is blanked out) but was also trying to get a better understanding on how you store this data..

thanks....
Until you set the settings a first time, the app just uses default values, which is why you see nothing in the database. If the save button is disabled then the browser is either having a problem communicating with the server or there is a bug preventing the page from fully loading. Is the browser throwing any javascript errors when you attempt to load the settings page? Any exceptions logged in the server logs?
__________________
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...
  #838  
Old 07-26-2009, 09:29 PM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
there is a javascript error

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Mon, 27 Jul 2009 03:23:26 UTC

Message: Exception thrown and not caught
Line: 1680
Char: 170
Code: 0
URI: http://192.168.1.100:8081/sjq/5643C1...48F.cache.html

if I load this from the server I see this message, if I load it from anothe machine I seem to get a stale/cached copy of the same page.
  #839  
Old 07-26-2009, 09:42 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
No exceptions in the SJQ logs? JS errors alone aren't very useful since it refers to the generated JS code from GWT. If there are no other errors being logged by SJQ then I can create a debug build that will use generate JS that is easier for me to debug. My guess is that there is a bug with the default values being used by SJQ, but without some meaningful debug output it's only a guess. What build are you running?
__________________
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...
  #840  
Old 07-26-2009, 09:49 PM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
I am running 488. Nothing in the logs other then entries for FileCleaner and LogCleaner start/finish.

I cant turn on debug mode without saving the settings so I assume I am in a catch 22..

if you can create another build I will install and see what happens... 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.