New Zealand tuned ini file

To discuss the tuning of comskip and for posting your ini files
Post Reply
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

New Zealand tuned ini file

Post by erik »

This ini file works for New Zealand. (thanks to Linsay)
It also works for any broadcast which uses logo's during show and has little or no black frames during commercials.
It requires at least one black frame before and after the commercial break.
Even when many black frames are present during commercials it will work.

It will not work well without logo or with always logo (Discovery channel) and a show that contains black frames (like dark scenes)

Code: Select all

detect_method=43	;1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 255=all
verbose=10		;show a lot of extra info, level 5 is also OK, set to 0 to disable
max_brightness=60      ;frame not black if any pixels checked are greater than this (scale 0 to 255)
test_brightness=40      ;frame not pure black if any pixels checked are greater than this, will check average brightness (scale 0 to 255)
max_avg_brightness=20	;maximum average brightness for a dim frame to be considered black (scale 0 to 255) 0 means autosetting
max_commercialbreak=600 ;maximum length in seconds to consider a segment a commercial break
min_commercialbreak=10	;minimum length in seconds to consider a segment a commercial break
max_commercial_size=220	;maximum time in seconds for a single commercial or multiple commercials if no breaks in between
min_commercial_size=4   ;mimimum time in seconds for a single commercial

min_show_segment_length=120 		; any segment longer than this will be scored towards show.
excessive_length_modifier=1

non_uniformity=1000
max_volume=500		; any frame with sound volume larger than this will not be regarded as black frame
intelligent_brightness=0 ; 
delete_logo_file=0	; set to 1 if you want comskip to tidy up after finishing
output_framearray=0	; create a big excel file for detailed analysis, set to 0 to disable
connect_blocks_with_logo=1	; set to 1 if you want successive blocks with logo on the transition to be regarded as connected, set to 0 to disable
logo_percentile=0.92	; if more then this amount of logo is found then logo detection will be disabled
logo_threshold=0.70
aggressive_logo_rejection=0
cut_on_ar_change=0	; set to 1 if you want to cut also on aspect ratio changes, set to 0 to disable
delete_show_after_last_commercial=1; delete the last block if its a show and after a commercial
delete_show_before_or_after_current=1
shrink_logo=0	; Reduce the duration of the logo with this amount of seconds
output_videoredo=0
output_womble=0
output_mpgtx=0
output_zoomplayer_chapter=0
output_zoomplayer_cutlist=0
padding=0
live_tv=0
CYaBro
Posts: 2
Joined: Mon May 01, 2006 9:04 am

Post by CYaBro »

Help! The above ini file doesn't work.
I've been playing around with comskip for a few days now and can't get it to detect commercials correctly.
I found this new zealand ini file yesterday and tried it but didn't work either.
I'm only recording from TV1, TV2 & TV3 in NZ which all have a logo on during program only, not during the commercial breaks.
The logo log file contains the logo so it is detecting that OK but most of the time it doesn't find any commercials. If it does find anything it's usually a black screen during a commercial so is only finding one place to make a cut.

What am I doing wrong?
Do you need anything else from me?
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

Could you follow this procedure?
http://mk.kaashoek.com/comskip/viewtopic.php?t=34
and I am glad to support you in tuning.
CYaBro
Posts: 2
Joined: Mon May 01, 2006 9:04 am

Post by CYaBro »

OK will do.
Thanks erik!
mdsflyer
Posts: 21
Joined: Thu May 25, 2006 11:06 am

Post by mdsflyer »

Kia Ora, from the land of the long white cloud. This is working pretty well for me on TV1, TV2, TV3 and C4. I use it with a channel specific logo.txt file for each channel and so far so very good. NB I have selected the output to demux and for cuttermaran this may not be the cleaning method you are using so be sure to adjust as required. Hope this helps you to a commercial free life, makes life so much better when watching movies on TV, thanks to Erik for all his hard work.


***********************************************************

detect_method=47 ;1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 64=silence, 255=all
validate_silence=1 ; Default, set to 0 to force using this clues if selected above.
validate_uniform=1 ; Default, set to 0 to force using this clues (like pure white frames) if blackframe is selected above.
validate_scenechange=1 ; Default, set to 0 to force using this clues if selected above.
verbose=10 ;show a lot of extra info, level 5 is also OK, set to 0 to disable
max_brightness=58 ;frame not black if any pixels checked are greater than this (scale 0 to 255)
test_brightness=38 ;frame not pure black if any pixels checked are greater than this, will check average brightness (scale 0 to 255)
max_avg_brightness=18 ;maximum average brightness for a dim frame to be considered black (scale 0 to 255) 0 means autosetting
max_commercialbreak=300 ;maximum length in seconds to consider a segment a commercial break
min_commercialbreak=25 ;minimum length in seconds to consider a segment a commercial break
max_commercial_size=125 ;maximum time in seconds for a single commercial or multiple commercials if no breaks in between
min_commercial_size=4 ;mimimum time in seconds for a single commercial
min_show_segment_length=125 ; any segment longer than this will be scored towards show.
non_uniformity=500
max_volume=500 ; any frame with sound volume larger than this will not be regarded as black frame
min_silence=20 ; Any deep silence longer than this amount of frames is a possible cutpoint
ticker_tape=0 ; Amount of pixels from bottom to ignore in all processing
punish=0 ; Compare to average for sum of 1=brightness, 2=uniform 4=volume, 8=silence, 16=schange, set to 0 to disable
punish_threshold=1.3 ; Multiply when amount is above average * punish_threshold
punish_modifier=2 ; When above average * threshold multiply score by this value
intelligent_brightness=0 ; Set to 1 to use a USA specific algorithm to tune some of the settings, not adviced outside the USA
logo_percentile=0.92 ; if more then this amount of logo is found then logo detection will be disabled
logo_threshold=0.50
punish_no_logo=1 ; Default, set to 0 to avoid show segments without logo to be scored towards commercial
aggressive_logo_rejection=0
connect_blocks_with_logo=1 ; set to 1 if you want successive blocks with logo on the transition to be regarded as connected, set to 0 to disable
cut_on_ar_change=0 ; set to 1 if you want to cut also on aspect ratio changes, set to 0 to disable
delete_show_after_last_commercial=0 ; set to 1 if you want to delete the last block if its a show and after a commercial
delete_show_before_or_after_current=0 ; set to 1 if you want to delete the previous and the next show in the recording, this can lead to the deletion of trailers of next show
shrink_logo=5 ; Reduce the duration of the logo with this amount of seconds
after_logo=0 ; set to number of seconds after logo disappears comskip should start to search for silence to insert an additional cutpoint
padding=-10
ms_audio_delay=5
max_repair_size=40 ; Will repair maximum 40 missing MPEG frames in the timeline, set to 1 to disable repairing for players that don't use PTS.
delete_logo_file=0 ; set to 1 if you want comskip to tidy up after finishing
output_debugwindow=0
output_framearray=0 ; create a big excel file for detailed analysis, set to 0 to disable
output_videoredo=0
output_womble=0
output_mls=0 ; set to 1 if you want MPeg Video Wizard bookmark file output
output_cuttermaran=1
output_mpeg2schnitt=0
output_mpgtx=0
output_dvrcut=0
output_zoomplayer_chapter=0
output_zoomplayer_cutlist=0
output_edl=0
output_edlx=0
output_vcf=0
output_btv=0 ; set to 1 if you want Beyond TV chapter cutlist output
output_projectx=0 ; set to 1 if you want ProjectX cutlist output (Xcl)
output_demux=1 ; set to 1 if you want comskip to demux the mpeg file while scanning
sage_framenumber_bug=0
sage_minute_bug=0
live_tv=0 ; set to 1 if you use parallelprocessing and need the output while recording
cuttermaran_options="cut=\"true\" unattended=\"true\" muxResult=\"false\" snapToCutPoints=\"true\" closeApp=\"true\""
mpeg2schnitt_options="mpeg2schnitt.exe /S /E /R25 /Z %2 %1"
dvrcut_options="dvrcut \"%s.dvr-ms\" \"%s_clean.dvr-ms\" "
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

You lucky people!
max_commercialbreak=300
we need
max_commercialbreak=600

One word of caution
max_avg_brightness=18
is very low.
If you record on lower quality or do have some noise you may have to increase this to 20 or 22.
clowg
Posts: 2
Joined: Sun Apr 29, 2007 7:16 am

channel specific logo.txt

Post by clowg »

Hi there

Another kiwi in search of commercial free nirvana...

Can I please ask what a 'channel specific logo.txt' is?

Geoff.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

On some channels you have sometimes unreliable logo learning.
To prevent this you could re-use a logo in a logo.txt file that has been correctly learned by comskip and tell comskip to use this logo file instead of doing logo learning.
This re-used logo file is alway specific for a certain channel.
clowg
Posts: 2
Joined: Sun Apr 29, 2007 7:16 am

Post by clowg »

Do these logo files get created by Comskip as it runs?
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

Yes (did you read the manual?)
They have *.logo.txt as an extension.
They only are created when a logo is found and
delete_logo_file=0
is set (the default in the ini file)
Post Reply