H1 not cutting short show sandwiched between two coms

To discuss the tuning of comskip and for posting your ini files
Post Reply
rocket666
Posts: 14
Joined: Fri May 16, 2008 2:51 am

H1 not cutting short show sandwiched between two coms

Post by rocket666 »

I have this happen often, a short show segment between 2 commericals that is not cut.


What I see using the gui is this,


ccccccc ssssss ccccccccc
57..... 61....... 68


ssssss is block 61 and should be combined with the 2 commercial blocks surrounding it. I would think that the H1, should have kicked in.

sssssss is also thought to have a logo, but it's because there's a commercial phone number in the logo area that does not change and the logo value is .81


Can you give me a hint as to what I need to change to get this block to be cut?

thanks




Here's the settings in the log file,

Code: Select all

Settings
--------
[Main Settings]
;the sum of the values for which kind of frames comskip will consider as possible cutpoints: 1=uniform (black or any other color) frame, 2=logo, 4=scene change, 8=resolution change, 16=closed captions, 32=aspect ration, 64=silence, 255=all.
detect_method=255
;Set to 10 to show a lot of extra info, level 5 is also OK, set to 0 to disable
verbose=10
;Frame not black if any of the pixels of the frame has a brightness greater than this (scale 0 to 255)
max_brightness=60
maxbright=1
;Frame not pure black if a small number of the pixels of the frame has a brightness greater than this. To decide if the frame is truly black, comskip will also check average brightness (scale 0 to 255)
test_brightness=40
;
max_avg_brightness=25
;
max_commercialbreak=600
;
min_commercialbreak=5
;
max_commercial_size=250
;
min_commercial_size=4
;
min_show_segment_length=180
;
max_volume=500
;
non_uniformity=500
[Detailed Settings]
min_silence=12
noise_level=5
brightness_jump=200
fps=25
validate_silence=1
validate_uniform=1
validate_scenechange=1
global_threshold=0.85
disable_heuristics=0

The other place that it indicated 61++

Code: Select all

	---------------------
	Initial Commercial List
	---------------------
 0)  33176	 40991	0:04:20.76
 1)  68301	 69208	0:00:30.26
 2)  70110	 75230	0:02:50.83
 3)  95046	104073	0:05:01.20
 4) 121604	123413	0:01:00.36
 5) 127458	130771	0:01:50.54
 6) 150706	152516	0:01:00.39
 7) 154320	157632	0:01:50.51
 8) 172263	180386	0:04:31.03
 9) 197123	205690	0:04:45.85
10) 225035	233757	0:04:51.02
11) 253737	262911	0:05:06.10
12) 279496	287912	0:04:40.81
13) 302964	312004	0:05:01.63
14) 325278	325691	0:00:13.78
15) 342626	354109	0:06:23.14
No change

Logo fraction:              0.6625      
Maximum volume found:         7637
Average volume:                282
Sound threshold:               500
Silence threshold:             100
Minimum volume found:            0
Average frames with silence:    21
Black threshold:                25
Minimum brightness found:       21
Minimum bright pixels found:     1
Minimum dim level found:     -6213
Average brightness:            607
Uniformity level:              500
Average non uniformity:        275
Maximum gap between logo's:    321
Suggested logo_threshold:   0.7750
Suggested shrink_logo:	         0
Max commercial size found:     120
Dominant aspect ratio:      1.4500
Score threshold:            0.8500
Framerate:                  29.97
Total commercial length:    0:47:35.12
Block list after weighing
----------------------------------------------------
  #     sbf  bs  be     fs     fe    sc      len   scr cmb   ar                   cut bri  logo   vol  sil corr stdev        cc

 55:++   19   6  13 130772 150705   0.00  665.098  0.04   0 1.45           EL       ub   272- 1.00  128-  8-  0.000    27 NONE      
 56:--   14  14   0 150706 150747   6.00    1.368  0.33   3 1.45            LC     a    2047+ 0.00    0-  0-  0.000   204 NONE      
 57:--    1   1   0 150748 151167  12.00   13.981  0.21   3 1.85          A LC       b   669+ 0.00    0-  0-  0.000    66 NONE      
 58:--    1   1   0 151168 151617  16.00   14.982  0.20   1 1.85          A LC S     b  1077+ 0.00    0-  0-  0.000   107 NONE      
 59:--    1   1   0 151618 152067  12.00   14.982  0.19   0 1.85          A L  S   a    1453+ 0.00    0-  0-  0.000   145 NONE      
 60:--    4   1   3 152068 152516   6.00   14.948  0.11   0 1.45            L  S     b   879+ 0.00    0-  0-  0.000    87 NONE      
 61:++    4   3   1 152517 154319   0.03   60.127  0.09   0 1.45            L  S     b   829+ 0.81    0-  0-  0.000    82 NONE      
 62:--    3   1   2 154320 155656   2.00   44.578  0.20   0 1.45            L      a b  1494+ 0.00    0-  0-  0.000   149 NONE      
 63:--    2   2   0 155657 156345  12.00   22.956  0.37   3 1.96          A LC     a    1944+ 0.00    0-  0-  0.000   194 NONE      
 64:--    1   1   0 156346 156552  12.00    6.874  0.06   3 1.77          A LC     a b   425- 0.00    0-  0-  0.000    42 NONE      
 65:--   11   1  10 156553 157010  18.50   15.249  0.17   4 1.45            LC S     b  1015+ 0.00    0-  0-  0.000   101 NONE      
 66:--   11  11   0 157011 157299  18.50    9.543  0.96   7 1.45            LC     a    5975+ 0.00    0-  0-  0.000   597 NONE      
 67:--    4   1   3 157300 157473  24.67    5.772  0.24   6 2.09          A LC       b  1005+ 0.00    0-  0-  0.000   100 NONE      
 68:--    9   3   6 157474 157632  12.33    5.272  0.28   3 2.09          A LCN    a b   484- 0.00    0-  0-  0.000    48 NONE      
 69:++    8   7   6 157633 172262   0.00  488.121  0.07   0 1.45           EL       ub   284- 1.00    0-  0-  0.000    28 NONE      

Code: Select all

Block 57 score:	Before - 1.00	After - 1.50	Combined count - 1
Block 56 has no logo.
Block 56 score:	Before - 1.50	After - 3.00
Combining Blocks 56 thru 57 result in strict standard commercial length of 15.35 with a tolerance of 0.567234.
Block 57 score:	Before - 1.50	After - 2.25	Combined count - 2
Block 56 score:	Before - 3.00	After - 4.50	Combined count - 2
Block 57 has no logo.
Block 57 score:	Before - 2.25	After - 4.50
Block 57 AR (1.85) is different from dominant AR(1.45).
Block 57 score:	Before - 4.50	After - 9.00
Block 58 has strict standard length for a commercial.
Block 58 score:	Before - 1.00	After - 3.00
Combining Blocks 56 thru 58 result in strict standard commercial length of 30.33 with a tolerance of 0.567234.
Block 58 score:	Before - 3.00	After - 4.00	Combined count - 1
Block 57 score:	Before - 9.00	After - 12.00	Combined count - 3
Block 56 score:	Before - 4.50	After - 6.00	Combined count - 3
Block 58 has no logo.
Block 58 score:	Before - 4.00	After - 8.00
Block 58 AR (1.85) is different from dominant AR(1.45).
Block 58 score:	Before - 8.00	After - 16.00
Block 59 has strict standard length for a commercial.
Block 59 score:	Before - 1.00	After - 3.00
Block 59 has no logo.
Block 59 score:	Before - 3.00	After - 6.00
Block 59 AR (1.85) is different from dominant AR(1.45).
Block 59 score:	Before - 6.00	After - 12.00
Block 60 has strict standard length for a commercial.
Block 60 score:	Before - 1.00	After - 3.00
Block 60 has no logo.
Block 60 score:	Before - 3.00	After - 6.00
Block 61 has strict standard length for a commercial.
Block 61 score:	Before - 1.00	After - 3.00
Block 61 has logo.
Block 61 score:	Before - 3.00	After - 0.03
Block 62 has no logo.
Block 62 score:	Before - 1.00	After - 2.00
Combining Blocks 63 thru 64 result in strict standard commercial length of 29.83 with a tolerance of 0.500501.
Block 63 score:	Before - 1.00	After - 1.50	Combined count - 1
Block 64 score:	Before - 1.00	After - 1.50	Combined count - 1
Block 63 has no logo.
Block 63 score:	Before - 1.50	After - 3.00
Block 63 AR (1.96) is different from dominant AR(1.45).
Block 63 score:	Before - 3.00	After - 6.00
Combining Blocks 63 thru 64 result in strict standard commercial length of 29.83 with a tolerance of 0.500501.
Block 64 score:	Before - 1.50	After - 2.25	Combined count - 2
Block 63 score:	Before - 6.00	After - 9.00	Combined count - 2
Block 64 has no logo.
Block 64 score:	Before - 2.25	After - 4.50
Block 64 AR (1.77) is different from dominant AR(1.45).
Block 64 score:	Before - 4.50	After - 9.00
Block 65 has strict standard length for a commercial.
Block 65 score:	Before - 1.00	After - 3.00
Combining Blocks 65 thru 66 result in strict standard commercial length of 24.79 with a tolerance of 0.567234.
Block 65 score:	Before - 3.00	After - 4.50	Combined count - 1
Block 66 score:	Before - 1.00	After - 1.50	Combined count - 1
Combining Blocks 65 thru 67 result in strict standard commercial length of 30.56 with a tolerance of 0.734067.
Block 65 score:	Before - 4.50	After - 6.00	Combined count - 2
Block 66 score:	Before - 1.50	After - 2.00	Combined count - 2
Block 67 score:	Before - 1.00	After - 1.33	Combined count - 1
Combining Blocks 65 thru 68 result in non-strict standard commercial length of 35.84 with a tolerance of 0.700701.
Block 65 score:	Before - 6.00	After - 6.94	Combined count - 3
Block 66 score:	Before - 2.00	After - 2.31	Combined count - 3
Block 67 score:	Before - 1.33	After - 1.54	Combined count - 2
Block 68 score:	Before - 1.00	After - 1.16	Combined count - 1
Combining Blocks 63 thru 65 result in strict standard commercial length of 45.08 with a tolerance of 0.500501.
Block 65 score:	Before - 6.94	After - 9.25	Combined count - 4
Block 64 score:	Before - 9.00	After - 12.00	Combined count - 3
Block 63 score:	Before - 9.00	After - 12.00	Combined count - 3
Block 65 has no logo.
Block 65 score:	Before - 9.25	After - 18.50
Combining Blocks 66 thru 67 result in strict standard commercial length of 15.32 with a tolerance of 0.734067.
Block 66 score:	Before - 2.31	After - 3.47	Combined count - 4
Block 67 score:	Before - 1.54	After - 2.31	Combined count - 3
Combining Blocks 66 thru 68 result in strict standard commercial length of 20.59 with a tolerance of 0.700701.
Block 66 score:	Before - 3.47	After - 4.63	Combined count - 5
Block 67 score:	Before - 2.31	After - 3.08	Combined count - 4
Block 68 score:	Before - 1.16	After - 1.54	Combined count - 2
Block 66 has no logo.
Block 66 score:	Before - 4.63	After - 9.25
Combining Blocks 66 thru 67 result in strict standard commercial length of 15.32 with a tolerance of 0.734067.
Block 67 score:	Before - 3.08	After - 4.63	Combined count - 5
Block 66 score:	Before - 9.25	After - 13.88	Combined count - 6
Block 67 has no logo.
Block 67 score:	Before - 4.63	After - 9.25
Block 67 AR (2.09) is different from dominant AR(1.45).
Block 67 score:	Before - 9.25	After - 18.50
Block 68 has non-strict standard length for a commercial.
Block 68 score:	Before - 1.54	After - 2.31
Combining Blocks 66 thru 68 result in strict standard commercial length of 20.59 with a tolerance of 0.700701.
Block 68 score:	Before - 2.31	After - 3.08	Combined count - 3
Block 67 score:	Before - 18.50	After - 24.67	Combined count - 6
Block 66 score:	Before - 13.88	After - 18.50	Combined count - 7
Block 68 has no logo.
Block 68 score:	Before - 3.08	After - 6.17
Block 68 AR (2.09) is different from dominant AR(1.45).
Block 68 score:	Before - 6.17	After - 12.33
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: H1 not cutting short show sandwiched between two coms

Post by erik »

The H6 rule should be able to do the trick
Why do you use
min_commercial_size=4?
if you set it to
min_commercial_size=70 then H6 should kick in
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: H1 not cutting short show sandwiched between two coms

Post by erik »

Or you could set the logo present modifier to 0.5 as the strict modifier will then be stronger
rocket666
Posts: 14
Joined: Fri May 16, 2008 2:51 am

Re: H1 not cutting short show sandwiched between two coms

Post by rocket666 »

ahhh, the min commerical size is biting me, eh? Does this also affect H1?

I had set this to 4 because I used to capture recordings as I was at the same time watching them on my dvr (and manually skipping coms), and later would remove commercials totally. This way my input to comskip would have some commercials mostly skipped already, but there'd still be little stubs with black frames around them.

But no importance, since I've now changed to capturing the entire show first, then watch after comskip. This seems to do much better. But I had forgotten about that little parameter.

So, thanks for the tip, I'll see how this does.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Re: H1 not cutting short show sandwiched between two coms

Post by erik »

MMm.
Must have been sleeping
The min commercial break parameter will not help as block 61 is regarded as show and not as commercial.
The min_show_segment_length parameter could be use to discard any show segments that are shorter then min_show_segment_length but I currently do not do that and there are many cases where there are very short show segments between commercials.
You best chance is with the logo modifier. Change
logo_present_modifier=0.01
to
logo_present_modifier=0.5
Post Reply