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
  #461  
Old 10-29-2004, 10:51 AM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
I just got comskip working last night. I set it up on both my server and client. I first tried a manual run on the server (P3 1GHz, 256 RAM) but it took way too long. A manual run on the Daily Show (1/2 hour show) from the client also took a while (about 20 min.). Client is a P4 1.8 GHZ, 1 GB RAM. It marked 3 commercial breaks. The first 2 were spot on but the third didn't recognize when the show came back for the Daily Zen near the end.

I'd like to get this running automatically on the server whenever it finishes recording a show since my client isn't running unless I'm watching something. The problem is that the server runs in service mode without the GUI running. Is it possible to modify comskip to run on a service mode only server? Maybe by writing a VB app to run it instead of an STV. Just thinking.

I'll continue using manual runs from the client to test more shows for comskip accuracy and report back. Nevertheless this looks like a great little program and both Malore and Jere should be proud of their work.

Scott

P.S. Jere - Go Navy! Proud veteran of 6 yrs in the canoe club here
Reply With Quote
  #462  
Old 10-29-2004, 11:15 AM
ToxMox's Avatar
ToxMox ToxMox is offline
Sage Icon
 
Join Date: Oct 2003
Location: NJ
Posts: 1,980
Scott you could run SageTV.exe in pseudo client mode on the server with the comskip stv loaded and just always sleep it.
Reply With Quote
  #463  
Old 10-29-2004, 02:55 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Another option is to just leave the Sage server running - that is the frontend as well as the service. I leave the frontend in sleep mode in the tray area, that way it runs com skip shortly after recording each show so they're ready to watch within 15 mins (P4 3.0GHz).

Just another options for you.

-AJ
Reply With Quote
  #464  
Old 10-29-2004, 04:26 PM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
Quote:
Another option is to just leave the Sage server running - that is the frontend as well as the service. I leave the frontend in sleep mode in the tray area, that way it runs com skip shortly after recording each show so they're ready to watch within 15 mins (P4 3.0GHz).
That is what I am planning to do for now but was thinking in the long term. It would be nice to have comskip also run in a service mode in case the server has a power loss or other unattended reboot. We've waited a long time for Sage to have this capability built in.

What is psuedo-client mode?

Scott
Reply With Quote
  #465  
Old 10-29-2004, 05:28 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by sleonard
What is psuedo-client mode?
The mode Sage runs in when you start it and it detects the service running.
Reply With Quote
  #466  
Old 10-29-2004, 09:04 PM
insomniac's Avatar
insomniac insomniac is offline
Sage Icon
 
Join Date: May 2003
Location: Concord, Ca.
Posts: 1,104
It would also be nice if compskip was called from a service, so that you could use the gui for a Media MVP client instead. The service would or could actually be quite easy. e.g. directory monitoring could trigger a file name read which would then launch and populate the compskip process. All of which is pretty much being done through some existing stv's (malore, nielm, maldude).

any takers?

I.



Quote:
Originally Posted by sleonard
That is what I am planning to do for now but was thinking in the long term. It would be nice to have comskip also run in a service mode in case the server has a power loss or other unattended reboot. We've waited a long time for Sage to have this capability built in.

What is psuedo-client mode?

Scott
__________________
If you're not cheating, your not trying...

My sage rigs:
Server - Windows 2003, Intel 865 PERLL w/ P4 3.2g 1gb ram, 3-PVR250, 3-PVRUSB's, 1 Skystar2, 1 twinhan 102g, 1 starbox DVB-S Cards. Evo network QAM encoder. 1.2TB storage 6.x server + MTSAGE for DVB
Client 1/Master BR - MediaMVP running a 30" Olevia LCD TV.
Client 2/Front Room - Shuttle ST61G4 XPC 1gig ram, 60gb HD, BTC9019 wireless keyboard/mouse & Harmony 880. 6.x client. GF6600GT driving a Sony WEGA 55" rear projection tv.
Reply With Quote
  #467  
Old 10-29-2004, 09:11 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
The service doesn't use an STV, so there isn't much to customize there.

-Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #468  
Old 10-29-2004, 09:15 PM
insomniac's Avatar
insomniac insomniac is offline
Sage Icon
 
Join Date: May 2003
Location: Concord, Ca.
Posts: 1,104
didnt think about that. So I guess that the easiest thing to do is write a quick directory monitoring script and have a service launch it every so often to pickup the newely recorded stuff and, compskip them.

Are there other ways which might better suit this purpose already in the works?


Quote:
Originally Posted by Opus4
The service doesn't use an STV, so there isn't much to customize there.

-Andy
__________________
If you're not cheating, your not trying...

My sage rigs:
Server - Windows 2003, Intel 865 PERLL w/ P4 3.2g 1gb ram, 3-PVR250, 3-PVRUSB's, 1 Skystar2, 1 twinhan 102g, 1 starbox DVB-S Cards. Evo network QAM encoder. 1.2TB storage 6.x server + MTSAGE for DVB
Client 1/Master BR - MediaMVP running a 30" Olevia LCD TV.
Client 2/Front Room - Shuttle ST61G4 XPC 1gig ram, 60gb HD, BTC9019 wireless keyboard/mouse & Harmony 880. 6.x client. GF6600GT driving a Sony WEGA 55" rear projection tv.
Reply With Quote
  #469  
Old 10-29-2004, 09:55 PM
briands briands is offline
Sage Icon
 
Join Date: Aug 2004
Location: Bloomington, IN
Posts: 1,093
Doesn't the STV play back the file skipping the commercials as it goes. Isn't that the part of Malore's original process STV that is still in use. Like I proposed earlier, that is the part that should be in the core installation. Then this feature would not be tied to any one STV or user interface.
Reply With Quote
  #470  
Old 10-30-2004, 07:44 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 briands
Doesn't the STV play back the file skipping the commercials as it goes. Isn't that the part of Malore's original process STV that is still in use. Like I proposed earlier, that is the part that should be in the core installation. Then this feature would not be tied to any one STV or user interface.
As far as that goes, the file being encoded should be scanned as it's being written to the drive to detect the commercials so that scheduled tasks don't have to be written to do what should be done during recording.
__________________
Warm Regards,

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

"It's kinda fun to do the impossible"
- Walt Disney
Reply With Quote
  #471  
Old 10-30-2004, 01:37 PM
laurenglenn's Avatar
laurenglenn laurenglenn is offline
Sage Expert
 
Join Date: Mar 2003
Location: Levittown, PA
Posts: 601
Send a message via AIM to laurenglenn Send a message via MSN to laurenglenn
Quote:
Originally Posted by insomniac
didnt think about that. So I guess that the easiest thing to do is write a quick directory monitoring script and have a service launch it every so often to pickup the newely recorded stuff and, compskip them.

Are there other ways which might better suit this purpose already in the works?
Actually, not to give too much away, but there is a constantly running routine in the Main Menu that checks the recorded files to see if there is a TXT file from COMSKIP there.

When the system runs through all the current files, it starts the loop over constantly checking for new files. If it finds one that isn't COMSKIP'd, then it runs COMSKIP on the file.

Lauren
Reply With Quote
  #472  
Old 10-30-2004, 01:58 PM
insomniac's Avatar
insomniac insomniac is offline
Sage Icon
 
Join Date: May 2003
Location: Concord, Ca.
Posts: 1,104
ah..so my main question will be if we can get this running inside sage (which I would think that frey will not let happen), and if we cant get this running inside sage, then what are the alternatives?

Personally, I would love to explore running my server as a service and robbing the GUI for the new MVP client. It just seems economical and clean.

I.

Quote:
Originally Posted by laurenglenn
Actually, not to give too much away, but there is a constantly running routine in the Main Menu that checks the recorded files to see if there is a TXT file from COMSKIP there.

When the system runs through all the current files, it starts the loop over constantly checking for new files. If it finds one that isn't COMSKIP'd, then it runs COMSKIP on the file.

Lauren
__________________
If you're not cheating, your not trying...

My sage rigs:
Server - Windows 2003, Intel 865 PERLL w/ P4 3.2g 1gb ram, 3-PVR250, 3-PVRUSB's, 1 Skystar2, 1 twinhan 102g, 1 starbox DVB-S Cards. Evo network QAM encoder. 1.2TB storage 6.x server + MTSAGE for DVB
Client 1/Master BR - MediaMVP running a 30" Olevia LCD TV.
Client 2/Front Room - Shuttle ST61G4 XPC 1gig ram, 60gb HD, BTC9019 wireless keyboard/mouse & Harmony 880. 6.x client. GF6600GT driving a Sony WEGA 55" rear projection tv.
Reply With Quote
  #473  
Old 10-30-2004, 02:20 PM
laurenglenn's Avatar
laurenglenn laurenglenn is offline
Sage Expert
 
Join Date: Mar 2003
Location: Levittown, PA
Posts: 601
Send a message via AIM to laurenglenn Send a message via MSN to laurenglenn
Quote:
Originally Posted by insomniac
ah..so my main question will be if we can get this running inside sage (which I would think that frey will not let happen), and if we cant get this running inside sage, then what are the alternatives?

Personally, I would love to explore running my server as a service and robbing the GUI for the new MVP client. It just seems economical and clean.

I.
Personally, I'd run SageTV (not just the service) on your server and let it do the Comskip running. At least Sage should have no problem determining whether the file is a Complete Recording or not. You wouldn't want Comskip to run on an incomplete file.

If Sage is running in sleep mode on the server, you should have no problem with the Comskip. Plus, it frees up the Client to not have to use 90% CPU to have Comskip.

Lauren
Reply With Quote
  #474  
Old 10-30-2004, 02:26 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 laurenglenn
Personally, I'd run SageTV (not just the service) on your server and let it do the Comskip running. At least Sage should have no problem determining whether the file is a Complete Recording or not. You wouldn't want Comskip to run on an incomplete file.

If Sage is running in sleep mode on the server, you should have no problem with the Comskip. Plus, it frees up the Client to not have to use 90% CPU to have Comskip.

Lauren
I take a slightly different approach. I didn't enable the auto-scanning in malore's STV. Instead, I run a process every night to check all of my video directories (dynamically gathered by looking at the sage.properties file) and look for any mpg's that don't have txt files and scan them. I also remove orphan'd files that might have been left behind by deleting a recording.

This works quite well for me, as I rarely watch a show on the same day it's recorded, and even when I do, I can force a comskip right there and then.
__________________
Warm Regards,

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

"It's kinda fun to do the impossible"
- Walt Disney
Reply With Quote
  #475  
Old 10-31-2004, 01:06 AM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
Quote:
I didn't enable the auto-scanning in malore's STV. Instead, I run a process every night to check all of my video directories (dynamically gathered by looking at the sage.properties file) and look for any mpg's that don't have txt files and scan them. I also remove orphan'd files that might have been left behind by deleting a recording.
Would you mind posting the commands you use in the process?
Reply With Quote
  #476  
Old 10-31-2004, 09:44 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 sleonard
Would you mind posting the commands you use in the process?
I'm waiting on feedback from a couple of testers before I give the script out en mass (simply because there's no way I coudl work out the bugs as fast as with multiple problems as one at a time since I'm on a limited timeline.)

As soon as it's ready, you'll know. hehe
__________________
Warm Regards,

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

"It's kinda fun to do the impossible"
- Walt Disney
Reply With Quote
  #477  
Old 10-31-2004, 09:48 AM
snipeman's Avatar
snipeman snipeman is offline
Sage Advanced User
 
Join Date: Jan 2004
Location: Big Easy
Posts: 195
I would love to get a copy of this script as well. I'd like to run COMSKIP on my media server, and not on my HTPC/Sage machine.
Reply With Quote
  #478  
Old 11-05-2004, 08:20 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 would love to get a copy of this script as well. I'd like to run COMSKIP on my media server, and not on my HTPC/Sage machine.
Ask and ye shall receive. Please find the attached script. This script requires the Microsoft Registry Object Pack, which can be downloaded here:
Registry Object Pack

I'm sharing this script to try and better the environment. I make no claim of warranty and do not guarentee that it won't light your cat on fire, let air out of your tires, cause virus-scanner software to freak out or make your significant other leave you.

In other words...

I'm trying to help you, so don't get upset if it doesn't work the first time you run it. Be cool, and I'll help you in any way I can.

This version of the script has the following features:

- Automatic determination of SageTV directory. If the auto-detection fails, it asks the user for the SageTV directory.
- Automatic determination of all Video directories
- Automaticly scanning of all mpg files that don't have a cooresponding .txt file. NOTE: The script is set to *NOT* automatically remove the files, if you want to turn on this feature, edit line 68 and make it read: orphan_clean_up=True
- Automatic removal of *ALL* orphaned files
- Logging of all actions to either a flat text file or the MS Event Viewer. If flat text files are used, the logs automatically rotate based on date. The logs are kept in the SageTV\Logs directory.
- Support for Video directories with spaces in the name
- Checking to see if the .mpg is already in use (to ensure we're not scanning a file as it's being watched or recorded.)


Instructions:

Simply download the Registry Object pack and install it. Once that's done, reboot the computer, and download and run the ComSkipAutomation script.

If you have problems, please get me a copy of the log from your SageTV directory so I can help troubleshoot the problem.

Any and all feedback is both requested and appreciated.
Attached Files
File Type: zip comskip_automation_0.5.zip (8.2 KB, 231 views)
__________________
Warm Regards,

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

"It's kinda fun to do the impossible"
- Walt Disney

Last edited by krutaw; 11-06-2004 at 03:20 PM.
Reply With Quote
  #479  
Old 11-05-2004, 09:26 PM
snipeman's Avatar
snipeman snipeman is offline
Sage Advanced User
 
Join Date: Jan 2004
Location: Big Easy
Posts: 195
Thanks a lot for the reply.

Don't worry, I'm not going to complain if your script doesn't work for me the first time I try it.

Besides, everything you listed bad that it might do has already happened to me. The room still smells like cat fur...

I'll test it out tomorrow, and nicely ask for help if I have any problems. Hopefully it'll rul smoothly first shot.

Thanks again,

Andy
Reply With Quote
  #480  
Old 11-05-2004, 10:43 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by krutaw
Ask and ye shall receive. Please find the attached script.
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?

Last edited by ajuhawk; 11-05-2004 at 10:53 PM.
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 02:14 PM.


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