SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1341  
Old 12-20-2012, 08:24 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by wayner View Post
D I follow the instructions from here https://code.google.com/p/sagetv-add...ModifyDatabase
Correct.
__________________
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...
Reply With Quote
  #1342  
Old 12-20-2012, 10:00 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
That's not looking so good either. When I try to connect to the HS database I get this message after a while - I get to the login screen and put in admin for user and pwd and then I get:

Code:
Connection is broken: "connect timed out" [90067-145] 90067/90067 (Help)
Here is the error code when I try to access teh queue from the Web UI (after a few minutes of the spinning circle of death):

Code:
Problem accessing /sage/sjq4.groovy. Reason: 

    GroovyServlet Error:  script: 'sjq4.groovy':  Script processing failed.
Cannot invoke method getQueue() on null objectorg.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)


--------------------------------------------------------------------------------
Powered by Jetty://
It looks like I will be reinstalling the image from a week or so ago - that's no big whoop as I have done it several times lately.

I may have actually deleted the lobs.db files while SageTVService was running so that probably didn't help either.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #1343  
Old 12-20-2012, 10:12 PM
gdippel gdippel is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Bayside, New York
Posts: 301
I'm suddenly getting errors trying to run comskip, the error log is attached. I haven't changed anything on my system, but obviously something is fubar. I've tried rebooting, but still no luck. All plugins are up to date. Any suggestions?
Attached Images
File Type: jpg SJQ4 Log.JPG (158.1 KB, 167 views)
Reply With Quote
  #1344  
Old 12-20-2012, 10:42 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by wayner View Post
That's not looking so good either. When I try to connect to the HS database I get this message after a while - I get to the login screen and put in admin for user and pwd and then I get:

Code:
Connection is broken: "connect timed out" [90067-145] 90067/90067 (Help)
Here is the error code when I try to access teh queue from the Web UI (after a few minutes of the spinning circle of death):

Code:
Problem accessing /sage/sjq4.groovy. Reason: 

    GroovyServlet Error:  script: 'sjq4.groovy':  Script processing failed.
Cannot invoke method getQueue() on null objectorg.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)


--------------------------------------------------------------------------------
Powered by Jetty://
It looks like I will be reinstalling the image from a week or so ago - that's no big whoop as I have done it several times lately.

I may have actually deleted the lobs.db files while SageTVService was running so that probably didn't help either.
Connection timed out = H2 plugin is not running, crashed, or is otherwise messed up. Roll back system image might be the best bet at this point.
__________________
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...
Reply With Quote
  #1345  
Old 12-20-2012, 10:43 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by gdippel View Post
I'm suddenly getting errors trying to run comskip, the error log is attached. I haven't changed anything on my system, but obviously something is fubar. I've tried rebooting, but still no luck. All plugins are up to date. Any suggestions?
That error means the sagex-services plugin is not running (or not running properly). That's what needs to be fixed.
__________________
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...
Reply With Quote
  #1346  
Old 12-21-2012, 05:19 AM
gdippel gdippel is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Bayside, New York
Posts: 301
Quote:
Originally Posted by Slugger View Post
That error means the sagex-services plugin is not running (or not running properly). That's what needs to be fixed.
Thanks Slugger. I re-set the configuration of that plugin and it seems to be working now.
Reply With Quote
  #1347  
Old 12-31-2012, 04:14 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by Slugger View Post
As promised, here is the Groovy IDE I use when writing/testing Groovy scripts for use with SJQv4:

http://code.google.com/p/sagetv-addons/downloads/list

Grab the latest sagegroovy-*-x.y.z.zip for your platform (currently only Windows 32bit available).
Slugger,
Over the holidays I finally made the plunge to sjq v4 and am working on getting it setup properly. Actually i reinstalled my whole sage environment, upgraded the operating system to win7, and all of the plugins i use got upgraded to the latest as well... needless to say things are progressing slowly Anyway i'm trying to get sagegroovy setup so i can debug my scripts more easily and i've run into a snag. I downloaded the latest sagegroovy from the project site (v4.0.0.1805). When i attempt to run sagegroovy it complains that the registered email (which is correct) does not match the license file. The license file exists on my server and sjq / sagealert show as registered.

I am running sagegroovy remotely. Any ideas... Does something special need to be done with the license file?

Code:
F:\Docs\SageTV\SageGroovy\bin>sagegroovy.exe -s 192.168.2.100
INFO - Configured Logging for: sagex-api using file: sagex-api.log4j.properties
LOG4J: Configured Logging for: sagex-api using file: sagex-api.log4j.properties
sagex-services manually set to 'rmi://192.168.2.100:1098'
INFO - Received request from 'SageGroovy' for plugin 'SageGroovy'
WARN - SageGroovy: The registered email ['correct_email_address'] does not match th
e email in the license file!
You must have a sagetv-addons license to use this application!  See http://code.
google.com/p/sagetv-addons/wiki/DonationsFaq
License server response: The registered email ['correct_email_address'] does not ma
tch the email in the license file!

F:\Docs\SageTV\SageGroovy\bin>
__________________
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
Reply With Quote
  #1348  
Old 12-31-2012, 04:17 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Copy the salicense.jar file from SageTV\JARs\ into the lib dir of your SageGroovy installation. That should fix things up. It appears the wrong jar was packaged in the last build of SageGroovy.
__________________
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...
Reply With Quote
  #1349  
Old 12-31-2012, 04:48 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
awesome thanks
__________________
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
Reply With Quote
  #1350  
Old 01-08-2013, 04:05 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
This seems like stupid question and probably not the correct thread to ask... but anyway...

what is the proper procedure to manually transcode a file (using handbrake)
and put it back in the sage recording library??

for some reason I thought all you had to do was have the file name the same with the different extension and replace it with the original file and rescan the library and all would be good? That's not working for me!

If I just replace the file in the recording directory sage doesn't see it.
If I put the new file with the different extension in a import directory, sage finds it and marks it as archived. I can unarchive but I'd like the file in the recording directory! Am I missing a step?

Oh.. and I will use a groovy script to automate once the manual process is done! :-)

Jim
Reply With Quote
  #1351  
Old 01-08-2013, 05:02 PM
bikesquid's Avatar
bikesquid bikesquid is offline
Sage Aficionado
 
Join Date: Jan 2010
Location: California's North Coast
Posts: 392
Quote:
Originally Posted by jbuszkie View Post
This seems like stupid question and probably not the correct thread to ask... but anyway...

what is the proper procedure to manually transcode a file (using handbrake)
and put it back in the sage recording library??

for some reason I thought all you had to do was have the file name the same with the different extension and replace it with the original file and rescan the library and all would be good? That's not working for me!

If I just replace the file in the recording directory sage doesn't see it.
If I put the new file with the different extension in a import directory, sage finds it and marks it as archived. I can unarchive but I'd like the file in the recording directory! Am I missing a step?

Oh.. and I will use a groovy script to automate once the manual process is done! :-)

Jim
Don't have time to find the posts right now, but about a year ago (in this thread) slugger helped me (mostly wrote) the code you need... if you search back you'll find it I'm sure. the basics are you need to relink the recordings id# to the new file. Good luck.
Reply With Quote
  #1352  
Old 01-08-2013, 05:21 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
So I CAN'T do this manually? I need to use some API's??

And I never saw the final script posted. Only snippits. Could you share? (or did I miss it?)

And thanks BTW...

Jim
Reply With Quote
  #1353  
Old 01-08-2013, 05:34 PM
bikesquid's Avatar
bikesquid bikesquid is offline
Sage Aficionado
 
Join Date: Jan 2010
Location: California's North Coast
Posts: 392
don't understand what you mean by 'manual'... sjq is all about automatic/script based activities...

check this thread for the scripts I'm using...:http://forums.sagetv.com/forums/showthread.php?t=55908

there are others floating around too, and probably more efficient as I'm definately not a programmer
Reply With Quote
  #1354  
Old 01-08-2013, 06:11 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I have a process that reencodes Kids' shows with Handbrake but I don't leave them in the TV folder, I move them to folders named with the Show Title. If you want I can post that code. This works quite well with a few minor issues - with the odd show the original file is still listed in Sage but when you try to play it you get a file doesn't exist error. This is depite the fact that Sage has rescanned imported media. I believe a reboot of the service can fix this.

I have some other problems with the handrake encoded files, but I won't post those issues here.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #1355  
Old 01-08-2013, 07:17 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jbuszkie View Post
This seems like stupid question and probably not the correct thread to ask... but anyway...

what is the proper procedure to manually transcode a file (using handbrake)
and put it back in the sage recording library??

for some reason I thought all you had to do was have the file name the same with the different extension and replace it with the original file and rescan the library and all would be good? That's not working for me!

If I just replace the file in the recording directory sage doesn't see it.
If I put the new file with the different extension in a import directory, sage finds it and marks it as archived. I can unarchive but I'd like the file in the recording directory! Am I missing a step?

Oh.. and I will use a groovy script to automate once the manual process is done! :-)

Jim
I just replace them with the same file name and the new extension a mediascan sees the new file in Sage I do not know why it does not work for you. Of course I make sure to touch the file with the correct timestamp

Batch Script below
Code:
move "%~f1" "%~d1%~p1"
set checkuse=%ERRORLEVEL%
if %checkuse% NEQ 0 exit 1
if not exist "c:\temp" md "c:\temp"
set shrinklevel=1
if exist "%~d1%~p1tmpEncode\%~n1.encoded.tmp" del "%~d1%~p1tmpEncode\%~n1.encoded.tmp"
if exist "%~d1%~p1tmpEncode\%~n1.tmp" set shrinklevel=0
if exist "%~d1%~p1tmpEncode\%~n1.tmp" goto goodtogo
SET HBPATH=C:\SJQNEW\HandBrake64
SET TOOLSPATH=C:\SJQNEW\tools
SET WGETPATH=C:\SJQNEW\wget

if not exist "%~d1%~p1tmpEncode" md "%~d1%~p1tmpEncode"


CD "%HBPATH%"
c:
start "MediaShrink" /B /BELOWNORMAL /WAIT HandBrakeCLI.exe -i "%~f1" -o "%~d1%~p1tmpEncode\%~n1.encoded.tmp"  -f mp4 -w 640 --loose-anamorphic -r 29.97  -e x264 -q 20 --vfr  -E faac -B 160 -6 dpl2 -R Auto -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 -x ref=1:weightp=1:subq=2:rc-lookahead=10:trellis=0:8x8dct=0 --verbose=1 > "%~d1%~p1handbrake.log" 2>&1
set shrinklevel=%ERRORLEVEL%
if %shrinklevel% NEQ 0 DEL "%~d1%~p1tmpEncode\%~n1.encoded.tmp"
if %shrinklevel% NEQ 0 dir "%~f1">>"%~d1%~p1%~n1.check"
if %shrinklevel% NEQ 0 EXIT 1
if %shrinklevel% EQU 0 if exist "%~d1%~p1tmpEncode\%~n1.encoded.tmp" move "%~d1%~p1tmpEncode\%~n1.encoded.tmp" "%~d1%~p1tmpEncode\%~n1.tmp"
:goodtogo
if %shrinklevel% EQU 0 if exist "%~d1%~p1tmpEncode\%~n1.tmp" "%TOOLSPATH%\touch.exe"  -r "%~f1" "%~d1%~p1tmpEncode\%~n1.tmp"
if %shrinklevel% EQU 0 if exist "%~d1%~p1tmpEncode\%~n1.tmp" DEL "%~f1"
if %shrinklevel% EQU 0 if exist "%~f1" if exist "%~d1%~p1tmpEncode\%~n1.tmp" exit 1
if %shrinklevel% EQU 0 move "%~d1%~p1tmpEncode\%~n1.tmp" "%~d1%~p1%~n1.mp4"
copy "%~f1.properties" "%~d1%~p1%~n1.mp4.properties"
if exist "%~f1" exit 1
%WGETPATH%\wget.exe --delete-after --tries=3 --directory-prefix="%WGETPATH%" "http://username:password@servername:8080/sage/GlobalCommand?command=UpdateMediaLibrary"
exit 0
__________________
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-2013 at 07:21 PM.
Reply With Quote
  #1356  
Old 01-08-2013, 07:35 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Quote:
Originally Posted by nyplayer View Post
I just replace them with the same file name and the new extension a mediascan sees the new file in Sage I do not know why it does not work for you. Of course I make sure to touch the file with the correct timestamp
That's what I thought was supposed to happen!!!
Now these are regular Sage recordings that you transcode, right?

Maybe it has something to do with the files being corrupt???

Maybe I'll try it with a "good" file...

Jim
Reply With Quote
  #1357  
Old 01-08-2013, 07:39 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jbuszkie View Post
That's what I thought was supposed to happen!!!
Now these are regular Sage recordings that you transcode, right?

Maybe it has something to do with the files being corrupt???

Maybe I'll try it with a "good" file...

Jim
Yes regular recordings I schedule that batch job on shows I have not watch for x amount of days. In SJQ.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #1358  
Old 01-08-2013, 07:44 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Quote:
Originally Posted by nyplayer View Post
Yes regular recordings I schedule that batch job on shows I have not watch for x amount of days. In SJQ.
That''s kinda what I want to do.. but I had some corrupt ones that Sage couldn't transcode. So I had to use handbrake. But I want to make a script like yours that will transcode after x amount of days...

I assume your script is SJQ3? not 4?

Thanks!

Jim
Reply With Quote
  #1359  
Old 01-08-2013, 07:51 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jbuszkie View Post
That''s kinda what I want to do.. but I had some corrupt ones that Sage couldn't transcode. So I had to use handbrake. But I want to make a script like yours that will transcode after x amount of days...

I assume your script is SJQ3? not 4?

Thanks!

Jim
It is neither it is simply a batchfile that SJQ3 simply passes the file to it and it runs. I am sure that you can run any batch script in SJQ4... by simply also passing the file name. My impression is that you can do this with SJQ Crontab.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #1360  
Old 01-08-2013, 08:25 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
@slugger: In post 1355 above nyplayer touch.exe with the -r parameter to change the time stamp of reencoded file to be the same as the timestamp of the original recording. Is there an elegant way to do this in Groovy or should I just call the touch.exe command?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 4 (0 members and 4 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: MizookLCD (Alternate SageTV LCDSmartie Plugin) cslatt SageTV Customizations 48 06-11-2012 10:44 AM
SJQv4: Technology Preview Slugger SageTV v7 Customizations 39 12-17-2010 01:17 PM
SageTV Plugin Developers: Any way to see stats for your plugin? mkanet SageTV Software 4 12-12-2010 10:33 PM
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
SJQv4: Design Discussion Slugger SageTV v7 Customizations 26 10-18-2010 08:22 AM


All times are GMT -6. The time now is 03:39 AM.


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