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
  #1  
Old 01-17-2009, 07:38 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Utility: Sage Scripting Framework

Download | Wiki | Remote APIs | SageTV API

I've put together a small project that may be of some interest to you script developers out there.

It's a scripting front end to Sage TV for creating command line scripts that interact with Sage. You can write scripts in Javascript, Groovy, or Python.

In order to write scripts, you will need to have some familiarity with scripting lanuages AND the SageTV API.

If you write a script post it here... It may be of interest to others.

Enjoy.
Reply With Quote
  #2  
Old 01-17-2009, 07:41 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Sean,

This is really cool. Thanks for providing this.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #3  
Old 01-17-2009, 08:21 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
This is really cool. Thanks for providing this.
No problem... I needed an excuse to try out the Scripting Engine that is built into Java6 So this means that you'll need to use Java6 in order to use this tool.
Reply With Quote
  #4  
Old 01-17-2009, 09:04 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Once Erik puts chapter support into Comskip and releases it this will work great for my RSS feed script. Assuming I will be able to derive show info based on the file's name, this would work well for iTunes import and even a flash/air app if you wanted your favorite shows in your browser or on the desktop.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #5  
Old 01-17-2009, 09:36 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Help me out here How do you go from comskip to RSS feeds to Flash in one sentence?

Regarding filenames, I added filename search to the webserver a long time ago so it is possible.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #6  
Old 01-18-2009, 05:29 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
I have a bash script laying around somewhere which will take my favorite show list (not the same as a list of favorites in SageTV) and compress it for iPhone/iPod Touch outside of SageTV.

This allows me to do a number of things to the files which the built in compressor does not:
  • Use my own version of ffmpeg or whatever
  • Post process files for streaming
  • Embed chapter marks
  • Create an iTunes RSS feed which has more meaningful show names and detailed show data.
  • Does not leave compressed shows in the TV library

Once I have the feed, I can then use it for easy copy via whatever web server platform I want to embed in iTunes for download to an iPod Touch. Also, once the RSS feed is done there I can use the same feed to create an RSS widget using Flash which can pull my feed and play my shows with the chapter marks.

Adobe has some feed parsing apis which are open source and render all sorts of feeds. Lighttpd has some decent support for a poor man's streaming server and my FiOS connect has a decent upload.

And that's how I get there

B

Please note on the above: When I last used the built in RSS components in nielm's webserver it seemed to create generic info in the feed data. Also, I haven't used SageTV's built in compressor in a while because I haven't had a need without commercial tagging. If SageTV no longer puts the show into the TV library, it would be a big plus.
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #7  
Old 01-19-2009, 01:00 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
That's quite the setup

I just got an iPhone so I'm getting more interested in this type of thing (HD looks amazing on it) and I wish Sage had some more features in the transcoding area to make this a little easier out of the box.

I didn't realize lighttpd did streaming, or that Flash player supported H264. Red5 will be supporting H264 soon, too.

Now back to this thread's topic - sorry for the hijack Thanks for putting this together, stuckless. I'll try it out when I get a chance and might have some Groovy scripts to contribute.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

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
Sage and multiple drives CB_2005 SageTV Software 5 01-03-2009 05:53 AM
Vista volume control, how do I like sage to the hardware volume? AJ Bertelson SageTV Software 1 11-23-2008 08:46 PM
Sage Development Environment stuckless SageTV Studio 4 04-05-2008 06:14 AM
After Lockup - Sage Not working wolfpackmars2 SageTV Software 3 08-05-2006 10:23 PM
Sage UI disappears during playback Keith SageTV Software 17 03-03-2006 03:31 AM


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


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