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
  #1021  
Old 01-19-2017, 07:36 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
So with the new .JAR you sent me, it is now processing files with spaces in it just fine, and it IS now passing a string array instead of a single string.
Code:
Old:  Command sudo -H -u sagetv wine /opt/sagetv/comskip/comskip --playnice --ini=/opt/sagetv/comskip/comskip.ini /var/media/tv/Jerry Springer - S25E80 - Betrayed by My Parrot - 33631125-0.ts
New:  Command [/opt/sagetv/comskip/comskip, --playnice, --ini=/opt/sagetv/comskip/comskip.ini, /var/media/tv/Jerry Springer - S25E80 - Betrayed by My Parrot - 33631125-0.ts]
That means you were not running the latest version from the docker OR you didn't select the "Run native comskip" option.
__________________

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
  #1022  
Old 01-20-2017, 06:13 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by tmiranda View Post
That means you were not running the latest version from the docker OR you didn't select the "Run native comskip" option.
So there's a "run native comskip" option I think that is likely the issue here, since, I noticed that in Fuzzy's logging it was showing "wine", and there is a "wine" stub that I added to the docker image to make running comskip somwhat transparent. I think what I need to do is force the property for run native comskip (if it's not turned on by default).
Reply With Quote
  #1023  
Old 01-20-2017, 12:06 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by stuckless View Post
So there's a "run native comskip" option I think that is likely the issue here, since, I noticed that in Fuzzy's logging it was showing "wine", and there is a "wine" stub that I added to the docker image to make running comskip somwhat transparent. I think what I need to do is force the property for run native comskip (if it's not turned on by default).
That's it. Sorry, I thought you had updated the Docker to include that already. Just make sure there is a "comskip64" (native) executable in the same place as comskip.exe.
__________________

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
  #1024  
Old 04-13-2017, 10:12 PM
peternm22 peternm22 is offline
Sage Expert
 
Join Date: Jan 2005
Posts: 709
I've recently started using this plugin, and for the most part it works great. However, every now and then it doesn't run Comskip on a particular recording. See attached for the log where it fails to run for a recording of Jimmy Kimmel Live. I believe the key part of the log is:

Quote:
CD: ComskipManager.startFirstInQueue: null MediaFile. Removing job from the queue.
I have Comskip set to run live as the show is recording. I suspect the recording is taking a few seconds to start writing the file (it's a network encoder), and CommercialDetector therefor doesn't see it right away. But that's just a guess.

Any ideas?
Attached Files
File Type: txt log.txt (6.0 KB, 156 views)
Reply With Quote
  #1025  
Old 04-14-2017, 06:23 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Yes, that's most likely what is happening.

I'll add this to the "to do" list. I honestly don't know when I'll get to it.....
__________________

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
  #1026  
Old 04-14-2017, 01:42 PM
waynedunham waynedunham is offline
Sage Icon
 
Join Date: Sep 2004
Posts: 1,469
Due to way too many tuners. I have mine set to wait until the recording is done and have a max of 3 instances of Comskip running at a time.

However when I'm recording something very long (i.e. sports), or do want to watch something at least close to live I just tell it to start manually.

Once you have Commercial Detector installed go to Setup/Detailed Setup/Customize. Down in the Extras part of the menu very near the bottom you'll see Comskip Playback Options. Select this and scroll down to Comskip Button Options. I have mine set to Yes/Yes and then you hit the Configure button to point it to where your Comskip is. Just be sure you're pointing it to the donator version if you are using that.

Not ideal, and hopefully they'll put in some kind of timeout value so you can just rely on it to work as you have it set up now. But in the meantime it gives you a way to wait a couple minutes into a recording and start Comskip manually. Plus when Comskip messes up, as it can sometimes do, you can delete the comskip files for a recording and try comskipping it again.
__________________
Wayne Dunham
Reply With Quote
  #1027  
Old 04-14-2017, 02:43 PM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
I used to have SJQ check and fire off comskip at 5 and 35 past the hour. That gave a little buffer for things to start up.
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #1028  
Old 06-05-2017, 04:20 AM
Greg2dot0's Avatar
Greg2dot0 Greg2dot0 is offline
Sage Advanced User
 
Join Date: Dec 2008
Posts: 82
Native Linux Comskip

I've been noodling with getting Comskip compiled under Ubuntu 16.04 for a while and finally got it done this past weekend. I've read through this thread and seem to be missing something.

It would appear that the Native Comskip switch never made it to production builds of Commercial Detector. Also, I went through the properties and couldn't find a way to force it in there.

How do I tell Commercial Detector not to use Wine?

Thanks for the help.
__________________
Production SageTV Server: ASUS P8P67-Pro, 16gb RAM, Crucial m4 256GB SSD, Unbunto 16.4.04 LTS (Server x64), WDC Red 4TB
Capture: 1x HDHR Prime, 1x HDHomeRun (ClearQAM)
Clients: 1x HD300, 2x HD200, 2x Placeshifters
Reply With Quote
  #1029  
Old 06-05-2017, 04:40 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by Greg2dot0 View Post
I've been noodling with getting Comskip compiled under Ubuntu 16.04 for a while and finally got it done this past weekend. I've read through this thread and seem to be missing something.

It would appear that the Native Comskip switch never made it to production builds of Commercial Detector. Also, I went through the properties and couldn't find a way to force it in there.

How do I tell Commercial Detector not to use Wine?

Thanks for the help.
I need to release it. In the mean time I'll post an updated jar here in the next day or so.
__________________

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
  #1030  
Old 06-11-2017, 06:22 AM
Greg2dot0's Avatar
Greg2dot0 Greg2dot0 is offline
Sage Advanced User
 
Join Date: Dec 2008
Posts: 82
Quote:
Originally Posted by tmiranda View Post
I need to release it. In the mean time I'll post an updated jar here in the next day or so.
Not to be impatient, but any update on this?
__________________
Production SageTV Server: ASUS P8P67-Pro, 16gb RAM, Crucial m4 256GB SSD, Unbunto 16.4.04 LTS (Server x64), WDC Red 4TB
Capture: 1x HDHR Prime, 1x HDHomeRun (ClearQAM)
Clients: 1x HD300, 2x HD200, 2x Placeshifters
Reply With Quote
  #1031  
Old 06-11-2017, 06:30 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by Greg2dot0 View Post
Not to be impatient, but any update on this?
Attached. Just replace the existing jar file with this one.

You will need to make a native comskip executable. Name it comskip64 if you are on a 64 bit system or comskip32 if you are on a 32 bit system, and then place it in the same folder as the comskip that comes with the plugin.
Attached Files
File Type: zip CommercialDetector.zip (75.2 KB, 170 views)
__________________

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
  #1032  
Old 06-11-2017, 07:08 AM
Greg2dot0's Avatar
Greg2dot0 Greg2dot0 is offline
Sage Advanced User
 
Join Date: Dec 2008
Posts: 82
Quote:
Originally Posted by tmiranda View Post
Attached. Just replace the existing jar file with this one.

You will need to make a native comskip executable. Name it comskip64 if you are on a 64 bit system or comskip32 if you are on a 32 bit system, and then place it in the same folder as the comskip that comes with the plugin.
Awesome , installed and everything actually worked the first time...Thanks a lot!

I actually do a symbolic link to the build directory. This way I can do a git pull and update comskip without having to remember all the steps.
__________________
Production SageTV Server: ASUS P8P67-Pro, 16gb RAM, Crucial m4 256GB SSD, Unbunto 16.4.04 LTS (Server x64), WDC Red 4TB
Capture: 1x HDHR Prime, 1x HDHomeRun (ClearQAM)
Clients: 1x HD300, 2x HD200, 2x Placeshifters
Reply With Quote
  #1033  
Old 06-11-2017, 08:11 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by Greg2dot0 View Post
Awesome , installed and everything actually worked the first time...Thanks a lot!

I actually do a symbolic link to the build directory. This way I can do a git pull and update comskip without having to remember all the steps.
You're welcome. I really need to release it
__________________

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
  #1034  
Old 06-14-2017, 05:46 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Thoughts on possible cause of this:
Code:
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8] CD: ComskipJob.executeComskipLinux: comskip failed with return code = 137
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8] java.lang.Exception
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8]     at tmiranda.cd.Log.write(Log.java:64)
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8]     at tmiranda.cd.ComskipJob.executeComskipLinux(ComskipJob.java:386)
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8]     at tmiranda.cd.ComskipJob.executeComskip(ComskipJob.java:173)
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8]     at tmiranda.cd.ComskipJob.executeUsingDefault(ComskipJob.java:187)
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8]     at tmiranda.cd.ComskipJob.run(ComskipJob.java:130)
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8]     at java.lang.Thread.run(Thread.java:745)
Wed 6/14 18:00:15.116 [Thread-506@37ab0fa8] CD: ComskipJob.updateRatio: Old, Current and new Ratios 0.10536681:0.0028583333:0.09511596
Wed 6/14 18:00:16.541 [EPG@17c2c73d] SDEPG Set the system clock to be Wed 6/14 18:00:16.169
this was on SageTV Docker. The hole SageTV server was locked up because I stopped the docker but got no more log entries but the above. If you want more than just the exception out of the log I have 10 files worth of log so even compressed it won't fit. Tell me how far back you want and I will try smaller number(s). I increased the number of log files when I was having a Wiz.bin file size a few months ago and never reduced it. I thought it might just be a problem comskip had and not directly related to Commercial Detector itself. But thought it couldn't hurt to ask.
__________________
"Keep your goals away from the trolls"
Reply With Quote
  #1035  
Old 06-15-2017, 03:46 PM
Toddly Toddly is offline
Sage Advanced User
 
Join Date: Nov 2004
Posts: 100
Commercial Detector not working with all networks

Is there any reason that the Commercial Detector plugin will not detect commercials on some of my recorded shows. For some reason it works on the major network shows (NBC,ABC,FOX) yet will not mark shows of the cable channels. Is this an encryption problem or some kind of configuration issue.

I use Xfinity through a HD Homerun and a cable card.
Thanks for any help you can provide.
Reply With Quote
  #1036  
Old 06-15-2017, 04:59 PM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
Quote:
Originally Posted by Toddly View Post
Is there any reason that the Commercial Detector plugin will not detect commercials on some of my recorded shows. For some reason it works on the major network shows (NBC,ABC,FOX) yet will not mark shows of the cable channels. Is this an encryption problem or some kind of configuration issue.

I use Xfinity through a HD Homerun and a cable card.
Thanks for any help you can provide.
I also have the same issue. Xfinity with HDHomeRun / cable card.
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
Reply With Quote
  #1037  
Old 06-15-2017, 06:15 PM
Korny Korny is offline
Sage Advanced User
 
Join Date: Nov 2010
Location: Minnesota
Posts: 87
Networkguy, do you have the donator version of comskip.exe installed, if not that is probably your problem. The free version does not process h264 streams.
__________________
Intel I7 4790k @ stock speeds, 32 GB of ram. 8TB of recording space.
Reply With Quote
  #1038  
Old 06-15-2017, 09:48 PM
waynedunham waynedunham is offline
Sage Icon
 
Join Date: Sep 2004
Posts: 1,469
Quote:
Originally Posted by Korny View Post
Networkguy, do you have the donator version of comskip.exe installed, if not that is probably your problem. The free version does not process h264 streams.
I don't know if they ever addressed this, and to be honest I don't know how it would verify you have a valid donator license, but in the past if you just installed the plugin and then replaced comskip with the donator version in the "default" directory the next time that the plugin updated it would overwrite your donator version with the standard version.

Create a new directory for the donator version (I used \comskip donator\ as my directory) and place the donator files there. Then go into the settings for Comskip Playback Options (settings\detailed\customize, way down near the bottom) and within that menu on one of the selections are the settings for the commercial detector. Withing that menu you can tell it where "comskip" and its .ini file are. Point those to your donator version directory\ comskip and .ini.
Also buriied within that menu system is the option to put a manual comskip option on the recordings detail for a recording. Make sure that one is set to point to your donator version as well.
__________________
Wayne Dunham

Last edited by waynedunham; 06-15-2017 at 09:51 PM.
Reply With Quote
  #1039  
Old 06-16-2017, 04:45 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by BobPhoenix View Post
Thoughts on possible cause of this:
Code:
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8] CD: ComskipJob.executeComskipLinux: comskip failed with return code = 137
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8] java.lang.Exception
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8]     at tmiranda.cd.Log.write(Log.java:64)
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8]     at tmiranda.cd.ComskipJob.executeComskipLinux(ComskipJob.java:386)
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8]     at tmiranda.cd.ComskipJob.executeComskip(ComskipJob.java:173)
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8]     at tmiranda.cd.ComskipJob.executeUsingDefault(ComskipJob.java:187)
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8]     at tmiranda.cd.ComskipJob.run(ComskipJob.java:130)
Wed 6/14 18:00:15.115 [Thread-506@37ab0fa8]     at java.lang.Thread.run(Thread.java:745)
Wed 6/14 18:00:15.116 [Thread-506@37ab0fa8] CD: ComskipJob.updateRatio: Old, Current and new Ratios 0.10536681:0.0028583333:0.09511596
Wed 6/14 18:00:16.541 [EPG@17c2c73d] SDEPG Set the system clock to be Wed 6/14 18:00:16.169
this was on SageTV Docker. The hole SageTV server was locked up because I stopped the docker but got no more log entries but the above. If you want more than just the exception out of the log I have 10 files worth of log so even compressed it won't fit. Tell me how far back you want and I will try smaller number(s). I increased the number of log files when I was having a Wiz.bin file size a few months ago and never reduced it. I thought it might just be a problem comskip had and not directly related to Commercial Detector itself. But thought it couldn't hurt to ask.
Yes, this is what happens when comskip fails. I'd have to look up the comskip error code to see what went wrong. I don't think this is what caused your lock-up.
__________________

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
  #1040  
Old 06-16-2017, 05:36 AM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
Quote:
Originally Posted by waynedunham View Post
I don't know if they ever addressed this, and to be honest I don't know how it would verify you have a valid donator license, but in the past if you just installed the plugin and then replaced comskip with the donator version in the "default" directory the next time that the plugin updated it would overwrite your donator version with the standard version.

Create a new directory for the donator version (I used \comskip donator\ as my directory) and place the donator files there. Then go into the settings for Comskip Playback Options (settings\detailed\customize, way down near the bottom) and within that menu on one of the selections are the settings for the commercial detector. Withing that menu you can tell it where "comskip" and its .ini file are. Point those to your donator version directory\ comskip and .ini.
Also buriied within that menu system is the option to put a manual comskip option on the recordings detail for a recording. Make sure that one is set to point to your donator version as well.
I am not sure, but I will get a donator version and install it in a separate directory.

Thanks!
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
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 01:23 PM.


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