; comskip.ini - tuned for recorded live TV ; Source reference: https://github.com/erikkaashoek/Comskip/blob/master/comskip.c [Main Settings] ; Detection method bitmask - add the values together for the methods you want: ; 1 = black/uniform frame 2 = logo detection ; 4 = scene change 8 = resolution change ; 16 = closed captions 32 = aspect ratio change ; 64 = silence 255 = all methods ; Comskip default (no ini): 107 (1+2+8+32+64, no scene change or CC) ; Recommended for recorded TV: 127 (all seven methods) detect_method=127 ; Verbosity level. 0=silent, 5=moderate, 10=maximum. Use 10 temporarily to diagnose misses. verbose=0 ; Number of CPU threads to use. 0 = use all available cores. thread_count=0 [Output] ; Write an EDL cut-list file. Dispatcharr reads this to drive FFmpeg, which ; permanently cuts the commercials out of the recording file and replaces it in place. output_edl=1 ; Action code written in the third column of each EDL line. ; The format originates from MPlayer (values 0-1); Kodi adopted it and extended it (values 2-3). ; 0 = Cut - player removes the section entirely; total duration shrinks (MPlayer + Kodi) ; 1 = Mute - audio muted, video keeps playing (MPlayer + Kodi) ; 2 = Scene Marker - marks a point of interest; used for chapter-style navigation (Kodi only) ; 3 = Commercial Break - auto-skipped once on first playthrough; user can rewind into it (Kodi only) ; Dispatcharr's cut mode ignores this value (only timestamps matter for FFmpeg cutting). ; For mark mode the file is kept and handed to the player, so 3 is correct for Kodi. ; Default in comskip is 0; without this override Kodi would treat ranges as hard cuts. edl_skip_field=3 ; Suppress the default .txt stats file comskip writes alongside the EDL. output_default=0 [Commercial Break Timing] ; Maximum total length in seconds for one commercial break (source default: 600) max_commercialbreak=600 ; Minimum total length in seconds for a break to be marked (source default: 20) ; 25s is a safe floor for US broadcast TV - avoids marking short interstitials min_commercialbreak=25 ; Maximum length in seconds for a single spot within a break (source default: 120) max_commercial_size=120 ; Minimum length in seconds for a single spot (source default: 4) min_commercial_size=5 ; Minimum show segment in seconds; blocks shorter than this are suspect (source default: 120) min_show_segment_length=120 [Black Frame Detection] ; A frame is NOT black if any sampled pixel exceeds this brightness (0-255, source default: 60) max_brightness=60 ; Secondary check: if any pixel exceeds this value, comskip also checks the average (source default: 40) test_brightness=40 ; Maximum average brightness for a frame to be classified as black/dim (0-255, source default: 19) max_avg_brightness=19 ; Uniform-color (non-black slate) detection sensitivity. Lower = stricter. (source default: 500) ; Solid-color slates at break boundaries are also used as cut points. non_uniformity=500 [Logo Detection] ; Minimum fraction of frames in the show that must carry the logo to enable logo detection (source default: 0.40) ; Lower this if the station watermark disappears often during the program itself. logo_fraction=0.40 ; Upper bound: if more than this fraction of frames has a logo, detection is disabled (source default: 0.92) logo_percentile=0.92 ; Edge-match similarity threshold for confirming the logo is present (0.0-1.0, source default: 0.80) ; Lower slightly (e.g. 0.75) if comskip fails to track the logo through compression artifacts. logo_threshold=0.75 ; Minimum fraction of a block that must contain the logo for it to score as show content (source default: 0.25) logo_percentage_threshold=0.25 ; Maximum fraction of screen area the logo may occupy - larger regions are rejected (source default: 0.12) logo_max_percentage_of_screen=0.12 ; Temporal smoothing filter for logo presence. 0 = off. (source default: 0) ; Set to 4 if brief compression artifacts cause the logo to flicker in/out. logo_filter=0 [Silence Detection] ; Frames with audio volume below this value are treated as silence (source default: 100) ; Raise this if quiet dialogue or music beds are triggering false cut points. max_silence=100 [Live TV] ; Set to 1 only if comskip is processing the file WHILE it is still being recorded. ; For post-recording analysis (the normal Dispatcharr use case) keep this at 0. live_tv=0