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
  #481  
Old 11-06-2004, 02:42 AM
Pumpkinhead's Avatar
Pumpkinhead Pumpkinhead is offline
Sage User
 
Join Date: Nov 2004
Location: Illinois
Posts: 71
I installed the registry objects, rebooted, and then ran the script.

I dont getting any prompts, but within a few seconds, it gives an error:

Script: c:\path\comskip.vbs
Line 377
Char 2
Error An unexpected error has been returned from the registration database
Code 800A8BF
Souce registry

The comskip within Sage only checked the first file of an episode I recorded manually with some breaks in it, so I was hoping this would work past that issue whenever it occurs.
Reply With Quote
  #482  
Old 11-06-2004, 08:05 AM
krutaw's Avatar
krutaw krutaw is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Oklahoma City, OK
Posts: 457
Send a message via AIM to krutaw
Quote:
Originally Posted by ajuhawk
Soley for curiousity sake I decided to run your script to see what all it did, etc. Normally I just let Sage do the comskip, so I don't really need it. But anyway, I tried running it from a client machine and it wasn't happy only finding SageTVClient.exe instead of SageTV.exe - so I guess my question to you is, does it have to run on the "server" or could it run on the client machine as well?

-AJ

Ok, so I opened the script and figured out where you did the check and changed it to look for "SageTVClient.exe" and it worked - I think. So now I have another dumb question (excuse my lack of VBS knowledge) - is there a way to show a dialog box so you know if it's working or not? and maybe what it's doing?
I'll take a look at showing a modal box like in IE or something while it's working saying what it's doing so that you're not just left *wondering*. I personally usually just check the logs as it's going, but I can see how most people would want some sort of feedback. Thanks for the feedback!
__________________
Warm Regards,

Andy Kruta A+, CNA, MCSA, Network+, RHCE

"It's kinda fun to do the impossible"
- Walt Disney
Reply With Quote
  #483  
Old 11-06-2004, 08:11 AM
krutaw's Avatar
krutaw krutaw is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Oklahoma City, OK
Posts: 457
Send a message via AIM to krutaw
Quote:
Originally Posted by Pumpkinhead
I installed the registry objects, rebooted, and then ran the script.

I dont getting any prompts, but within a few seconds, it gives an error:

Script: c:\path\comskip.vbs
Line 377
Char 2
Error An unexpected error has been returned from the registration database
Code 800A8BF
Souce registry

The comskip within Sage only checked the first file of an episode I recorded manually with some breaks in it, so I was hoping this would work past that issue whenever it occurs.

Hmmm.. That's very interesting. What OS are you running on? I don't know that we had ever tested on anything other than Windows XP, but it really *SHOULD* have worked on others. It's odd that it stopped there, because that's where it's accessing the registry object that was installed by the download from Microsoft. Anywho, I actually thought of another way to skin this cat, and hope to have some code spun by this evening to help with this one.

In the mean time, if you want to play with the script, simply comment out line 78 (by putting a single quote in front of the text) and set line 79 to:
sage_dir="c:\program files\Frey Technologies\SageTV"

This assumes you're running SageTV from the standard directory, you may have to change that line.


Question, what would you think about running the script from inside the SageTV directory so we don't have to look at all, and then fall back on searching if it's not run from there?
__________________
Warm Regards,

Andy Kruta A+, CNA, MCSA, Network+, RHCE

"It's kinda fun to do the impossible"
- Walt Disney
Reply With Quote
  #484  
Old 11-06-2004, 11:52 AM
Crashless's Avatar
Crashless Crashless is offline
Sage Icon
 
Join Date: Oct 2003
Location: Los Angeles, CA
Posts: 1,224
Krutaw, I'm running w2k, and it's fine. Ran again perfectly last night.
Reply With Quote
  #485  
Old 11-06-2004, 01:48 PM
krutaw's Avatar
krutaw krutaw is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Oklahoma City, OK
Posts: 457
Send a message via AIM to krutaw
Quote:
Originally Posted by Crashless
Krutaw, I'm running w2k, and it's fine. Ran again perfectly last night.

Whoo hoo... good to hear bud!
__________________
Warm Regards,

Andy Kruta A+, CNA, MCSA, Network+, RHCE

"It's kinda fun to do the impossible"
- Walt Disney
Reply With Quote
  #486  
Old 11-06-2004, 03:24 PM
krutaw's Avatar
krutaw krutaw is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Oklahoma City, OK
Posts: 457
Send a message via AIM to krutaw
ComSkip Automation script v0.5

I've updated the script to correct a couple of issues mentioned here in the forum.

Specifically, here's what I've changed:

- Added ability to skip checking for location if script is run from SageTV directory.
- Added output to IE browser for status

If you're having problems with the script not finding the SageTV directory, simply run it from the SageTV directory, and it won't even bother searching the registry.

Also, if you don't want to see the IE gui status, simply change line 84 to be:
showiegui = False

Once again, any and all feedback is appreciated.
Attached Files
File Type: zip comskip_automation_0.5.zip (8.2 KB, 247 views)
__________________
Warm Regards,

Andy Kruta A+, CNA, MCSA, Network+, RHCE

"It's kinda fun to do the impossible"
- Walt Disney
Reply With Quote
  #487  
Old 11-06-2004, 06:38 PM
Pumpkinhead's Avatar
Pumpkinhead Pumpkinhead is offline
Sage User
 
Join Date: Nov 2004
Location: Illinois
Posts: 71
I'm running Windows 2000 SP4

This script looks like it's working. Thanks.
Reply With Quote
  #488  
Old 11-06-2004, 06:55 PM
krutaw's Avatar
krutaw krutaw is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Oklahoma City, OK
Posts: 457
Send a message via AIM to krutaw
Quote:
Originally Posted by Pumpkinhead
I'm running Windows 2000 SP4

This script looks like it's working. Thanks.
Happy to help, and glad it's working for you now!
__________________
Warm Regards,

Andy Kruta A+, CNA, MCSA, Network+, RHCE

"It's kinda fun to do the impossible"
- Walt Disney
Reply With Quote
  #489  
Old 11-07-2004, 10:05 PM
Deadbolt's Avatar
Deadbolt Deadbolt is offline
Sage Expert
 
Join Date: Nov 2003
Posts: 687
Can this script run from a machine that does not have sageclient.exe or sagetv.exe? In otherwords, can I use this script from other non-sage machine to gang comskip my sagetv server?

Thanks for the great functionality!
Reply With Quote
  #490  
Old 11-08-2004, 07:04 AM
krutaw's Avatar
krutaw krutaw is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Oklahoma City, OK
Posts: 457
Send a message via AIM to krutaw
Quote:
Originally Posted by Deadbolt
Can this script run from a machine that does not have sageclient.exe or sagetv.exe? In otherwords, can I use this script from other non-sage machine to gang comskip my sagetv server?

Thanks for the great functionality!
Yes, however, you would have to have drives mapped exactly the same way your server has them mapped. If the videos are in e:\tv videos then you would have to map your E drive to wherever that folder exists. Wow, that sounded vague, lemme know if that didn't make sense.

The real trick here is that you still have to point the script to where the sagetv directory is located so that it can read the sage.properties file to figure out where the video directories are located. I have not tried with a unc path yet, but will try that tonight.
__________________
Warm Regards,

Andy Kruta A+, CNA, MCSA, Network+, RHCE

"It's kinda fun to do the impossible"
- Walt Disney
Reply With Quote
  #491  
Old 11-08-2004, 08:00 AM
snipeman's Avatar
snipeman snipeman is offline
Sage Advanced User
 
Join Date: Jan 2004
Location: Big Easy
Posts: 195
I have a similiar question:

I run a media server that doesn't have Sage Server, Client, or Recorder running on it at all. Sage runs on a HTPC in another room on a C: drive that is not shared.

Is the only reason your script needs the sage.properties file is to find the video directories(s)? On my system, this is simply f:\Sage. I happen to only have one directory.

Would it be possible to program this video directory into your script and bypass the need for it having access to the Sage program directory? Perhaps with an INI file of some type?

Basically I'd like to have my media server take over the CPU load of comskipping. I'd just like to launch your script frequently and have it do any MPG without a TXT file in one directory.

Thanks,

Andy
Reply With Quote
  #492  
Old 11-08-2004, 04:46 PM
abasu2003's Avatar
abasu2003 abasu2003 is offline
Sage Expert
 
Join Date: Jul 2004
Posts: 551
Did anybody figure out if there were Command Line Options for VideoRedo? I would like to be able to automatically make a commercial skipped file without having to load up videoredo
Reply With Quote
  #493  
Old 11-08-2004, 07:03 PM
krutaw's Avatar
krutaw krutaw is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Oklahoma City, OK
Posts: 457
Send a message via AIM to krutaw
Quote:
Originally Posted by snipeman
I have a similiar question:

I run a media server that doesn't have Sage Server, Client, or Recorder running on it at all. Sage runs on a HTPC in another room on a C: drive that is not shared.

Is the only reason your script needs the sage.properties file is to find the video directories(s)? On my system, this is simply f:\Sage. I happen to only have one directory.

Would it be possible to program this video directory into your script and bypass the need for it having access to the Sage program directory? Perhaps with an INI file of some type?

Basically I'd like to have my media server take over the CPU load of comskipping. I'd just like to launch your script frequently and have it do any MPG without a TXT file in one directory.

Thanks,

Andy
Andy ~

Okay, that sounds cool. So whatcha think about say a set of command line parameters that determine where both the video directory and the comskip application are located (seperate parameters of course)? That, of course, infers that the user should be able to dictate where the logs are written to as well. Hmmmm...

*starts writing feverishly*
__________________
Warm Regards,

Andy Kruta A+, CNA, MCSA, Network+, RHCE

"It's kinda fun to do the impossible"
- Walt Disney
Reply With Quote
  #494  
Old 11-08-2004, 07:56 PM
krutaw's Avatar
krutaw krutaw is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Oklahoma City, OK
Posts: 457
Send a message via AIM to krutaw
Quote:
Originally Posted by krutaw
Andy ~

Okay, that sounds cool. So whatcha think about say a set of command line parameters that determine where both the video directory and the comskip application are located (seperate parameters of course)? That, of course, infers that the user should be able to dictate where the logs are written to as well. Hmmmm...

*starts writing feverishly*

Okay, so it ended up being a tad easier than I thought it would be. Anywho, I've got the script setup to where if you specify a logs, video and comskip directory (they can all be the same if needed) the script will bypass attempting to find the sage.properties file as well as the sagetv executable.

Anywho, please find the script attached. The specific command line options are(THIS SHOULD ALL BE A SINGLE LINE):

comskip_automation_0.6.vbs /vid_dir=e:\sage /comskip_dir=e:\sage /log_dir=e:\sage\logs


This example would look for only videos in the e:\sage directory, put logs to e:\sage\logs and look for comskip in e:\sage.

Please let me know if you think of anything else we can cram in this puppy. I personally was thinking of an mp3 player.... j/k :-)
Attached Files
File Type: zip comskip_automation_0.6.zip (8.6 KB, 413 views)
__________________
Warm Regards,

Andy Kruta A+, CNA, MCSA, Network+, RHCE

"It's kinda fun to do the impossible"
- Walt Disney
Reply With Quote
  #495  
Old 11-08-2004, 08:21 PM
Cayars Cayars is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 2,029
Quote:
Originally Posted by abasu2003
Did anybody figure out if there were Command Line Options for VideoRedo? I would like to be able to automatically make a commercial skipped file without having to load up videoredo
Yes there is. If you have a current version of VideoReDo click on the TOOLS menu and select START BATCH MANAGER. Run it to get an idea of how it works. It will create a .CMD file that is executable from the command prompt. You can then script something to create a similar setup.

I'm "thinking" of doing something like this for version "F" of my Cayars STV and maybe working on a more simpler DivX conversion then the present method using ffmpeg.
Reply With Quote
  #496  
Old 11-08-2004, 08:58 PM
snipeman's Avatar
snipeman snipeman is offline
Sage Advanced User
 
Join Date: Jan 2004
Location: Big Easy
Posts: 195
From one Andy to another, many thanks! It is very cool of you to listen to my unqiue situation and program your script for it. I think this will make it extremly modular now, and will possibly help people/situations we haven't even thought of yet.

Plus, command line options are way cool.

I will install it now, and report my sucess tomorrow on this forum.

For your reference my media server runs Win XP Pro SP2. It's a 1.4Terrabyte machine with 6 hard drives in it. I have one 300GB drive dedicated to Sage for space. It's in a spot that doesn't have access to cable/sat wiring, so I will probablly never run Sage on the machine. Plus, the idea of the computer was actually to never run Sage on the media server.

Regards,

The Other Andy
Reply With Quote
  #497  
Old 11-09-2004, 12:34 AM
abasu2003's Avatar
abasu2003 abasu2003 is offline
Sage Expert
 
Join Date: Jul 2004
Posts: 551
cayars,

also, what would be nice is if you could figure out how to get it back into the sage recordings screen, but that seems kind of tricky
Reply With Quote
  #498  
Old 11-09-2004, 12:50 AM
Cayars Cayars is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 2,029
Quote:
Originally Posted by abasu2003
cayars,

also, what would be nice is if you could figure out how to get it back into the sage recordings screen, but that seems kind of tricky
Get what back into the recording screen? The converted file as an AVI file?
Reply With Quote
  #499  
Old 11-09-2004, 10:11 AM
ChrisAllenFiz ChrisAllenFiz is offline
Sage User
 
Join Date: Nov 2004
Posts: 37
Does anyone have comskip in any of its forms working well on PAL uk television programs? I am thinking of tinkering with the code to try to make it work on PAL Uk, but if someone has it working and can post the settings then I can save myself some frustration! Thanks

Chris
Reply With Quote
  #500  
Old 11-09-2004, 06:21 PM
krutaw's Avatar
krutaw krutaw is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Oklahoma City, OK
Posts: 457
Send a message via AIM to krutaw
Quote:
Originally Posted by snipeman
From one Andy to another, many thanks! It is very cool of you to listen to my unqiue situation and program your script for it. I think this will make it extremly modular now, and will possibly help people/situations we haven't even thought of yet.
Andy ~

The way I see it, the only time a coder should not think of ways to extend functionality to match what people ask for is when they're not going to share it with anyone. In other words, I'm happy you're happy. eheh

Oh ... . and you can be the "Andy" in this discussion as far as I'm concerned, I'm happy with krutaw.
__________________
Warm Regards,

Andy Kruta A+, CNA, MCSA, Network+, RHCE

"It's kinda fun to do the impossible"
- Walt Disney
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


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


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