Comskip Support Forum

Comskip is a free commercial detector, browse the forum for more information
It is currently Thu Sep 20, 2018 2:22 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: USA OTA HD
PostPosted: Wed Jun 29, 2016 7:56 pm 
Offline

Joined: Wed Jun 29, 2016 7:30 pm
Posts: 19
I've been working with OTA tuning and thought other people may appreciate it. This was tested on Elementary, Castle, Stanley Cup Final, NBA Final, MLB Baseball, Olympic Trials, Toy Story, Saved by the Bell, and America Ninja Warrior. ABC, CBS, NBC was, more or less, perfect with what I have tested so far.
There are a couple of pointers that need to be made. Any SD video played OTA will have questionable results. Saved by the Bell in particular caught 2/3 commercials and an Elementary rerun was horrific. If you live in unstable weather climates, such as storms, heat advisory, etc..., then this will read the advisory on the screen, treat it like a logo and not remove any of the commercials. logo_at_bottom=1 "may" easily fix it, depending upon where the logo is located. NBC tends to have its logo at the top, you have been warned. I use parrellelprocessing, so my live_tv=1.
Also, if anybody is working on making those pesky SD videos work correctly, please comment.

; See comskip.txt in the distribution zip file for many settable parameters, read manual.html, tuning.html and debugwindow.html for how to tune and debug comskip
detect_method=107 ; 1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 64=silence, 128=cutscenes, 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=1 ; 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=25 ; 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=4 ; 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=126 ; Any segment longer than this will be scored towards show.
non_uniformity=500 ; Set to 0 to disable cutpoints based on uniform frames
max_volume=500 ; Any frame with sound volume larger than this will not be regarded as black frame
max_silence=100 ;
min_silence=12 ; 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
logo_at_bottom=0 ; Set to 1 to search only for logo at the lower half of the video, do not combine with subtitle setting
use_existing_logo_file=1 ; Use logo file already created at beginning of show, default 0
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.75 ; Digital signals can be higher
min_black_frames_for_break=1 ;
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
delay_logo_search=0 ;
logo_filter=4 ; Set the size of the filter to apply to bad logo detection, 4 seems to be a good value.
edge_step=2 ; New, default 1
cut_on_ar_change=1 ; Set to 1 if you want to cut also on aspect ratio changes when logo is present, set to 2 to force cuts on aspect ratio changes. set to 0 to disable
delete_show_after_last_commercial=1 ; Set to 1 if you want to delete the last block if its a show and after a commercial
delete_show_before_first_commercial=0 ; New, default 0
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_block_after_commercial=0 ; Set to max size of block in seconds to be discarded, set to 0 to disable
remove_before=0 ; Amount of seconds of show to be removed before ALL commercials
remove_after=0 ; Amount of seconds of show to be removed after ALL commercials
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=1.5
ms_audio_delay=5
volume_slip=40
skip_b_frames=0 ; Set to 1 to force Comskip to skip frames for higher processing speed.
hardware_decode=0 ; Set to 1 to enable hardware accelerated video decoding, only available in donator version
thread_count=4 ; Set to utilize Quad Core
max_repair_size=200 ; Will repair maximum 200 missing MPEG frames in the timeline, set to 0 to disable repairing for players that don't use PTS.
disable_heuristics=4 ; Bit pattern for disabling heuristics, adding 1 disables heristics 1, adding 2 disables heristics 2, adding 4 disables heristics 3, 255 disables all heuristics
delete_logo_file=1 ; 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_data=0 ; Create a dump of the user data channel, used for CC and XDS (such as V-Chip info). Can be use together with output_framearray to remote debug CC decoding
output_videoredo=0 ; The old videoredo format
output_videoredo3=0 ; The new videoredo v3 format.
output_womble=0
output_mls=0 ; Set to 1 if you want MPeg Video Wizard bookmark file output
output_cuttermaran=0
output_mpeg2schnitt=0
output_mpgtx=0
output_dvrcut=0
output_zoomplayer_chapter=0
output_zoomplayer_cutlist=0
output_edl=1
output_dvrmstb=0 ; Set to 1 if you're running DVRMS-Toolbox
output_edlx=0
output_vcf=0
output_bsplayer=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_avisynth=0
output_vdr=0 ; Set to 1 if you want XBMC to skipping commercials
output_demux=0 ; Set to 1 if you want comskip to demux the mpeg file while scanning
sage_framenumber_bug=0
sage_minute_bug=0
live_tv=1 ; Set to 1 if you use parallelprocessing and need the output while recording
live_tv_retries=4 ; Change to 16 when using live_tv in BTV, used for mpeg PS and TS
dvrms_live_tv_retries=300 ; Only used for dvr_ms
standoff=0 ; Change to 8000000 when using live_tv in BTV
cuttermaran_options="cut=\"true\" unattended=\"true\" muxResult=\"false\" snapToCutPoints=\"true\" closeApp=\"true\""
mpeg2schnitt_options="mpeg2schnitt.exe /S /E /R25 /Z %2 %1"
avisynth_options="LoadPlugin(\"MPEG2Dec3.dll\") \nMPEG2Source(\"%s\")\n"
dvrcut_options="dvrcut \"%s.dvr-ms\" \"%s_clean.dvr-ms\" "
windowtitle="Comskip - %s"


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Thu Jun 30, 2016 8:13 am 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3209
You can use the ticker_tape setting to hide scrolling text/warnings at the bottom of the screen and still be able to catch a logo (if its above the ticker tape)


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Thu Jun 30, 2016 6:03 pm 
Offline

Joined: Wed Jun 29, 2016 7:30 pm
Posts: 19
My local news utilizes the top left portion of the screen. Is there a logo_at_top=0 parameter?


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Fri Jul 01, 2016 6:31 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3209
subtitles=1


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Sat Jul 02, 2016 3:03 am 
Offline

Joined: Wed Jun 29, 2016 7:30 pm
Posts: 19
comskip.txt indicates that the subtitles parameter only stops looking for the lower half rather than upper, but I will be able to do some testing shortly. What about ignore_side? Is there ignore_leftside=1 parameter?


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Sat Jul 02, 2016 10:56 am 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3209
No


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Wed Jul 06, 2016 8:16 pm 
Offline

Joined: Wed Jun 29, 2016 7:30 pm
Posts: 19
This is my current comskip.ini file. The previous one I posted was testing oriented. Sorry about that.

Code:
; See comskip.txt in the distribution zip file for many settable parameters, read manual.html, tuning.html and debugwindow.html for how to tune and debug comskip
detect_method=107         ; 1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 64=silence, 128=cutscenes, 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=1            ; 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=25         ; Maximum average brightness for a dim frame to be considered black (scale 0 to 255) 0 means autosetting
maxbright=1            ; New
brightness_jump=200         ; New
max_commercialbreak=600       ; Maximum length in seconds to consider a segment a commercial break
min_commercialbreak=21         ; Minimum length in seconds to consider a segment a commercial break, some sports require lower numbers than normal tv shows
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=126       ; Any segment longer than this will be scored towards show (sports and 30 minute programming), increase this to 250 for 1 hour long programming
non_uniformity=500         ; Set to 0 to disable cutpoints based on uniform frames
max_volume=500            ; Any frame with sound volume larger than this will not be regarded as black frame
max_silence=100            ;
min_silence=12            ; Any deep silence longer than this amount  of frames is a possible cutpoint
noise_level=5            ; New
ticker_tape=0            ; Amount of pixels from bottom to ignore in all processing
ignore_side=0            ; New, default 0
subtitles=0            ; New, default 0
logo_at_bottom=0         ; Set to 1 to search only for logo at the lower half of the video, do not combine with subtitle setting
use_existing_logo_file=1             ; Use logo file already created at beginning of show, default 0
two_pass_logo=1            ; New
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 advised 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.75         ; Digital signals can be higher
min_black_frames_for_break=1      ;
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
delay_logo_search=0         ;
logo_filter=2                     ; Set the size of the filter to apply to bad logo detection, 4 seems to be a good value
edge_step=2            ; New, default 1
cut_on_ar_change=1         ; Set to 1 if you want to cut also on aspect ratio changes when logo is present, set to 2 to force cuts 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_first_commercial=0   ; New, default 0
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_block_after_commercial=0      ; Set to max size of block in seconds to be discarded, set to 0 to disable
remove_before=0            ; Amount of seconds of show to be removed before ALL commercials
remove_after=0            ; Amount of seconds of show to be removed after ALL commercials
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=1.5
ms_audio_delay=5
volume_slip=40
skip_b_frames=0            ; Set to 1 to force Comskip to skip frames for higher processing speed.
hardware_decode=0         ; Set to 1 to enable hardware accelerated video decoding, only available in donator version
thread_count=4            ; Set to utilize Quad Core
max_repair_size=200         ; Will repair maximum 200 missing MPEG frames in the timeline, set to 0 to disable repairing for players that don't use PTS
disable_heuristics=4         ; Bit pattern for disabling heuristics, adding 1 disables heristics 1, adding 2 disables heristics 2, adding 4 disables heristics 3, 255  disables all heuristics
delete_logo_file=1         ; 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_data=0            ; Create a dump of the user data channel, used for CC and XDS (such as V-Chip info). Can be use together with output_framearray to remote debug CC decoding
output_videoredo=0         ; The old videoredo format
output_videoredo3=0         ; The new videoredo v3 format
output_womble=0
output_mls=0            ; Set to 1 if you want MPEG Video Wizard bookmark file output
output_cuttermaran=0
output_mpeg2schnitt=0
output_mpgtx=0
output_dvrcut=0
output_zoomplayer_chapter=0
output_zoomplayer_cutlist=0
output_edl=1
output_dvrmstb=0         ; Set to 1 if you're running DVRMS-Toolbox
output_edlx=0
output_vcf=0
output_bsplayer=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_avisynth=0
output_vdr=0            ; Set to 1 if you want XBMC to skipping commercials
output_demux=0            ; Set to 1 if you want comskip to demux the mpeg file while scanning
sage_framenumber_bug=0
sage_minute_bug=0
live_tv=1            ; Set to 1 if you use parallelprocessing and need the output while recording
live_tv_retries=2         ; Change to 16 when using live_tv in BTV, used for mpeg PS and TS
dvrms_live_tv_retries=300      ; Only used for dvr_ms
standoff=0            ; Change to 8000000 when using live_tv in BTV
cuttermaran_options="cut=\"true\" unattended=\"true\" muxResult=\"false\" snapToCutPoints=\"true\" closeApp=\"true\""
mpeg2schnitt_options="mpeg2schnitt.exe /S /E /R25  /Z %2 %1"
avisynth_options="LoadPlugin(\"MPEG2Dec3.dll\") \nMPEG2Source(\"%s\")\n"
dvrcut_options="dvrcut \"%s.dvr-ms\" \"%s_clean.dvr-ms\" "
windowtitle="Comskip - %s"


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Tue Oct 18, 2016 2:25 am 
Offline

Joined: Wed Jun 29, 2016 7:30 pm
Posts: 19
Here is my current comskip.ini file. There are 30 minute programs that still aren't recording properly.

Code:
; See comskip.txt in the distribution zip file for many settable parameters, read manual.html, tuning.html and debugwindow.html for how to tune and debug comskip
detect_method=107         ; 1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 64=silence, 128=cutscenes, 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=0            ; 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=25         ; Maximum average brightness for a dim frame to be considered black (scale 0 to 255) 0 means autosetting
maxbright=1            ; New
brightness_jump=200         ; New
max_commercialbreak=600       ; Maximum length in seconds to consider a segment a commercial break
min_commercialbreak=4         ; 24 Default, Minimum length in seconds to consider a segment a commercial break, some sports require lower numbers than normal tv shows
max_commercial_size=140         ; 125 Default, 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=250       ; Any segment longer than this will be scored towards show (sports and 30 minute programming can have 126)
non_uniformity=500         ; Set to 0 to disable cutpoints based on uniform frames
max_volume=500            ; Any frame with sound volume larger than this will not be regarded as black frame
max_silence=100            ;
min_silence=12            ; Any deep silence longer than this amount  of frames is a possible cutpoint
noise_level=5            ; New
ticker_tape=0            ; Amount of pixels from bottom to ignore in all processing
ignore_side=0            ; New, default 0
subtitles=0            ; New, default 0
logo_at_bottom=0         ; Set to 1 to search only for logo at the lower half of the video, do not combine with subtitle setting
use_existing_logo_file=1             ; Use logo file already created at beginning of show, default 0
two_pass_logo=1            ; New
punish=1            ; 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=4         ; 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 advised 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         ; Digital signals can be higher
global_threshold=1.79         ; New
min_black_frames_for_break=1      ; Default 1
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
delay_logo_search=0         ;
logo_filter=0                     ; Set the size of the filter to apply to bad logo detection, 4 seems to be a good value
edge_step=2            ; New, default 1
cut_on_ar_change=1         ; Set to 1 if you want to cut also on aspect ratio changes when logo is present, set to 2 to force cuts 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_first_commercial=0   ; New, default 0
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_block_after_commercial=0      ; Set to max size of block in seconds to be discarded, set to 0 to disable
remove_before=0            ; Amount of seconds of show to be removed before ALL commercials
remove_after=0            ; Amount of seconds of show to be removed after ALL commercials
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
before_logo=0            ; Set to number of seconds before logo appears comskip should start to search for silence to insert an additional cutpoint
padding=0.50
ms_audio_delay=5
volume_slip=40
skip_b_frames=0            ; Set to 1 to force Comskip to skip frames for higher processing speed.
hardware_decode=0         ; Set to 1 to enable hardware accelerated video decoding, only available in donator version
thread_count=4            ; Set to utilize Quad Core
max_repair_size=200         ; Will repair maximum 200 missing MPEG frames in the timeline, set to 0 to disable repairing for players that don't use PTS
disable_heuristics=4         ; Bit pattern for disabling heuristics, adding 1 disables heristics 1, adding 2 disables heristics 2, adding 4 disables heristics 3, 255  disables all heuristics
delete_logo_file=1         ; 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_data=0            ; Create a dump of the user data channel, used for CC and XDS (such as V-Chip info). Can be use together with output_framearray to remote debug CC decoding
output_videoredo=0         ; The old videoredo format
output_videoredo3=0         ; The new videoredo v3 format
output_womble=0
output_mls=0            ; Set to 1 if you want MPEG Video Wizard bookmark file output
output_cuttermaran=0
output_mpeg2schnitt=0
output_mpgtx=0
output_dvrcut=0
output_zoomplayer_chapter=0
output_zoomplayer_cutlist=0
output_edl=1
output_dvrmstb=0         ; Set to 1 if you're running DVRMS-Toolbox
output_edlx=0
output_vcf=0
output_bsplayer=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_avisynth=0
output_vdr=0            ; Set to 1 if you want XBMC to skipping commercials
output_demux=0            ; Set to 1 if you want comskip to demux the mpeg file while scanning
sage_framenumber_bug=0
sage_minute_bug=0
live_tv=1            ; Set to 1 if you use parallelprocessing and need the output while recording
live_tv_retries=1         ; Change to 16 when using live_tv in BTV, used for mpeg PS and TS
dvrms_live_tv_retries=300      ; Only used for dvr_ms
standoff=0            ; Change to 8000000 when using live_tv in BTV
cuttermaran_options="cut=\"true\" unattended=\"true\" muxResult=\"false\" snapToCutPoints=\"true\" closeApp=\"true\""
mpeg2schnitt_options="mpeg2schnitt.exe /S /E /R25  /Z %2 %1"
avisynth_options="LoadPlugin(\"MPEG2Dec3.dll\") \nMPEG2Source(\"%s\")\n"
dvrcut_options="dvrcut \"%s.dvr-ms\" \"%s_clean.dvr-ms\" "
windowtitle="Comskip - %s"


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Fri Oct 21, 2016 4:12 pm 
Offline

Joined: Fri Oct 21, 2016 3:52 pm
Posts: 1
Thanks much. Total noob and tried your ini as my 1st go around. Worked quite well except it missed all commercials @ about the half way point. NCIS (CBS) on OTA.


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Sat Oct 22, 2016 4:23 am 
Offline

Joined: Wed Jun 29, 2016 7:30 pm
Posts: 19
If you change verbose=10 and delete_logo_file=0 then you will have additional text files that you can look at to see longest commercial, suggested logo_threshold, etc... You can customize the ini file to fit your specific needs. Don't forget that sometimes shows still don't record properly even though it's digital... This ini file treats some 30 minute programs better. Big Bang Theory, Good Place, Superstore.

Code:
               ; See comskip.txt in the distribution zip file for many settable parameters, read manual.html, tuning.html and debugwindow.html for how to tune and debug comskip
detect_method=107         ; 1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 64=silence, 128=cutscenes, 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=0                    ; 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=25      ; Maximum average brightness for a dim frame to be considered black (scale 0 to 255) 0 means autosetting
maxbright=1            ; New
brightness_jump=200         ; New
max_commercialbreak=600    ; Maximum length in seconds to consider a segment a commercial break
min_commercialbreak=24      ; Minimum length in seconds to consider a segment a commercial break, some sports require lower numbers than normal tv shows
max_commercial_size=197         ; 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=250 ; Any segment longer than this will be scored towards show (sports and 30 minute programming), increase this to 250 for 1 hour long programming
non_uniformity=500         ; Set to 0 to disable cutpoints based on uniform frames
max_volume=500         ; Any frame with sound volume larger than this will not be regarded as black frame
max_silence=100         ;
min_silence=12            ; Any deep silence longer than this amount  of frames is a possible cutpoint
noise_level=5            ; New
ticker_tape=0            ; Amount of pixels from bottom to ignore in all processing
ignore_side=0            ; New, default 0
subtitles=0            ; New, default 0
logo_at_bottom=0         ; Set to 1 to search only for logo at the lower half of the video, do not combine with subtitle setting
use_existing_logo_file=1             ; Use logo file already created at beginning of show, default 0
two_pass_logo=1         ; New
punish=1                    ; 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=4         ; 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 advised 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.7250      ; Digital signals can be higher
global_threshold=1.79      ; New
min_black_frames_for_break=1   ; Default 1
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
delay_logo_search=0         ;
logo_filter=0                     ; Set the size of the filter to apply to bad logo detection, 4 seems to be a good value
edge_step=2            ; New, default 1
cut_on_ar_change=1         ; Set to 1 if you want to cut also on aspect ratio changes when logo is present, set to 2 to force cuts 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_first_commercial=0   ; New, default 0
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_block_after_commercial=0      ; Set to max size of block in seconds to be discarded, set to 0 to disable
remove_before=0         ; Amount of seconds of show to be removed before ALL commercials
remove_after=0            ; Amount of seconds of show to be removed after ALL commercials
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
before_logo=0            ; Set to number of seconds before logo appears comskip should start to search for silence to insert an additional cutpoint
padding=0.50
ms_audio_delay=5
volume_slip=40
skip_b_frames=0         ; Set to 1 to force Comskip to skip frames for higher processing speed.
hardware_decode=0         ; Set to 1 to enable hardware accelerated video decoding, only available in donator version
thread_count=4            ; Set to utilize Quad Core
max_repair_size=200         ; Will repair maximum 200 missing MPEG frames in the timeline, set to 0 to disable repairing for players that don't use PTS
disable_heuristics=4         ; Bit pattern for disabling heuristics, adding 1 disables heristics 1, adding 2 disables heristics 2, adding 4 disables heristics 3, 255  disables all heuristics
delete_logo_file=1         ; 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_data=0            ; Create a dump of the user data channel, used for CC and XDS (such as V-Chip info). Can be use together with output_framearray to remote debug CC decoding
output_videoredo=0         ; The old videoredo format
output_videoredo3=0         ; The new videoredo v3 format
output_womble=0
output_mls=0            ; Set to 1 if you want MPEG Video Wizard bookmark file output
output_cuttermaran=0
output_mpeg2schnitt=0
output_mpgtx=0
output_dvrcut=0
output_zoomplayer_chapter=0
output_zoomplayer_cutlist=0
output_edl=1
output_dvrmstb=0         ; Set to 1 if you're running DVRMS-Toolbox
output_edlx=0
output_vcf=0
output_bsplayer=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_avisynth=0
output_vdr=0            ; Set to 1 if you want XBMC to skipping commercials
output_demux=0         ; Set to 1 if you want comskip to demux the mpeg file while scanning
sage_framenumber_bug=0
sage_minute_bug=0
live_tv=1                    ; Set to 1 if you use parallelprocessing and need the output while recording
live_tv_retries=1         ; Change to 16 when using live_tv in BTV, used for mpeg PS and TS
dvrms_live_tv_retries=300      ; Only used for dvr_ms
standoff=0                    ; Change to 8000000 when using live_tv in BTV
cuttermaran_options="cut=\"true\" unattended=\"true\" muxResult=\"false\" snapToCutPoints=\"true\" closeApp=\"true\""
mpeg2schnitt_options="mpeg2schnitt.exe /S /E /R25  /Z %2 %1"
avisynth_options="LoadPlugin(\"MPEG2Dec3.dll\") \nMPEG2Source(\"%s\")\n"
dvrcut_options="dvrcut \"%s.dvr-ms\" \"%s_clean.dvr-ms\" "
windowtitle="Comskip - %s"


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Sat Oct 22, 2016 5:15 am 
Offline

Joined: Wed Sep 28, 2016 5:30 pm
Posts: 20
Hey WhiteKnight, can you explain briefly what your various INI settings are for certain specific shows/types? I noticed here you posted a different one for 30 minute shows (as opposed to, I assume, what you use for 60 minute shows)? I have been still working on a single overall ini that will work for 99% of things (because I just have this feeling that it CAN be done, with enough tweaking) even though I probably should just resort to making a few various INIs for various shows and types of show. Basically, can you just post the specific settings you change for different iterations, and label them what they are for? I think that would help me and possibly others get our settings working even better. Thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Sat Oct 22, 2016 7:02 am 
Offline

Joined: Wed Jun 29, 2016 7:30 pm
Posts: 19
Custom tailoring an ini file per show will always be more accurate. As long as you consistently record the same programming and don't become spontaneous, you can easily make a 1 size fits all ini file.
I keep max commercialbreak high, no matter what, because of sports. Injury on the field, pitcher warming up, etc... This hasn't ever interfered with tv shows.
min commercialbreak default at 24. Setting the number lower for sports is a good thing but leaving it low for tv shows is usually bad (That random 4 second tv show trailer just won't get recognized and the rest of the group of commercials won't get recognized correctly either).
max commercial size is pretty straight forward. Look at all of the text files of your recordings and choose the highest number found. It "shouldn't" interfere with the lower numbers, but if you record something that has a higher number it may not be caught. If you set it too high, the show will be flagged as commercial though because you have punish no logo set to 1. :)
min commercial size is low because of sports and tv show trailers. Again, injury on the field, pitcher warming up, etc...
min show segment length goes hand in hand with max commercial size. You could go 1 number above the other, it isn't terrible though to give a small cushion. It allows for randomness...

My original ini file was tailored for what I was recording at the time. My current ini file is the one I just pasted. The other ones/partials I've been posting were tailored to the recordings/reprocessing's I've done in order to try and help.

I know you are working on one; I have it and am tinkering myself. The catch 22 with your ini file is that you have narrowed the boundary lines so much that it doesn't account for spontaneity. That random flicker in the digital signal while recording, weather advisory (my arch nemesis), breaking news, missing commercial, etc. The trick is to create an ini file with only just enough information so comskip works for you rather than you working on comskip... Says the person who has spent more time working on the ini file than watching shows :) It's a love hate relationship anyway.


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Wed Jan 11, 2017 2:11 am 
Offline

Joined: Tue Jan 10, 2017 6:48 pm
Posts: 4
Location: Upstate SC
Hey WhiteKnight...

Thanks for posting this. I am trying to adopt your hard work and learn more about tuning. I used your .ini file and it worked quite well except that it missed the opener on NCIS-NO. I usually start my recordings about 1 minute early so in this recording there were some commercials and previews from 0:00 to 1:06, then the actual start of the show. The first commercial (after the 1:06 mark) started at 8:40 which was correctly identified by comskip. The problem is that from 0:00 to 4:10 was identified as all commercials!? Can you point me to which parameters I should try to tweak that might better identify the commercials/beginning of show more accurately?

Thanks,
Bill


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Wed Jan 11, 2017 2:54 am 
Offline

Joined: Wed Jun 29, 2016 7:30 pm
Posts: 19
Change punish_no_logo=0
I don't believe it will affect the other grouping of commercials. No promises, but I believe that is where you need to start. If it does affect the commercial groupings, you will need to look at the .log file and customize your config file to match more appropriately...


Top
 Profile  
Reply with quote  
 Post subject: Re: USA OTA HD
PostPosted: Wed Jan 11, 2017 3:03 am 
Offline

Joined: Wed Jun 29, 2016 7:30 pm
Posts: 19
You can always add this line. If you don't want to tinker and possibly break what works...
always_keep_first_seconds=360


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group