Looking for more info on "disable_heuristics="

To discuss the tuning of comskip and for posting your ini files
Post Reply
sass
Posts: 9
Joined: Thu Jun 28, 2012 11:33 pm

Looking for more info on "disable_heuristics="

Post by sass »

I've read everything I can find on the "disable_heuristics=" setting but can't figure out exactly what H1, H2 etc refers to in the log file.

From the list of Comskip commands:
disable_heuristics=4 (0-255, bitmask)
; Bitmask, when a bit is set the corresponding heuristics method is disabled. H1 -> 1, H2 -> 2, H3 ->4, H4 -> 8, etc
;; This is useful when certain heuristics fail to improve the results and have to be disabled. Set verbose=10 and inspect the log file for the applied heuristics. Each heuristic is identified with an H followed by a number from 1 till 7
With verbose=10, I find this "Block list after weighing" table at the end of the log with a line of lower case acronyms as the column headers. Are these the heuristics refered to as H1, H2 etc?
# sbf bs be fs fe sc len scr cmb ar cut bri logo vol sil corr stdev cc
0:++ 20 0 20 1 957 99.99 38.240 0.40 1 1.26 LC b 1687+ 0.00 1160+ 94+ 0.000 168
1:++ 22 20 2 958 4477 3.00 140.760 0.10 1 1.26 LC v 679- 0.00 716- 62- 0.000 67
2:++ 3 2 2 4478 12415 0.00 317.480 0.08 0 1.26 EL v 488- 0.87 790- 69- 0.000 48
If so, can anyone explain what the acronyms stand for please?
If not, could someone post a section of a log file showing where I find them please?

Many thanks.
erik
Site Admin
Posts: 3369
Joined: Sun Aug 21, 2005 3:49 pm

Re: Looking for more info on "disable_heuristics="

Post by erik »

Yes, in the log file they are listed in the final block list as H1, H2, H3

The heuristics are very complex rules and their performance depend of many conditions.
Just try them and if they fail disable.
sass
Posts: 9
Joined: Thu Jun 28, 2012 11:33 pm

Re: Looking for more info on "disable_heuristics="

Post by sass »

I looked through the log files for about 30 different shows and in about 25% of them, found usually a single line at the bottom of the table headed "Fuzzy scoring of the blocks".

Here's the complete list from all 30 shows.

Code: Select all

H1 Discarding cblock 49 because too short and between two strong commercial blocks.
H1 Discarding cblock 61 because too short and between two strong commercial blocks.
H1 Discarding cblock 3 because too short and between two strong commercial blocks.
H2 Added cblock 11 because short and after strict commercial.
H2 Added cblock 28 because after show, short and before strict commercial.
H4 Added cblock 21 because of large black gap with cblock 22
H5 Deleting cblock 24 of 59 seconds because it comes after the last commercial and its too short.
H5 Deleting cblock 13 of 121 seconds because it comes after the last commercial and its too short.
H6 Deleting block 21 because it is part of a too short or too long commercial.
Then I found Erik's complete list in this topic viewtopic.php?f=2&t=474

Code: Select all

H1: Deletes short show blocks between two commercial blocks
H2: Deletes short show blocks before or after commercials for various reasons
H3: Deletes or adds short blocks based on Logo interpretation
H4: Adds short blocks because of various reasons
H5: Deletes show block before the first or after the last commercial
H6: Deletes too short or too long commercials and too short commercials at the start of the end of the recording
      Related settings
         max_commercialbreak=600
         min_commercialbreak=20
         min_commercial_break_at_start_or_end=39
H7: Tries to find the start of the show and deletes the short part of the previous show.
So to set "disable_heuristics", does it work the same way as "detect_method"?

H1=1
H2=2
H3=4
H4=8
H5=16
H6=32
H7=64

To disable say, H1 and H5, you set disable_heuristics=17?

Have I got it right?
erik
Site Admin
Posts: 3369
Joined: Sun Aug 21, 2005 3:49 pm

Re: Looking for more info on "disable_heuristics="

Post by erik »

yes!
sass
Posts: 9
Joined: Thu Jun 28, 2012 11:33 pm

Re: Looking for more info on "disable_heuristics="

Post by sass »

Great, thanks Erik.
LastButNotLeast
Posts: 39
Joined: Tue Jan 31, 2012 12:13 am

Re: Looking for more info on "disable_heuristics="

Post by LastButNotLeast »

Please let us know what your experimentation reveals.
Post Reply