Tweak for Canada

To discuss the tuning of comskip and for posting your ini files
Post Reply
Nortafett
Posts: 14
Joined: Mon Mar 13, 2006 6:53 pm

Tweak for Canada

Post by Nortafett »

Seems to work pretty good so far with comskip79_28.exe, its only been tested on about 12 shows...but it has been 100% in cutting commercials out and the junk after the end of the show

fps=29.97 ;NTSC=29.97 PAL=25
detect_method=255 ;47 ;1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 255=all
verbose=10 ;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=0 ;maximum average brightness for a dim frame to be considered black (scale 0 to 255) 0 means autosetting
max_commercialbreak=290 ;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=61 ;120 ;maximum time in seconds for a single commercial or multiple commercials if no breaks in between
min_commercial_size=14 ;4 ;mimimum time in seconds for a single commercial
min_show_segment_length=260 ;60 ; any segment longer than this will be scored towards show.
non_uniformity=250
max_volume=0 ;500 ; any frame with sound volume larger than this will not be regarded as black frame
ticker_tape=0 ; Amount of pixels from bottom to ignore in all processing
intelligent_brightness=1 ;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.70 ;0.80
aggressive_logo_rejection=1 ;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=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=0 ;1 ; This can lead to the deletion of trailers of next show
delete_show_before_first_commercial=0
before_logo=0 ;1
after_logo=0 ;1
shrink_logo=0 ;5 ; Reduce the duration of the logo with this amount of seconds
padding=0
delete_logo_file=1 ; set to 1 if you want comskip to tidy up after finishing
output_framearray=1 ; create a big excel file for detailed analysis, set to 0 to disable
output_videoredo=1
output_womble=0
output_cuttermaran=0
output_mpgtx=0
output_zoomplayer_chapter=0
output_zoomplayer_cutlist=0
output_edl=0
live_tv=0
excessive_length_modifier=0.01
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

Thanks for the post!

The fps setting is no longer needed because comskip reads the fps from the mpeg file.

Nice for people like me that have to test both NTSC and PAL files :D
Green_Star
Posts: 3
Joined: Wed Jul 12, 2006 3:58 pm

Post by Green_Star »

I am newbie doing this kind of work, I am not sure how to use these settings. I guess i just need to copy this text and save as comskip.ini in comskip folder, is that correct?

I am trying for canada channels.

Thanks in advance
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

Indeed.
Nortafett
Posts: 14
Joined: Mon Mar 13, 2006 6:53 pm

Post by Nortafett »

Here is another I am currently using. And oddly enough I find comskip 79.39 to work the best for me. Although I haven't tried 79.69 yet.

detect_method=255 ;1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 64=silence, 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=0 ;maximum average brightness for a dim frame to be considered black (scale 0 to 255) 0 means autosetting
max_commercialbreak=475 ;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=61 ;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=200 ; any segment longer than this will be scored towards show.
non_uniformity=250
max_volume=0 ; 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
volume_slip=22
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=1 ; 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.80
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=1 ; 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
delete_show_before_first_commercial=0
before_logo=0 ;1
shrink_logo=0 ; 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=0
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_framearray=0 ; create a big excel file for detailed analysis, set to 0 to disable
output_videoredo=1
output_womble=0
output_cuttermaran=0
output_mpeg2schnitt=0
output_mpgtx=1
output_zoomplayer_chapter=0
output_zoomplayer_cutlist=0
output_edl=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=0 ; set to 1 if you want comskip to demux the mpeg file while scanning
live_tv=0 ; set to 1 if you use parallelprocessing and need the output while recording
excessive_length_modifier=0.01
cuttermaran_options="cut=\"true\" unattended=\"true\" muxResult=\"false\" snapToCutPoints=\"true\" closeApp=\"true\""
mpeg2schnitt_options="mpeg2schnitt.exe /S /E /R25 /Z %2 %1"
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

Thanks for the post.

Could you mail me a .csv file that works with build 39 and does not with a newer version?
I did make some changes in the internals. Maybe the wrong.....
Nortafett
Posts: 14
Joined: Mon Mar 13, 2006 6:53 pm

Post by Nortafett »

Ahhh
It's been awhile since I had to trouble shot anything erik. I might need a refresher. I ran some tests lastnight before bed....and .69, .62, and .65. Only ones I tried....seem to be crashing when they finish scanning. I would have thought it was something to do with the comp...but build 39 works fine.

It might be a few days before I can get much further into it....I have to paint the kitchen :roll:
Nortafett
Posts: 14
Joined: Mon Mar 13, 2006 6:53 pm

Post by Nortafett »

nm about the versions crashing erik.....seems to be something to do with me trying to just copy my custom ini file im using. They work fine with default ini's. I guess i'll have to leave certain lines in or something...and manually edit in my numbers.

I should also note....39 seems to work better on a few shows. When I noticed a problem with newer versions. Its weird....new versions work great..then it runs into one recording and may totally blow it. The I will run that same show through 39...and bingo detects correctly.
So I have just been sticking with 39....it seems to work pretty good. Im recording about 15-30 shows a week. So trying out a new version could take me forever to check out.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

You have to change one line in you ini file
set
output_framearray=1
and run build 39
That will generate a file with the same name as the mpeg input file but with the extension .csv.
Mail me your ini file and the generated .csv file.
I will try to find what the problem is.
You better paint the kitchen! :D
Post Reply