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
  #621  
Old 11-27-2004, 09:23 PM
ToxMox's Avatar
ToxMox ToxMox is offline
Sage Icon
 
Join Date: Oct 2003
Location: NJ
Posts: 1,980
What is this 2 pass setting you guys are talking about? I can't seem to find it in the ini.
Reply With Quote
  #622  
Old 11-27-2004, 09:38 PM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
It is two_pass_logo in the ini file.

Remember that not all possible settings are in the ini file. Only the ones that you want to override the default settings.

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7

Last edited by Jere_Jones; 11-27-2004 at 09:56 PM.
Reply With Quote
  #623  
Old 11-27-2004, 09:40 PM
ToxMox's Avatar
ToxMox ToxMox is offline
Sage Icon
 
Join Date: Oct 2003
Location: NJ
Posts: 1,980
so you are saying that two_pass_logo defaults to true?
Reply With Quote
  #624  
Old 11-27-2004, 09:56 PM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
Yep.

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #625  
Old 11-28-2004, 01:58 AM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
Quote:
I see where you're coming from. This will be kindof a comskip manager service. It would monitor certain folders and if a new mpg showed up, it would start processing it.
Yes, but in a "perfect Sage world" instead of just monitoring folders it would communicate w/ the Sage service to get show name, channel, and scheduling info.

Quote:
More than you know. The current ComSkip uses a very stripped down MPEG decoder that is very fast. The ComSkipTNG is going to be a DirectShow application (necessary to process files of different codecs), and the best speed I can get is only half what I get now. Ugh
It sounds like it might also work on DivX?

Quote:
The profiles are easy. I'll have to figure someway for ComSkip to get information out of SageTV on demand. Something like:
Quote:
ComSkip: Hey, what channel is CSI:NYSpeedKills-034495-0 being recorded from?
SageTV: Channel 57:CBS
ComSkip: Cool, thanks. How long is it?
SageTV: 1 hour, but it has 3 minutes of padding on each side.
ComSkip: Padding? Ugh. That always throws off my calculations. Thanks.
It appears you are already working on exactly what I'm thinking about.

I assume you would save the profiles as .ini files. I would save them with a name such as showname.ini, e.g. - if the filename were TheWireSlapstick-984007-0.mpg comskip would save a TheWire.ini. It would be chosen for any episode of The Wire.

Another idea. Perhaps it would create 2 .ini's. A showname.ini and a channel.ini that had information specific to a channel such as logo descriptions.

Quote:
The feed back is a little harder, but is needed. It's on the backburner for thought.
This is the key but I have know idea really how this would be accomplished and I'm not a programmer either. But I can think about how I would like it to work. Hopefully this helps stimulate ideas.

This isn't well-formed yet but i would think that I would want it a lot easier for the user than editing .ini files. Maybe this little part could be handled by an STV? A setup page that lets you tell comskip that the 3rd commercial break started ~15 sec. too soon or the 4th show segment had a commercial that was not detected and it was at ~43m 30s. Comskip would then re-analyze the video learning from the feedback and then adjusting the show and channel .ini's.

It doesn't hurt to dream

Keep up the great work, I'm looking forward to seeing your new version when it is released. I can see the paypal orders streaming in

BTW, how should we refer to the new version? I assume its name will be different than the open source comskip.exe

Last edited by sleonard; 11-28-2004 at 02:02 AM.
Reply With Quote
  #626  
Old 11-28-2004, 07:22 AM
Cayars Cayars is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 2,029
Quote:
Originally Posted by Jere_Jones
<snip>
I don't understand what CC data has to do with real time processing.
Jere
ComSkip seems to work much more accurately with CC data in the file.

Because of this I was wondering if it is possible to not use other detection techniques and get ComSkip to run even faster while still keeping the accuracy.

As an example, how important is logo detection when you have CC data?

If I were to try and not use certain detection mechanism, which are the most time consuming/process intensive as far as ComSkip is concerned?
Reply With Quote
  #627  
Old 11-28-2004, 09:46 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 Cayars
Because of this I was wondering if it is possible to not use other detection techniques and get ComSkip to run even faster while still keeping the accuracy.
The biggest speed boost I have seen is setting verbose=0. This should decrease running time by 10% or so.
Quote:
Originally Posted by Cayars
As an example, how important is logo detection when you have CC data?
For the shows that I run, logo detection is the most important. And after the logo is locked on, there isn't really any performance hit.
Quote:
Originally Posted by Cayars
If I were to try and not use certain detection mechanism, which are the most time consuming/process intensive as far as ComSkip is concerned?
Sadly, the most time consuming/process intensive is decoding the MPG. It uses about 98% of the processor time. There's nothing I can do about that. I've done (IMHO) a pretty good job of getting ComSkip to process all the different sources of information as fast as possible. Try running a show with detect_method=1 and see if you get that large an improvement.

Are you running the 0.64 I posted last night? That version should solve a lot of the speed problems with livetv=1.

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #628  
Old 11-28-2004, 09:52 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 Jere_Jones
Sadly, the most time consuming/process intensive is decoding the MPG. It uses about 98% of the processor time. There's nothing I can do about that. I've done (IMHO) a pretty good job of getting ComSkip to process all the different sources of information as fast as possible. Try running a show with detect_method=1 and see if you get that large an improvement.
Wow, now here's a thought... What if an MPG decoder card was used on the system to decode the mpg? I realize there's probably quite a bit of work that would have to be done in order to access the stream in the mpg decoder card, but it would probably speed up the commercial processing.

Whatcha think Jere?
__________________
Warm Regards,

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

"It's kinda fun to do the impossible"
- Walt Disney
Reply With Quote
  #629  
Old 11-28-2004, 10:10 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 krutaw
Wow, now here's a thought... What if an MPG decoder card was used on the system to decode the mpg? I realize there's probably quite a bit of work that would have to be done in order to access the stream in the mpg decoder card, but it would probably speed up the commercial processing.

Whatcha think Jere?
I don't think so. I think it's kinda like asking the new guy at work to do something. It doesn't get done fast, but it still saves you time because you're not doing it.

However, I've been wrong before.

Do you have any references I can check out?

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #630  
Old 11-28-2004, 12:40 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by krutaw
What if an MPG decoder card was used on the system to decode the mpg?
Most assisted MPG decoding on graphics cards only works when the decoded stream is displayed directly on the graphics card - there is no way to redirect the decoded raw video stream back to the CPU to be processed by something else...
This is why filters such as FFDSHOW don't work withMPEG2 decoders when hardware accelleration is enabled.
Reply With Quote
  #631  
Old 11-28-2004, 03:14 PM
Crashless's Avatar
Crashless Crashless is offline
Sage Icon
 
Join Date: Oct 2003
Location: Los Angeles, CA
Posts: 1,224
I'm running the pvr350 and currently enjoy about 3-10% usage during live TV watching on my underclocked amd 2600+. I haven't tried the RT comskip yet because krutaw's vbscript has been so great. My system only needs a 2hr window to mark commercials on all of my recorded programs for the day. I might give this a try today, but I'm expecting a huge increase in my CPU usage as comskip will be decoding the stream in addition to the 350. I'll post my results anyway though.
Reply With Quote
  #632  
Old 11-30-2004, 11:34 PM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
What does the latest setting "livetv=X" do. It isn't listed on the wiki pages yet.

Thanks,

Scott
Reply With Quote
  #633  
Old 11-30-2004, 11:37 PM
Cayars Cayars is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 2,029
This setting allows Comskip to write out the txt file while it's still processing the file. This allows an STV to use the file as it's being generated (real-time). The STV needs to be written to do this and to keep updating the timeline.
Reply With Quote
  #634  
Old 12-01-2004, 05:04 PM
abasu2003's Avatar
abasu2003 abasu2003 is offline
Sage Expert
 
Join Date: Jul 2004
Posts: 551
Quote:
Originally Posted by JasonJoel
There is a setting to force COMSKIP to not take all available resources...

If you set the "play_nice_Start" and "play_nice_end" in the COMSKIP.INI file it will only use up to 50% of your CPU for COMSKIP during the hours that fall within the play_nice start & end. (At least I think it is 50%, been a while since I looked).
I've been trying to find a centralized place where all of the comskip options are defined and I can't find it. I looked in the wiki but it doens't seem to be updated. For the time being, cna someone tell me what the format of the above option should be (i.e. is it military time play_nice_Start=1500?).
Reply With Quote
  #635  
Old 12-01-2004, 05:09 PM
ajuhawk's Avatar
ajuhawk ajuhawk is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 330
Quote:
Originally Posted by abasu2003
I've been trying to find a centralized place where all of the comskip options are defined and I can't find it. I looked in the wiki but it doens't seem to be updated. For the time being, cna someone tell me what the format of the above option should be (i.e. is it military time play_nice_Start=1500?).
yes it is military time. If you look in the FAQ attached to Jere_Jones posts he has a lot of info in there. particularly at http://www.sage-community.org/index....ComSkipIniInfo

-AJ

Last edited by ajuhawk; 12-01-2004 at 05:13 PM.
Reply With Quote
  #636  
Old 12-01-2004, 05:11 PM
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 abasu2003
I've been trying to find a centralized place where all of the comskip options are defined and I can't find it. I looked in the wiki but it doens't seem to be updated. For the time being, cna someone tell me what the format of the above option should be (i.e. is it military time play_nice_Start=1500?).
Did you find this? It says version 0.62, but it's still good for version 0.64 since the last 2 were only bugfixes, and I don't remove options from one version to the next.

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #637  
Old 12-01-2004, 05:36 PM
foolio foolio is offline
Sage Advanced User
 
Join Date: Aug 2004
Posts: 173
Quote:
Originally Posted by Jere_Jones
Did you find this? It says version 0.62, but it's still good for version 0.64 since the last 2 were only bugfixes, and I don't remove options from one version to the next.

Jere
Hi Jere:

could you tell me what number to use for detection method if I want to use all technique except for CC? (my source doesn't have CC)

I can't figure out the math logic involved:
detect_method - a sum of the detection methods to be used (1 - 255):

-- 1 = black frame detection
-- 2 = logo detection
-- 4 = scene change rate monitoring
-- 8 = fuzzy logic
-- 16 = closed captioning
-- 32 = aspect ration

So AR (32) + FUZZY LOGIC (8) + SCENE DETECT (4) + LOGO (2) + BLACK FRAME (1) = 47??

why is everything 255??
Reply With Quote
  #638  
Old 12-01-2004, 05:45 PM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
Quote:
why is everything 255??
My guess is to leave room for 2 more detection methods.
Reply With Quote
  #639  
Old 12-01-2004, 06:24 PM
Cayars Cayars is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 2,029
Quote:
Originally Posted by foolio
Hi Jere:

could you tell me what number to use for detection method if I want to use all technique except for CC? (my source doesn't have CC)

I can't figure out the math logic involved:
detect_method - a sum of the detection methods to be used (1 - 255):

-- 1 = black frame detection
-- 2 = logo detection
-- 4 = scene change rate monitoring
-- 8 = fuzzy logic
-- 16 = closed captioning
-- 32 = aspect ration

So AR (32) + FUZZY LOGIC (8) + SCENE DETECT (4) + LOGO (2) + BLACK FRAME (1) = 47??

why is everything 255??
That's just the logic us programmers use. 255 is just a DO EVERYTHING.

In your case you should still be able to use 255 and not have to single out the CC data. If CC data isn't in the file, it won't be used.
Reply With Quote
  #640  
Old 12-01-2004, 06:42 PM
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 foolio
Hi Jere:

could you tell me what number to use for detection method if I want to use all technique except for CC? (my source doesn't have CC)

I can't figure out the math logic involved:
Looks to me like you got if figured out perfectly.
Quote:
Originally Posted by foolio
why is everything 255??
The detect_method is actually a decimal representation of a binary flag sequence. Make sense? If not, think of it like this:
Code:
255 = 0xFF = 11111111b
 
11111111b basically means:
 
1 1 1 1 1 1 1 1
| | | | | | | |
| | | | | | | - Black Frame
| | | | | | --- Logo Detection
| | | | | ----- Scene Changes
| | | | ------- Fuzzy Logic
| | | --------- Closed Captioning
| | ----------- Aspect Ratio
| ------------- Reserved for future use
--------------- Reserved for future use
A one in a certain position means "use me" and a zero means "don't use me".

Since you don't want to use Closed captioning, you should change the Closed captioning bit to a 0 and get 11101111b which is equal to 239 or since the leftmost 2 bits aren't used yet you could also go with 00101111b which (as you discovered) is 47. The end result: using detect_method=239 or detect_method=47 will give you the same results.

Of course you could also ignore this entire post and do exactly what you did that already gave you the correct setting.

Did that help or just confuse you more?

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
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.