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
  #281  
Old 10-01-2004, 07:25 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 littlerm
Jere_Jones, is it possible to enable blank frame detection, scene change detection, and fuzzy logic at the same time (disabling logo detection)? I record Seinfeld re-runs on TBS and logo detection doesn't work because the channel logo doesn't appear until about 30 sec. after commercial breaks.
Change detect_method to:

detect_method=5 ; 1=black frame, 2=logo, 4=fuzzy logic, 15=all

When I tried it, Comskip showed that it was detecting by Fuzzy Logic and Black Frame only.

Also, Jere.... one thing about Comskip logo detection's 2-pass... In the STV, the COMSKIP.EXE execute process command continues onto the next file after the first pass is made. This causes two COMSKIP's to run at the same time. The results end up OK, though; it just bogs down the system a little bit with the disk thrashing.

Also, could you set up COMSKIP to allow us to override one of the INI values by passing a parameter to the EXE? This way, with the example given with Seinfeld, COMSKIP can still use logo detection on channels that work fine with it.


Thanks,
Lauren

Last edited by laurenglenn; 10-01-2004 at 07:27 PM.
Reply With Quote
  #282  
Old 10-02-2004, 07:28 AM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
Quote:
Originally Posted by laurenglenn
Change detect_method to:

detect_method=5 ; 1=black frame, 2=logo, 4=fuzzy logic, 15=all

When I tried it, Comskip showed that it was detecting by Fuzzy Logic and Black Frame only.
It says it doesn't use it, but internally, it still does. This will be fixed in the next version. But, you've got the right idea and this will work in the future.
Quote:
Originally Posted by laurenglenn
Also, Jere.... one thing about Comskip logo detection's 2-pass... In the STV, the COMSKIP.EXE execute process command continues onto the next file after the first pass is made. This causes two COMSKIP's to run at the same time. The results end up OK, though; it just bogs down the system a little bit with the disk thrashing.
Can you verify that they are both actually doing something. On my system, there are 2 comskips in memory, but one (the one that was launched by Sage) is just waiting for the second one to finish and isn't using any resources.
Quote:
Originally Posted by laurenglenn
Also, could you set up COMSKIP to allow us to override one of the INI values by passing a parameter to the EXE? This way, with the example given with Seinfeld, COMSKIP can still use logo detection on channels that work fine with it.
Since this request comes from an STV maker, how can I say no? I'll look into it. The current parameter handling code couldn't do it. I'll have to find something better... (Jere goes into a programming daze)...

Jere


Thanks,
Lauren[/QUOTE]
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #283  
Old 10-02-2004, 11:21 AM
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 Jere_Jones
It says it doesn't use it, but internally, it still does. This will be fixed in the next version. But, you've got the right idea and this will work in the future.
Can you verify that they are both actually doing something. On my system, there are 2 comskips in memory, but one (the one that was launched by Sage) is just waiting for the second one to finish and isn't using any resources. Since this request comes from an STV maker, how can I say no? I'll look into it. The current parameter handling code couldn't do it. I'll have to find something better... (Jere goes into a programming daze)...
I may just put in a delay of 10 minutes between Sage COMSKIP detection when in Sleep mode. But I could've sworn that there were two TXT files generated at the same time..... Let me check tonight just to see if it really is running twice.

Thanks for looking into the request...

Lauren

Reply With Quote
  #284  
Old 10-02-2004, 07:21 PM
Snuffy2 Snuffy2 is offline
Sage Advanced User
 
Join Date: Mar 2004
Posts: 93
Post Comskip not auto working.

I've recently upgraded from the version included in Malore's last comskip to 0.32. Now comskip doesn't seem to be working, sorta. When I drag & drop a mpg onto comskip it runs & detects commercials, but when Malore's autoruns comskip it just gives blank txt files seeming to say that there were no commercials. Any Ideas?

ALSO, is there any way to change the throttle back times to go over midnight? For example, I'd like to throttle it from 5pm to 3am everyday. Is that possible?

Thanx
Justin


My configs:
comskip.ini
**********
Code:
detect_method=15	; 1=black frame, 2=logo, 4=fuzzy logic, 15=all
verbose=0		;show extra info
fps=29.97		;frames per second (NTSC=29.970, PAL=25)
border=10 		;border around edge of video to ignore
max_brightness=180      ;frame not black if any pixels checked are greater than this (scale 0 to 255)
test_brightness=60      ;frame not pure black if any pixels checked are greater than this, will check average brightness (scale 0 to 255)
max_avg_brightness=50	;maximum average brightness for a dim frame to be considered black (scale 0 to 255)
max_commercialbreak=305	;maximum length in seconds to consider a segment a commercial break
min_commercialbreak=44	;minimum length in seconds to consider a segment a commercial break
max_commercial_size=180	;maximum time in seconds for a single commercial or multiple commercials if no breaks in between
min_commercial_size=1   ;mimimum time in seconds for a single commercial
require_div5=0		;0=off, set=1 to only mark breaks divisible by 5 as a commercial.  Standard sizes (15,20,30,45,60,90,120 second) 
div5_tolerance=1.01
give_up_logo_search=600	;in seconds, how far into the show to search for a logo before giving up
play_nice_start=1700	;at what time of the day should comskip slow itself down
play_nice_end=0300	;ending time for self slowing
delete_logo_file=1	;delete logofile after use?
sage.properties
************
Code:
...
background_commercial_processing=true
background_commercial_processing_awake=true
background_commercial_processing_recording=true
...
Reply With Quote
  #285  
Old 10-02-2004, 10:15 PM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
One more time:

If you're having trouble with comskip, set verbose=10 and email me the log file.

Regarding the play-nice setting, I just made the code changes so it will work in the next version.

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #286  
Old 10-03-2004, 02:27 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:
I had a similar problem with paths and the TXT file not being created. Just make sure on the EXECUTE_PROCESS command that you use the Video File's path as the working directory. Put COMSKIP in your WINDOWS directory (or any other directory in your PATH statement) and it should work fine.

The detection is actually sooooo much better than the earlier version. Great work guys!

Lauren
It's a slight change that should be made to the STV that needs to be done.

Lauren
Reply With Quote
  #287  
Old 10-03-2004, 04:51 PM
Snuffy2 Snuffy2 is offline
Sage Advanced User
 
Join Date: Mar 2004
Posts: 93
Quote:
Originally Posted by Jere_Jones
One more time:

If you're having trouble with comskip, set verbose=10 and email me the log file.

Regarding the play-nice setting, I just made the code changes so it will work in the next version.

Jere
Here you go. Log is attached. .txt file couldn't be attached because it is empty.

BTW - I set detect_method=5 the logo detection didn't seem to be working so well & I think I've got an idea as to why.

I use a cable box to tune to my channels. What that means is that when I start recording my show (ie. on Ch3) the recording begins on whatever channel in was previously on (ie. Ch 102). I then can see, on the recording, 003 pop up on the screen and then the channel switch to Ch 3. Mu thought is that it might be getting the logo from the old channel and then trying to apply it to the new channel. Not sure if that's true or not, just a thought.

Thanx for the timely response to the play nice settings, I can't wait to try them.

Thanx Again
Justin
Attached Files
File Type: txt WillGraceCrazyinLove-3597851-0.log.txt (85.7 KB, 176 views)
Reply With Quote
  #288  
Old 10-03-2004, 04:55 PM
Snuffy2 Snuffy2 is offline
Sage Advanced User
 
Join Date: Mar 2004
Posts: 93
Quote:
Originally Posted by laurenglenn
I had a similar problem with paths and the TXT file not being created. Just make sure on the EXECUTE_PROCESS command that you use the Video File's path as the working directory. Put COMSKIP in your WINDOWS directory (or any other directory in your PATH statement) and it should work fine.

The detection is actually sooooo much better than the earlier version. Great work guys!

Lauren
Where is the EXECUTE_PROCESS command?

ComSkip is in my Windows Directory (C:\Windows\) and in SageTVs default folder (C:\Program Files\Frey Technologies\SageTV) as well, both with the same .ini file.

As posted above, when I set verbose to 10, the log file is being created and it seems to be detcting commercials, but then a blank .txt file is being created without the commercials that it found in the log file.
Reply With Quote
  #289  
Old 10-03-2004, 06:40 PM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
Comskip ver 0.40 now available

Version 0.40

Additions
- ini file now has more options. See the descriptions here
- play_nice is more intelligent. It will span midnight if the start time is after the end time.
- max_avg_brightness is more intelligent. It will adjust itself depending on the brightness of the recording.
- The generated logs are more now more helpful
- If comskip can't find the ini file it will search for it. If the ini is found, comskip assumes that the exe is in the same directory.

Bug fixes
- ComSkip is now much more intelligent and flexible about how it is run.
- I hope that all the problems running the second pass are now fixed.
- The ini file itself and the ini wiki page now reflect the correct values for detection methods. Everyone using version .30 or later should adjust accordingly.

Hopefully this will fix the problems everyone is having. So if ComSkip isn't running correctly or if it isn't detecting commercials correctly (or at all), install this version.

Source files are available upon request.

Jere

<EDIT>
Pulled version 0.40 until source of crash can be determined.
</EDIT>
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7

Last edited by Jere_Jones; 10-04-2004 at 06:01 AM.
Reply With Quote
  #290  
Old 10-03-2004, 08:27 PM
Snuffy2 Snuffy2 is offline
Sage Advanced User
 
Join Date: Mar 2004
Posts: 93
ComSkip 0.40 seems to be crashing on the 2nd pass. It detects the logo, then goes to run it again & it crashes. I'll try to get you any more info you need, but I figured I'd at least start with that.

EDIT: If I manually restart ComSkip on the mpg it crashed on, it starts up the 2nd pass & runs just fine.

Last edited by Snuffy2; 10-03-2004 at 08:32 PM.
Reply With Quote
  #291  
Old 10-03-2004, 09:07 PM
White94Cobra's Avatar
White94Cobra White94Cobra is offline
Sage Expert
 
Join Date: May 2003
Location: West Coast
Posts: 557
Let me change that to...

Thanks for the quick updates! If I disable logo detection it works quite well. But...

Comskip v.40 is crashing on me as well. About 30 seconds into a file it crashes on ntdll.dll. If I set the max detect time for the logo to 1 it goes through fine.

Last edited by White94Cobra; 10-04-2004 at 08:24 AM.
Reply With Quote
  #292  
Old 10-04-2004, 03:50 PM
JasonJoel JasonJoel is offline
Sage Icon
 
Join Date: Mar 2003
Location: St. Louis, MO
Posts: 1,043
v0.40 is crashing on me, also, with the default .INI file. Haven't experimented further.

Jason
Reply With Quote
  #293  
Old 10-04-2004, 04:02 PM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
Comskip 0.41 - Essential bugfix

To those of you that noticed that 0.40 crashed, thank you for letting me know.

All I can say is... "Oops..."

Apparently you can't create a file that includes quotes in the name. Who knew?

Anyway, that has been fixed, it creates the correct file and also should recover from failure more gracefully. I also beefed up the logo detection and improved how comskip handled too much/too little/none logos.

Older ini files are not necessarily compatible with this version. Be sure to review the ComSkip Ini Info Wiki. It will explain what is possible with the ini.

As always, the source files are available upon request.

Enjoy,
Jere
Attached Files
File Type: zip comskip.0.41.zip (89.8 KB, 379 views)
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #294  
Old 10-04-2004, 05:17 PM
JasonJoel JasonJoel is offline
Sage Icon
 
Join Date: Mar 2003
Location: St. Louis, MO
Posts: 1,043
Well, v0.41 is working for me so far. Is auto-scanning a file right now. No crashes yet.

Thanks.

Jason Bottjen

Quote:
Originally Posted by Jere_Jones
To those of you that noticed that 0.40 crashed, thank you for letting me know.

All I can say is... "Oops..."
Reply With Quote
  #295  
Old 10-05-2004, 07:02 AM
Deadbolt's Avatar
Deadbolt Deadbolt is offline
Sage Expert
 
Join Date: Nov 2003
Posts: 687
No .log file cleanup

I have found that even with verbose=0, comskip leaves a .log file when it is finished.
Reply With Quote
  #296  
Old 10-05-2004, 07:11 AM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
Quote:
Originally Posted by Deadbolt
I have found that even with verbose=0, comskip leaves a .log file when it is finished.
The only reason I can thing I think of is that comskip can't find the ini file. Take a look at the log file. Early on it should say if it's using an ini file or not.

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #297  
Old 10-05-2004, 09:26 AM
Whiskeyjack Whiskeyjack is offline
Sage User
 
Join Date: Jun 2004
Location: Stockholm, Sweden
Posts: 30
Any PAL users?

Hi all,

First, big thanks to malore and jere jones for doing this. It really rocks!!! Or it would if I could get it to work properly.

So to the problem...

When I run comskip on a show commercials it will detect and create the .txt file. But... when I run SageTV (nielms 1.5 stv) the breaks are there but at the wrong time. Ex. One show I tested on gives a break at frame 21785 which translates to somewhere around 14 min 30 sec, now SageTV goes and autoskips some 1-2 minutes before that. If I test it in Mediaplayer the break is spot on, exactly on the second.

Could this be because of the PAL frames or...?? I have changed the .ini file to 25 frames.

Anyone got any ideas?

Thanks!
Whiskeyjack
Reply With Quote
  #298  
Old 10-05-2004, 11:14 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Whiskeyjack -- is the problem that the commercials are detect at the wrong time (ie wrong frame numbers in .txt file) or are they being displayed / skipped incorrectly in my STV?
(could be a pal/NTSC thing... 21785 frames == 12m7secs)

... actually, just looked at the code... yes it is a PAL/NTSC thing: my code assumes 29.97fps... I will fix this in a future version of my STV It also explains why comskip never worked for me!

You might try Laurglenn's STV she has a setting in detailed setup->enhancements for 29.97/25fps
Reply With Quote
  #299  
Old 10-05-2004, 03:09 PM
samson samson is offline
Sage Advanced User
 
Join Date: Oct 2003
Location: huntington station N.Y.
Posts: 133
..

I am using Version 0.41 with nielm combo STV v1.5
It seems that for every show it creates two .txt files is this new or is somthing wrong with my set up ?
Reply With Quote
  #300  
Old 10-05-2004, 03:26 PM
Whiskeyjack Whiskeyjack is offline
Sage User
 
Join Date: Jun 2004
Location: Stockholm, Sweden
Posts: 30
Alright, thanks nielm. That explains it. Hope you get the new version out soon I like your stv best of the ones that support comskip. Making and removing menu's makes for a higher Wife Approval Factor
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:56 AM.


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