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 03-20-2009, 07:37 PM
zzmystique's Avatar
zzmystique zzmystique is offline
Sage Advanced User
 
Join Date: May 2004
Location: New Zealand
Posts: 211
Question script to export all data into and external database

Not sure if this is the right thread to put this question in, but has anyone written a script that they are willing to share that will export all the recordings data out of sage into a mysql or mssql express database?

I want to add details about the recordings ie aspect ratio, audio and video codecs to the xml files or metadata 'my' generated by Neilm's or JREKiwi's plugins.

Thanks
__________________
ZZMystique
My setup: Server: SageTV v7, Intel i5, 8GB, 180GB SSD, 4TB HDD, Win7HP & (DVB Viewer Pro with DVB Viewer for SageTV using 2xTBS6281 DVB-T2).

Last edited by zzmystique; 03-20-2009 at 07:39 PM. Reason: typo
Reply With Quote
  #2  
Old 03-20-2009, 07:53 PM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,132
Hi Anne, a couple of things.

Do you need anything other than what's displayed under Format: in the recording Detail Info screen?

Do you normally populate your database using the .my or xml files? or are you just using the database to add the information to the .my or xml files

I can add that additional info to the .my files if you want.

John
Reply With Quote
  #3  
Old 03-20-2009, 08:20 PM
zzmystique's Avatar
zzmystique zzmystique is offline
Sage Advanced User
 
Join Date: May 2004
Location: New Zealand
Posts: 211
Hi John

Wow that was a quick response. Thankyou.

The info I am after is, the file format information similar to what is display in the webserver - recordings page. for example:

File Format: Quicktime[MPEG4-Video 4:3 512x384@30fps, AAC@44.1kHz Stereo und]

At the moment, the information is imported into a database from neilm's xml file, but the file format info is not there. I would also need to add the path to the mpg/mp4 file. If you could include this information in the 'my' file that would be fantastic.

This info would also be very useful for getting the aspect ratio's right when converting to mp4.

Thanks

Anne
__________________
ZZMystique
My setup: Server: SageTV v7, Intel i5, 8GB, 180GB SSD, 4TB HDD, Win7HP & (DVB Viewer Pro with DVB Viewer for SageTV using 2xTBS6281 DVB-T2).
Reply With Quote
  #4  
Old 03-20-2009, 09:25 PM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,132
Do you want the whole string Quicktime[MPEG4-Video 4:3 512x384@30fps, AAC@44.1kHz Stereo und] as a single item?

You could also look at stuckless' api and SageScriptFramework and use GetMediaFileFormatDescription(MediaFile) to get the format.

John
Reply With Quote
  #5  
Old 03-21-2009, 04:56 AM
zzmystique's Avatar
zzmystique zzmystique is offline
Sage Advanced User
 
Join Date: May 2004
Location: New Zealand
Posts: 211
Hi John

Quote:
Do you want the whole string Quicktime[MPEG4-Video 4:3 512x384@30fps, AAC@44.1kHz Stereo und] as a single item?
Preferably seperated, but if that makes it harder or more work to write then all in a single string would be good.

I will take a look at stuckless's api and SageScriptFramework for the GetMediaFileFormatDescription(MediaFile) , but my programming skills are limited, (dos cmd line and a little vbscript). So not sure how far i will get.

Think its about time, I got stuck in and learnt it!

Thanks once again.

Anne
__________________
ZZMystique
My setup: Server: SageTV v7, Intel i5, 8GB, 180GB SSD, 4TB HDD, Win7HP & (DVB Viewer Pro with DVB Viewer for SageTV using 2xTBS6281 DVB-T2).
Reply With Quote
  #6  
Old 03-21-2009, 02:09 PM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,132
Anne, I've emailed a new version of RW Metadata to you that includes these changes.

John
Reply With Quote
  #7  
Old 03-21-2009, 05:07 PM
zzmystique's Avatar
zzmystique zzmystique is offline
Sage Advanced User
 
Join Date: May 2004
Location: New Zealand
Posts: 211
John

It worked a treat.

Thankyou

Anne
__________________
ZZMystique
My setup: Server: SageTV v7, Intel i5, 8GB, 180GB SSD, 4TB HDD, Win7HP & (DVB Viewer Pro with DVB Viewer for SageTV using 2xTBS6281 DVB-T2).
Reply With Quote
  #8  
Old 04-01-2009, 07:49 PM
VCRUser VCRUser is offline
Sage Aficionado
 
Join Date: Jan 2008
Posts: 444
Quote:
Originally Posted by JREkiwi View Post
Anne, I've emailed a new version of RW Metadata to you that includes these changes.

John
1. Where can I find RW Metadata?
2. Will it (or something else out there) export something like this into plain text or other easily-importable format such as CSV, MDB, Excel, or the like:
Filename, Date recorded, show title, episode title, date originally aired, length
(optional info on codecs, bitrate, encoder)?

This would help me move files from server to transportable media while retaining info useful to decide what I want to watch when.
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
Import/export does not work lcddream SageMC Custom Interface 7 10-06-2008 08:00 PM
XML show data export - Malore robinson SageTV Customizations 0 03-04-2006 11:06 AM
A Question about export of EPG data for achive purposes carlgar SageTV Software 0 11-17-2003 11:28 AM
Is it possible to export program data from SageTV? wr202 SageTV Software 2 11-17-2003 10:56 AM


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


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