[PATCH] Re: [mythtv-users] How well does commercial detection work?

Risto Treksler risto at elkhornbanff.ca
Tue Apr 12 15:01:40 UTC 2005


Hmm, 

I sent this last night but it never showed up on the list, 
So I am resending
...
Fixed it myself :)

The patch is attached and it replaces the previous patch and
addresses all four issues.

1) in strict mode - treat frames as blank only if logo is absent
2) more fixes for the "long long" issue
3) fix for "white frames" triggering commercials
4) do not detect commercials less than 60 sec long, in the middle of a show


PS
I also highly recommend changing the default max and min comm break lengths

-#define MIN_COMM_BREAK_LENGTH   60
-#define MAX_COMM_BREAK_LENGTH  485
+#define MIN_COMM_BREAK_LENGTH   55
+#define MAX_COMM_BREAK_LENGTH  335

The combination of the above changes seems to detect at 99% accuracy 
with no false positives so far for me.


PPS

On Monday 11 April 2005 11:07 pm, Risto Treksler wrote:
> 1) I DO NOT ignore logos in blank frames in STRICT mode

what I meant is that i do not ignore the logo area in strict mode
in effect i do ignore the logo
:)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: commercial_skip.updated.diff.bz2
Type: application/x-bzip2
Size: 1564 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20050412/02c9c16d/commercial_skip.updated.diff.bin


More information about the mythtv-users mailing list