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 05-26-2007, 11:11 AM
robbc robbc is offline
Sage User
 
Join Date: Jan 2007
Posts: 23
Port existing DVarchive (ReplayTV) library?

I am moving from ReplayTV/DVArchive to SageTV. I have a ton of movies stored in DVArchive and I would like to import the XML data into SageTV so they appear as SageTV recordings. The MPEG files must stay on the existing system (A RAID 5 terrabyte server). Currently I can play the movies via SageTV but I really want them the properties of the movie to be accessible to SageTV.

I have not found any documentation yet on how I could code such a converter. I would prefer to use Perl but will use whatever is required.

Another capability would be to have SageTV record to a local drive, then move the files to the RAID every night. Would save my poor house network from saturation. Much like I do with DVArchive/ReplayTV today.

Any suggestions?
Reply With Quote
  #2  
Old 05-26-2007, 12:19 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
First, the SageTV API:
http://download.sage.tv/api/index.html

You also might want to check out my DVDPro2Sage parser:
http://forums.sage.tv/forums/showthr...3&postcount=24
and the STVi for importing metadata into Sage:
http://forums.sage.tv/forums/showthr...6&postcount=26

For an example of how you can use the SageTV API to pull data from external sources into SageTV. There are a couple other examples, like Neilm's XML import/export stuff.
Reply With Quote
  #3  
Old 05-26-2007, 12:37 PM
robbc robbc is offline
Sage User
 
Join Date: Jan 2007
Posts: 23
thanks

Thanks! That should get me started.
Reply With Quote
  #4  
Old 05-26-2007, 06:07 PM
robbc robbc is offline
Sage User
 
Join Date: Jan 2007
Posts: 23
WOW, I am now official lost

I feel like a blind man trying to figure out SageTV extensions. I get the feeling there is some really, really cool stuff, but cannot seem to grasp hold of it.

I have some basic STVis loaded, but after that all is turning dark.

I think I understand that DVDPro2Sage is a set of tools for others to use. And it appears that SageMC is a huge UI project with yet its own plugins.

Any resources for a beginner SageTV user trying to find some solid ground? Once I have a grasp of the work that has been done I suspect 99% of what I want is available. And what little isn;t I may be able to code. Been wanting to learn Java for a bit now. While I would prefer Ruby (just for fun) or Perl (because I know it well), Java has got to be a better environment than PHP (my CMS's language of choice).
Reply With Quote
  #5  
Old 05-26-2007, 09:41 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by robbc View Post
I feel like a blind man trying to figure out SageTV extensions. I get the feeling there is some really, really cool stuff, but cannot seem to grasp hold of it.

I have some basic STVis loaded, but after that all is turning dark.

I think I understand that DVDPro2Sage is a set of tools for others to use. And it appears that SageMC is a huge UI project with yet its own plugins.
Well, just to give you some background:

DVDPro2Sage is a Java class/library for parsing DVD Profiler XML files and extracting metadata from them. I don't know if you've dealt with XML much but DVDPro2Sage is the result of me fumbling my way through XML processing over the past, well, I'm not really sure how long. In it's current form, it's pretty elegant and I think would make a good jumping off point for processing other XML files.

SageMC, yup, it's a completely substitute UI, definitely not something you want to tackle right away. I'm still amazed by SageMC, I've had some desire to build my own, but the amount of effort is immense, props to mlbdude and flachbar for their work on it.

The second step, once you figure out how to read the XML file, is to get that data into the SageTV database. That's where the metadata importer I linked comes in.

One thing to note, it's generally very hard to build something from scratch in Sage, it's much better to copy stuff that's already there, and add to it. Try importing the stvi and then look at the Library Import View in Studio (Ctrl+Shift+F12 in Sage). This would be a good starting place to see how to call external java libraries and how to put data into the SageTV database.

Quote:
Any resources for a beginner SageTV user trying to find some solid ground? Once I have a grasp of the work that has been done I suspect 99% of what I want is available. And what little isn;t I may be able to code. Been wanting to learn Java for a bit now. While I would prefer Ruby (just for fun) or Perl (because I know it well), Java has got to be a better environment than PHP (my CMS's language of choice).
All that said, there might be a much easier way to do it, depending on your skills. As of 6.1, Sage now natively supports loading metadata from .properties files:
http://forums.sage.tv/forums/showthr...ata+properties

I'm a big fan of leveraging other peoples work wherever possible, no sense reinventing the wheel and all. You might want to look at converting the DVArchive XML into metadata.properties files (as described in the link above). Then Sage will automatically load the data for you.

At that point, you'd have your DVArchive files in Sage, with metadata, but in the Imported Videos section. The next step would be to move them to the recording section*, I haven't followed it closely, but I know the subject has come up before, and I think there are ways to do it.

*I'm not sure you'd really want them in the recorded TV section, it sounds like this is an archive, one of things you don't want deleted, so it might be best to just leave them in the imported videos area.
Reply With Quote
  #6  
Old 05-27-2007, 11:12 AM
robbc robbc is offline
Sage User
 
Join Date: Jan 2007
Posts: 23
thank you!

One of the problems with a large system (or environment) is not the API, but the vast amount of work that others have done to modify the system. Your very detailed description helps a lot. The properties import sounds promising. Converting DVArchive XML to whatever should be easier than writing my own Sage Plugin.

One thing I still need to figure out is how to create a single archive set for all recordings of X. For example all Modern Marvel's should appear in the same list (archive, recorded, foobar, whatever) no matter where they came from (imported or recorded). But I think I have seen just such an extension.

Thanks again for your very detailed description. Now off to read the properties thread.
Reply With Quote
  #7  
Old 05-23-2011, 03:04 PM
markspace markspace is offline
New Member
 
Join Date: May 2011
Location: No. CA
Posts: 1
Although this topic started long ago, I'm curious what procedure robbc came up with. I have a few TB's of replaytv content on my dvarchive server that I'd like to consider importing into Sage, then transition off my ReplayTV and DVA setups.
Reply With Quote
  #8  
Old 05-24-2011, 06:27 AM
jptheripper jptheripper is offline
Sage Fanatic
 
Join Date: Dec 2007
Location: Florida
Posts: 956
I struggled with same thing with beyond tv. In the end, i ended up renaming the files to proper (from thetvdb.com) tags of SxxExx. Then sage imports them perfectly.
__________________
Gigabyte GA-MA770-DS3/4gb DDR2/AMD Phenom 955 3.2ghz Quad Core
Windows 7 64bit Home Premium
Hauppauge 1600/1850/2250/colossus/2650(CableCard 2 tuner)
8tb RAID5 storage/media/other &3tb RAID5 backup storage on a HighPoint RocketRaid 2680
1tb 3 disk Recording Pool
all in a beautiful Antec 1200
SageMyMovies/Comskip/PlayON/SageDCT/SRE
HD100/HD300 extenders
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
Channel Changing Issues and Serial Com Port mike1961 SageTV Beta Test Software 7 02-21-2007 02:04 PM
D11 linkup hardware and cabling options - calling all D11 owners IncredibleHat Hardware Support 7 01-14-2007 02:45 AM
ReplayTV PC Edition released - Be careful jbarr General Discussion 3 11-20-2006 11:42 PM
What's the trick to get SageTV to accept COM port 5 for serial DirecTV tuning? mkanet Hardware Support 6 08-21-2006 08:38 PM
NetStream 2000TV and 26-pin VIP port sward Hardware Support 3 02-05-2006 04:58 PM


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


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