|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#541
|
||||
|
||||
Quote:
|
#542
|
||||
|
||||
Quote:
-AJ |
#543
|
||||
|
||||
Quote:
|
#544
|
|||
|
|||
I'm on it. It's funny because I already thought of running it on the live recordings. I was going to modify the source to do so but I'd much rather have Jere Jones do the work so it's part of the base and one less thing for me to do.
Jere, what I'd suggest is changing the program so it writes the file as it finds the commercials. Keep the file closed and only open it when you are going to write to it and then close it right away, etc... What I'd suggest is adding a "File Processing Complete" message at the bottom of the text file when you are done processing it. From an STV standpoint what can be done is load the file. If we see the "File Processing Complete" type flag message then we know to treat it exactly as it is today. If it's currently being processed (no flag) then we have a couple of choices. We could re-load the file every 30 seconds/minute etc until we see the flag and know it's complete or we could build in a little smarts. For example if we know this is a commercial break in the file, wait until the user gets to this, then when we get to the commercial break and the code in the OSD is going to skip it we reload the file again. If another break has been found we'de wait until the break to reload the file. If there is no break found then we switch to re-loading every XX seconds, etc... I will surely support this in the Cayars STV as I was planning on doing it anyway! |
#545
|
||||
|
||||
Okay, I've had one of those *standing in the shower* thoughts, so forgive me if this sounds unreasonable. If I understand (from having read all 544 previous posts) correctly, Malore and Jere have been working mostly on the comskip program. For detection purposes you've been mostly concentrating on finding the commercials - why not reverse this? That is, why not try to find the show, if it's not part of the show, skip it. Other then the end bits after the final commercial you normally have 5-10 mins of show with minimal fade to black or black frames present. Maybe you all ready take this into account in some way....but I'd be interested in finding out.
-AJ |
#546
|
||||
|
||||
Quote:
|
#547
|
||||
|
||||
I might have missed this but if I only wanted logo detection and CC in my com processing, would this be possible with a detect_method value of 18 (16+2)?
|
#548
|
||||
|
||||
Quote:
I guess I'm grasping for how exactly to explain what I mean by "detect the show" as there's no simple solution that's going to work in every case. But maybe if there was a min_show_seg_length setting or something - in addition to the all ready present stuff. However, if you do that then within the final, oh, 4-5 mins of the show it would have to be excluded as a lot of shows have a final 1-2 min part after a commercial break. Also, if you record a football game or a race or something you'll run into problems since you never know when they'll go to break (especially with NASCAR races) and how long they'll be in before the next break. Does this make any sense? -AJ |
#549
|
||||
|
||||
Quote:
Jere
__________________
Death to commercials!!! Latest ShowAnalyzer Beta version: 0.9.7
|
#550
|
||||
|
||||
Quote:
Jere
__________________
Death to commercials!!! Latest ShowAnalyzer Beta version: 0.9.7
|
#551
|
||||
|
||||
Quote:
Might be good to have a user adjustable setting... also a setting to exclude this setting towards the end? -AJ |
#552
|
||||
|
||||
Quote:
Quote:
Quote:
Food for thought: Scanning a file while it is recording, watching another or the same file, doing other things, etc, can get VERY processor intensive, so I recommend making LiveDetection(c) an option. Jere
__________________
Death to commercials!!! Latest ShowAnalyzer Beta version: 0.9.7
|
#553
|
||||
|
||||
Quote:
Quote:
Jere
__________________
Death to commercials!!! Latest ShowAnalyzer Beta version: 0.9.7
|
#554
|
||||
|
||||
Quote:
Quote:
-AJ Edit: One other problem I just found with my idea is that some shows also have the small intro bit before the first commercial. So in this case you'd also need a beginning ignore period. So maybe this idea of having a large show segment isn't so good... Last edited by ajuhawk; 11-13-2004 at 06:37 PM. |
#555
|
|||
|
|||
Quote:
Example: 1 1571 40198 42000 42902 45644 64711 67416 70113 73290 92341 95050 97299 99555 120397 126249 154369 158222 159110 161850 181602 189290 208892 216567 240266 244816 278566 278566 <-- Just use the last from of the file but make them the same. |
#556
|
||||
|
||||
There is a way already coded. According to malore, the file parser scans through the file until it finds a line containing only dashes then begins parsing the lines. Kinda like this:
Code:
All the information in the world here doesn't make a difference... -------- 1002 5003 15004 22002 Code:
File Processing Complete -------- 1002 5003 15004 22002 I think this approach may be better because it is kinda "self-documenting". Doing a 0 frame break will surely confuse someone who comes on the scene later. Jere
__________________
Death to commercials!!! Latest ShowAnalyzer Beta version: 0.9.7
Last edited by Jere_Jones; 11-13-2004 at 07:49 PM. |
#557
|
||||
|
||||
Jere,
I was looking through your code and noticed that there's a long list of variables that it is possible for you to import from the .ini file. However, a lot of them are ones that I don't recall having been described before - is there a list of what they are all for somewhere? Secondly - I was messing with 0.61 last night trying to get it to detect all the commercials. After many variations I finally gave up, then this morning it dawned on me that the score_percentile variable wasn't in the latest .ini. So I did a calculation and changed/added this to 0.70 and behold it detected all the commercials fabulously. How do you use this value in your code? Does the show HAVE to be 70% or more of the file (if I have it set to 70%, obviously the variable itself can be changed)? Thanks, -AJ Last edited by ajuhawk; 11-14-2004 at 10:00 AM. |
#558
|
|||
|
|||
That would work just fine.
|
#559
|
||||
|
||||
Quote:
Jere
__________________
Death to commercials!!! Latest ShowAnalyzer Beta version: 0.9.7
|
#560
|
|||
|
|||
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|