Profiles to share

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

Profiles to share

Post by erik »

Please add you working profile to this topic.
reboot
Posts: 3
Joined: Wed Aug 31, 2005 7:05 pm

Canadian stations profile (some US too)

Post by reboot »

Code: Select all

detect_method=47	;1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ratio, 255=all
verbose=10		;show extra info
fps=29.970		;frames per second (NTSC=29.970, PAL=25)
border=20 		;border around edge of video to ignore
two_pass_logo=1		;run comskip a second time, once the logo is correctly identified
max_brightness=60      ;frame not black if any pixels checked are greater than this (scale 0 to 255)
test_brightness=55      ;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)
max_commercialbreak=361	;maximum length in seconds to consider a segment a commercial break
min_commercialbreak=59	;minimum length in seconds to consider a segment a commercial break
max_commercial_size=331	;maximum time in seconds for a single commercial or multiple commercials if no breaks in between
min_commercial_size=14  ;mimimum time in seconds for a single commercial
min_show_segment_length=61
logo_present_modifier = 0.01
logo_threshold=0.90
live_tv=0
ccCheck=0
delete_logo_file=0
output_default=1	;output the default .txt file
output_videoredo=0	;output a video redo file
min_black_frames_for_break=1;
This works best on stations that have a logo that is not present in commercials, and uses black frames between show/commercial.
erik
Site Admin
Posts: 3369
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

The ini file posted by reboot is optimized for versions before 0.73.
Version 0.73 has substantial different logic then previous versions.
reboot
Posts: 3
Joined: Wed Aug 31, 2005 7:05 pm

Post by reboot »

I used this same profile on versions 0.68 and up.
It seems to work with your versions just as well as the older.
Haven't tried it with 0.75 though :)
Cape-City
Posts: 9
Joined: Tue Sep 13, 2005 8:20 am

Post by Cape-City »

Here is my ini file, i use it with the 0.77 Version :

Code: Select all

; 1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 255=all
detect_method=47 ; 43

; if 10 it shows a lot of extra info, level 5 is also OK, set to 0 to disable
verbose=10

; frame not black if any pixels checked are greater than this (scale 0 to 255)
max_brightness=60

; frame not pure black if any pixels checked are greater than this, will check average brightness (scale 0 to 255)
test_brightness=40

; maximum average brightness for a dim frame to be considered black (scale 0 to 255) 0 means autosetting
max_avg_brightness=20

; maximum length in seconds to consider a segment a commercial break
max_commercialbreak=700

; minimum length in seconds to consider a segment a commercial break
min_commercialbreak=40

; maximum time in seconds for a single commercial or multiple commercials if no breaks in between
max_commercial_size=180

; mimimum time in seconds for a single commercial
min_commercial_size=20

; any segment longer than this will be scored towards show.
min_show_segment_length=200 ; 90

; any frame with sound volume larger than this will not be regarded as black frame
max_volume=250 ; 500

; if you want comskip to tidy up after finishing (1 = yes / 0 = no)
delete_logo_file=1

; create a big excel file for detailed analysis (1 = yes / 0 = no)
output_framearray=0

; set to 1 if you want successive blocks with logo on the transition to be regarded as connected (1 = yes / 0 = no)
connect_blocks_with_logo=1

; if more then this amount of logo is found then logo detection will be disabled
logo_percentile=0.92

; defines the percentage of similarity between frames when trying to detect a logo. higher is more strict (0.0 - 1.0) 
logo_threshold=0.70

; set to 1 if you want to cut also on aspect ratio changes (1 = yes / 0 = no)
cut_on_ar_change=1

; will generate a lower quality commercial detection file while running (1 = yes / 0 = no)
live_tv=0

; any frames with non_uniformity below this level will be possible cutpoints, set to 0 to disable, maximum is 255
non_uniformity=1000 ; 250

; pixels with brightness less then noise level from average brightness will not be counted in non_uniformity
noise_level=5

; if successive frames change more then this amount in brightness a cutpoint is generated, set to 255 to disable
brightness_jump=255

;	force a cut point this amount of seconds before the logo appears (1 = yes / 0 = no)
before_logo=0

;	force a cut point this amount of seconds after the logo disappears (1 = yes / 0 = no)
after_logo=0

; starts the detection process over when a logo is detected (1 = yes / 0 = no)
two_pass_logo=1

; automatically adjust the brightness threshold to be determined a black frame based on the darkest frame decoded (1 = yes / 0 = no) 
intelligent_brightness=0

; utilizes extra code to reject "iffy" logos (1 = yes / 0 = no)
aggressive_logo_rejection=0

; deletes the show after last commercial if its less than 20% of total size - for user who uses past padding (1 = yes / 0 = no)
delete_show_after_last_commercial=1

; shrinks all commercial breaks by a set amount on each side in frames (1 = yes / 0 = no)
padding=0

; the number of pixels on each side to ignore for commercial detection
border=10

; ???  (1 = yes / 0 = no)
min_black_frames_for_break=1

; Output options (1 = yes / 0 = no)
output_videoredo=0
output_womble=0
output_mpgtx=0
output_zoomplayer_chapter=0
output_zoomplayer_cutlist=0
I use Comskip on german DVB Television (I'm using a TwinHan DVB-T Card)

@Erik

Maybe U should post a INI File which contains every possible Switch and
in which Version it dont work anymore or what its default value is.

Greetz
Cape-City
erik
Site Admin
Posts: 3369
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

This ini file has a very good explanation of the various parameters.
Those searching for a full list of parameters should have a look at the tuning guide (tuning.rtf) as it lists (almost?) all parameters.
Fred
Posts: 1
Joined: Wed Oct 26, 2005 12:15 pm
Location: Netherlands

Locality

Post by Fred »

It's important to mention your location when posting your .INI

Some of the 'old' NTSC defaults were really wrong when using them on Dutch broadcasts due to the irregular sizes of the commercials used in The Netherlands.
erik
Site Admin
Posts: 3369
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

The ini file that is in the current Comskip distribution is reported to work out of the box for both PAL and NTSC in both Europe and the USA.
So if tunig is too difficult for you do use the default ini file instead of something tuned for specific conditions because yours may be different and the default ini file is created to be rather robust for different conditions.
The only parameters you should have a look at are
cut_on_ar_change=1 ; 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
These parameters will determine if you will see the previews of tomorrows episode and the trailer of the current episode.
You may want to see them, I don't, so take care.
Post Reply