SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #81  
Old 08-13-2010, 12:48 PM
freewheeling's Avatar
freewheeling freewheeling is offline
Sage Aficionado
 
Join Date: Nov 2009
Location: Virginia
Posts: 482
Quote:
Originally Posted by tmiranda View Post
Attach a logfile for me to look at please. Set the debug level in the plugin to Trace.

If comskip finds commercials it returns a 1, if it fails to find commercials it returns a 0. Anything other than a 0 or 1 indicates an error. I've never seen a 3 so I'd lik to see a log to figure out what is happening.
I did. It's above, but I'll post it again.
Attached Files
File Type: zip sagetv_0.zip (78.8 KB, 425 views)
Reply With Quote
  #82  
Old 08-13-2010, 01:08 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Sorry, I did not see the previous log.

Comskip is being run on a .ts file, which is OK if you are using the donators version of comskip. The comskip that is being called is in the default location (..\SageTV\SageTV\comskip)

Are you using the donators version?
Did you overwrite the default comskip with the donators version?
Did you set to config properly?

If you put the donators version of comskip in a separate location and pointed the plugin at it, there is a problem with the plugin.

if you overwrote the existing comskip or did not point the plugin at it there is a problem with your configuration.

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #83  
Old 08-13-2010, 02:35 PM
freewheeling's Avatar
freewheeling freewheeling is offline
Sage Aficionado
 
Join Date: Nov 2009
Location: Virginia
Posts: 482
Quote:
Originally Posted by tmiranda View Post
Sorry, I did not see the previous log.

Comskip is being run on a .ts file, which is OK if you are using the donators version of comskip. The comskip that is being called is in the default location (..\SageTV\SageTV\comskip)

Are you using the donators version?
Did you overwrite the default comskip with the donators version?
Did you set to config properly?

If you put the donators version of comskip in a separate location and pointed the plugin at it, there is a problem with the plugin.

if you overwrote the existing comskip or did not point the plugin at it there is a problem with your configuration.

Tom
Thanks for taking the trouble to look at the log file. Unfortunately I don't even know what the donator's version is. As far as I know there's only one version of comskip in the system, and it's in the default location. I normally use VideoRedo to process files and remove commercials, but I only use it while I'm running VideoRedo itself, and certainly not from a SageTV plugin.

I enabled the icon, so now there's a little comskip icon in the details for the videos, but it's still not skipping any commercials. Just to see what would happen I clicked on comskip.exe and the comskipGUI.exe and they briefly ran in a dos command window and stopped. I did a search of all the drives and comskip.exe seems to be listed in only one place.

I am running AnyDVD in the background. I wonder if that interferes somehow?

Update: I checked the location that the plugin points to, and it's the comskip subdirectory under SageTV, which is correct. The maximum number of concurrent jobs is 1.

Update 2: I was wrong about the icon. It doesn't show unless I set CS & NoCS, so the icon indicates that there's no comskip on the file. It's a little hard to see without my magnifying glass.

Last edited by freewheeling; 08-13-2010 at 02:57 PM.
Reply With Quote
  #84  
Old 08-13-2010, 03:13 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
OK, now it's making more sense.

comskip has two versions, a free version and a donator's version. (Donator's version means you make a contribution to the author and he sends you a special version.) The free version will only process .mpg files. You need the donator's version to process .ts files. The logfile you attached showed you are trying to use the free version (what comes with CommercialDetector) to process .ts files, and that will not work. What type of tuners do you have?

AnyDVD should have no impact.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #85  
Old 08-13-2010, 03:16 PM
mzup mzup is offline
Sage Advanced User
 
Join Date: Sep 2007
Posts: 169
I have this installed and working fine, but my question is you mention that there is an ability to click a button or something to run comskip? I don't see it or know where to look. can you help me? I would like to select an existing show and run comskip against it.
Reply With Quote
  #86  
Old 08-13-2010, 03:44 PM
freewheeling's Avatar
freewheeling freewheeling is offline
Sage Aficionado
 
Join Date: Nov 2009
Location: Virginia
Posts: 482
Quote:
Originally Posted by tmiranda View Post
OK, now it's making more sense.

comskip has two versions, a free version and a donator's version. (Donator's version means you make a contribution to the author and he sends you a special version.) The free version will only process .mpg files. You need the donator's version to process .ts files. The logfile you attached showed you are trying to use the free version (what comes with CommercialDetector) to process .ts files, and that will not work. What type of tuners do you have?

AnyDVD should have no impact.
So, I get the donator's version, install it in a different location, and point the plugin to that location? I'm using Hauppauge HD-PVR as the capture device, recording directly from the Comcast Set Top Box.

Update: OK, I got and installed the donator's version and pointed the plugin to the right exe and ini files and rebooted. After running it on the recordings there's now a CS logo next to the listing, and there are log and txt files associated with the recordings in the recording directory. However, the txt files are empty and there are no edl files, and no commercials have been identified and skipped. I tried running the program in a command window and got the error message "Comskip: missing option<file>"

I looked at the tuning manual and the user manual, and they both seem incredibly complicated. And since I'm not getting an edl file anyway, something is still wrong.

Last edited by freewheeling; 08-13-2010 at 05:42 PM.
Reply With Quote
  #87  
Old 08-13-2010, 05:44 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by mzup View Post
I have this installed and working fine, but my question is you mention that there is an ability to click a button or something to run comskip? I don't see it or know where to look. can you help me? I would like to select an existing show and run comskip against it.
1. Install the CommercialDetector UI from the "UI Mod" section of the plugin manager.
2. Go to Setup->Detailed Setup->Customize and look for Comskip Playback Options (at the end of the list.)
3. Configure "Button Options" to show the buttons.
4. Go to a recording, or group of recordings and bring up the options menu. Look for Run Comskip or Delete comskip files.

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #88  
Old 08-13-2010, 05:49 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by freewheeling View Post
So, I get the donator's version, install it in a different location, and point the plugin to that location? I'm using Hauppauge HD-PVR as the capture device, recording directly from the Comcast Set Top Box.

Update: OK, I got and installed the donator's version and pointed the plugin to the right exe and ini files and rebooted. After running it on the recordings there's now a CS logo next to the listing, and there are log and txt files associated with the recordings in the recording directory. However, the txt files are empty and there are no edl files, and no commercials have been identified and skipped. I tried running the program in a command window and got the error message "Comskip: missing option<file>"

I looked at the tuning manual and the user manual, and they both seem incredibly complicated. And since I'm not getting an edl file anyway, something is still wrong.
Good progress!

To get edl files (and not txt files) edit the .ini file and add (or change the property if it exists)

Code:
output_default=0
output_edl=1
If it creates .edl or .txt files and there is nothing in them it means it did not find any commercials. Post the .ini file and I'll see if I can help you tune it. If I were you I'd also do some searching on the comskip forums to see what .ini files people are using for HD-PVR recordings.

You are very close.

To run comskip from the command line just type:

Code:
comskip --ini=PathToYourIniFile PathToYourRecording.ts
Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #89  
Old 08-13-2010, 07:05 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Beta 0.40

Beta 0.40 is now available in the plugin repository. Changes:

- Fixed bug that would cause failure on some linux systems when not running Sage as root.
- Added option to manually scan library for recordings without comskip information.
- Added support for UI to display CS icon in header.
- Added support for UI to display different color CS icon if MediaFile is currently being processed.
- Slightly more friendly if accidentally running as a SageClient.
- Eliminated duplicate stdout and stderr lines from comskip.

I'll be updating the UI Mod soon that will take advantage of the improved CS icon support.

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #90  
Old 08-13-2010, 09:00 PM
freewheeling's Avatar
freewheeling freewheeling is offline
Sage Aficionado
 
Join Date: Nov 2009
Location: Virginia
Posts: 482
Quote:
Originally Posted by tmiranda View Post
Good progress!
Post the .ini file and I'll see if I can help you tune it. If I were you I'd also do some searching on the comskip forums to see what .ini files people are using for HD-PVR recordings.

You are very close.
Here's the ini file. There is an output_edl line, but not an output_default line. As far is tuning, I wonder if there's a way to "borrow" the Ad Detective parameters used in VideoRedoTVSuite. It usually gets pretty close, although sometimes mistakes programming for a commercial or visa versa. For instance, some serial programs have a "catch up" section that is usually identified as a commercial, and in the "America the Story of US" series a lot of the Bank of America commercials were deliberately formatted to look like the program (although they usually misrepresent the role that the original Bank of America played; plus it's not even the same institution since they just bought the name in the 1990s).

Anyway, I'm pretty familiar with using VideoRedo.

Update: Uhhh... apparently I don't have the donator's version. I thought that the link provided immediately after I made the donation would take me to a donator's version, but apparently you have to wait for the author to process the donation by hand. WTF?
Attached Files
File Type: txt comskipini.txt (5.8 KB, 430 views)

Last edited by freewheeling; 08-13-2010 at 09:51 PM.
Reply With Quote
  #91  
Old 08-13-2010, 09:01 PM
mzup mzup is offline
Sage Advanced User
 
Join Date: Sep 2007
Posts: 169
Quote:
Originally Posted by tmiranda View Post
1. Install the CommercialDetector UI from the "UI Mod" section of the plugin manager.
2. Go to Setup->Detailed Setup->Customize and look for Comskip Playback Options (at the end of the list.)
3. Configure "Button Options" to show the buttons.
4. Go to a recording, or group of recordings and bring up the options menu. Look for Run Comskip or Delete comskip files.

Tom
Thanks that's what i was missing. One more question. I used to use dirmon to run batch file that ran comskip then ran videoredo to cut them out. Is there a way to set it to point to my batch file? I've tried but it doesn't run it. I added %1 as a variable to pass in case I needed to do that but it still didn't run.
Reply With Quote
  #92  
Old 08-14-2010, 04:20 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
So now we know why no commercials were not detected. Once you get the donator's version you should be good to go.

VideoReDo and comskip are two completely different animals and use different methods to detect commercials. There is no way to adapt the parameters.

Pointing the plugin to a batch file instead of comskip.exe is not supported. If there is a demand for something like that I'll look into how difficult it would be to implement.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #93  
Old 08-14-2010, 04:41 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
UI Mod v1.10

Version 1.10 of the UI Mod is now available. Changes:

- Show comskip icon in header if comskip is active.
- Change color of comskip icon next to show that is being processed.
- Changed minimum Comskip Playback STVi requirement to 2.0.5.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #94  
Old 08-14-2010, 11:19 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I'm working on supporting ShowAnalyzer but I have very little experience with using SA in a "real life" situation. If you are a ShowAnalyzer user and willing to help me test please let me know. I've have a basic version working now.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #95  
Old 08-14-2010, 11:46 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by tmiranda View Post
I'm working on supporting ShowAnalyzer but I have very little experience with using SA in a "real life" situation. If you are a ShowAnalyzer user and willing to help me test please let me know. I've have a basic version working now.
SA should be pretty simple to integrate. However, because of it's internal queue system, it's not exactly the same as comskip. If you call ShowAnalyzer.exe with the media file, it will add that file to it's built in queue. If you don't want that behavior, and want to instead, track when a thread is completed, you can call ShowAnalyzerEngine.exe with the file directly. This will create a process to handle that file immediately, and the process will close upon completion. This would pretty much mirror the way comskip does it, with the exception of not needing to pass an .ini file, and different return codes.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #96  
Old 08-14-2010, 12:03 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by Fuzzy View Post
SA should be pretty simple to integrate. However, because of it's internal queue system, it's not exactly the same as comskip. If you call ShowAnalyzer.exe with the media file, it will add that file to it's built in queue. If you don't want that behavior, and want to instead, track when a thread is completed, you can call ShowAnalyzerEngine.exe with the file directly. This will create a process to handle that file immediately, and the process will close upon completion. This would pretty much mirror the way comskip does it, with the exception of not needing to pass an .ini file, and different return codes.
Yes, I already implemented it using ShowAnalyzerEngine.exe. Getting to work was easy, getting it to work "in the wild" (where people have a large number of different, and unexpected, environments) and getting a usable UI is another story.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #97  
Old 08-14-2010, 04:00 PM
freewheeling's Avatar
freewheeling freewheeling is offline
Sage Aficionado
 
Join Date: Nov 2009
Location: Virginia
Posts: 482
Quote:
Originally Posted by tmiranda View Post
So now we know why no commercials were not detected. Once you get the donator's version you should be good to go.

VideoReDo and comskip are two completely different animals and use different methods to detect commercials. There is no way to adapt the parameters.

Pointing the plugin to a batch file instead of comskip.exe is not supported. If there is a demand for something like that I'll look into how difficult it would be to implement.
Thanks, Tom. I downloaded and installed the donator's version, and modified the ini file with the ouput_default=0 line. I am now getting an edl file and it's finding and skipping *some* (but not all) commercials. I understand that VideoRedo can input the edl files (or at least some kind of output from comskip) so I can use that as input to identify where it's not sensitive enough to find commercials and tweak it there. Also, I think there is a batchfile plugin for SageTV, but don't recall what it is. Something that ends in a "Q" I think. Oh yeah, SJQ by Slugger.
Reply With Quote
  #98  
Old 08-14-2010, 05:00 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
You can make comskip produce .vprj files by setting one of the .ini parameters. Something like output_vprj=1.

I do not have an HD-PVR but I'm sure comskip can be tuned to do a pretty good job. You can also use ShowAnalyzer, which I am working on now.

If you want to do more than just run a commercial detection program you will be better off using SJQ. This plugin is really meant to just run comskip.

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #99  
Old 08-14-2010, 05:23 PM
phelme's Avatar
phelme phelme is offline
Sage Icon
 
Join Date: Dec 2006
Posts: 1,151
Quote:
Originally Posted by tmiranda View Post
Version 1.10 of the UI Mod is now available. Changes:

- Show comskip icon in header if comskip is active.
- Change color of comskip icon next to show that is being processed.
- Changed minimum Comskip Playback STVi requirement to 2.0.5.
Is there some configuration to enable the showing of icons in the header or on the recording being processed? I'm not seeing either. I have the latest STVi as well.
__________________
Server: AMD 9600 Phenom on XP, Gigabyte GA-MA78GPM, 2GB RAM, 320+250+500 GB SATA drives, HDHomeRun Prime, HD-PVR x.5.1, Paterson serial
Client/Encoder:AMD 3800+ X2, 512 MB RAM, ATI X1650 XT, nMediaPC case, Hauppauge HD-PVR, Cyberlink/ArcSoft decoders, USB-UIRT
Client/Encoder: AMD 3800+ X2, 512 MB RAM, 6150 graphics, nMediaPC case, ArcSoft decoders
Client: HD300, Asus Pundit P1-AH1, AMD 3800+ X2 CPU, 1 GB RAM, 6150 graphics, ArcSoft decoders
Backup: Synology
SageTV version: FINAL
Reply With Quote
  #100  
Old 08-14-2010, 08:37 PM
freewheeling's Avatar
freewheeling freewheeling is offline
Sage Aficionado
 
Join Date: Nov 2009
Location: Virginia
Posts: 482
Quote:
Originally Posted by tmiranda View Post
You can make comskip produce .vprj files by setting one of the .ini parameters. Something like output_vprj=1.

I do not have an HD-PVR but I'm sure comskip can be tuned to do a pretty good job. You can also use ShowAnalyzer, which I am working on now.

If you want to do more than just run a commercial detection program you will be better off using SJQ. This plugin is really meant to just run comskip.

Tom
Well, it worked a couple of times... but now isn't processing files. I checked the CommercialDetector parameters, and it apparently has a queue of 17 files, but doesn't seem to be doing anything on any of them. I manually tried to run comskip on two files, but checking the log it only started on one of them, and hasn't really done anything on that. I restarted the log, because it was crammed with a lot of irrelevant stuff from the last few days, so the attached file is relatively small... but I can't find anything in it that's a clue to what's going on. I've also attached the ini file I'm using, but apart from changing the types of detection (a change that worked pretty well on one file) all I did was enable VideoRedo output. However, it wasn't working even before I did that, so I don't think that's the problem. The show that it worked well on was an episode of NCIS called "Angel of Death" so I included that edl file, but it did not work on another episode of NCIS or an episode or Rubicon. Sort of frustrating. It's like it just started to work, and then quit.

The Rubicon and other NCIS episodes seem to have log and logo files, but no edl file, so it's no longer outputing edl.

Update: One more thing. I tried to delete the log and logo files, but the one for the second NCIS episode started again right away. It occurred to me that the problem might be that the queue is using different versions of the ini file, and only the latest one works. So the queue is backed up, and I don't know how to zero it out and start over. Doesn't seem to want to do that.
Attached Files
File Type: txt comskipinirev.txt (5.8 KB, 445 views)
File Type: txt sagetv_0.txt (107.1 KB, 459 views)
File Type: txt NCIS-AngelofDeath-1065433-0edl.txt (115 Bytes, 415 views)

Last edited by freewheeling; 08-14-2010 at 08:58 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) cslatt SageTV Customizations 48 06-11-2012 10:44 AM
Plugin :: My TV for V7 bialio SageTV v7 Customizations 41 03-26-2011 11:09 AM
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
Plugin Manager: Configure plugin medwynd SageTV Beta Test Software 0 05-29-2010 08:43 AM
Hulu: Possible to Use XBMC Hulu Plugin to create SageTV Plugin? Brent SageTV Customizations 8 02-24-2009 04:16 PM


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


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