Comskip: How to? (single-seat and server/client) | Page 4

Discussion in 'TV-Server Plugins' started by u095538, January 23, 2010.

  1. valtam

    valtam Portal Pro

    Joined:
    March 27, 2010
    Messages:
    94
    Likes Received:
    6
    Ratings:
    +6 / 0
    Home Country:
    New Zealand New Zealand
    Code (Text):
    1. detect_method=127           ;1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 64=silence, 128=cutscenes, 255=all
    2.  
    3. validate_silence=1          ; Default, set to 0 to force using this clues if selected above.
    4.  
    5. validate_uniform=1          ; Default, set to 0 to force using this clues (like pure white frames) if blackframe is selected above.
    6.  
    7. validate_scenechange=1      ; Default, set to 0 to force using this clues if selected above.
    8.  
    9. verbose=10              ;show a lot of extra info, level 5 is also OK, set to 0 to disable
    10.  
    11. max_brightness=60               ;frame not black if any pixels checked are greater than this (scale 0 to 255)
    12.  
    13. test_brightness=40              ;frame not pure black if any pixels checked are greater than this, will check average brightness (scale 0 to 255)
    14.  
    15. max_avg_brightness=25           ;maximum average brightness for a dim frame to be considered black (scale 0 to 255) 0 means autosetting
    16.  
    17. max_commercialbreak=600         ;maximum length in seconds to consider a segment a commercial break
    18.  
    19. min_commercialbreak=25          ;minimum length in seconds to consider a segment a commercial break
    20.  
    21. max_commercial_size=125         ;maximum time in seconds for a single commercial or multiple commercials if no breaks in between
    22.  
    23. min_commercial_size=4           ;mimimum time in seconds for a single commercial
    24.  
    25. min_show_segment_length=125     ; any segment longer than this will be scored towards show.
    26.  
    27. non_uniformity=500          ; Set to 0 to disable cutpoints based on uniform frames
    28.  
    29. max_volume=500              ; any frame with sound volume larger than this will not be regarded as black frame
    30.  
    31. min_silence=12              ; Any deep silence longer than this amount  of frames is a possible cutpoint
    32.  
    33. ticker_tape=0               ; Amount of pixels from bottom to ignore in all processing
    34.  
    35. 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
    36.  
    37. punish=0                    ; Compare to average for sum of 1=brightness, 2=uniform 4=volume, 8=silence, 16=schange, set to 0 to disable
    38.  
    39. punish_threshold=1.3        ; Multiply when amount is above average * punish_threshold
    40.  
    41. punish_modifier=2           ; When above average * threshold multiply score by this value
    42.  
    43. intelligent_brightness=0        ; Set to 1 to use a USA specific algorithm to tune some of the settings, not adviced outside the USA
    44.  
    45. logo_percentile=0.92            ; if more then this amount of logo is found then logo detection will be disabled
    46.  
    47. logo_threshold=0.75
    48.  
    49. punish_no_logo=1            ; Default, set to 0 to avoid show segments without logo to be scored towards commercial
    50.  
    51. aggressive_logo_rejection=0
    52.  
    53. 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
    54.  
    55. logo_filter=0               ; set the size of the filter to apply to bad logo detection, 4 seems to be a good value.
    56.  
    57. 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
    58.  
    59. 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
    60.  
    61. 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
    62.  
    63. delete_block_after_commercial=0 ;set to max size of block in seconds to be discarded, set to 0 to disable
    64.  
    65. remove_before=0             ; amount of seconds of show to be removed before ALL commercials
    66.  
    67. remove_after=0              ; amount of seconds of show to be removed after ALL commercials
    68.  
    69. shrink_logo=5               ; Reduce the duration of the logo with this amount of seconds
    70.  
    71. after_logo=0        ; set to number of seconds after logo disappears comskip should start to search for silence to insert an additional cutpoint
    72.  
    73. padding=0
    74.  
    75. ms_audio_delay=5
    76.  
    77. volume_slip=20
    78.  
    79. skip_b_frames=0             ; Set to 1 to force Comskip to skip frames for higher processing speed.
    80.  
    81. 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.
    82.  
    83. 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
    84.  
    85. delete_logo_file=0          ; set to 1 if you want comskip to tidy up after finishing
    86.  
    87. output_framearray=0         ; create a big excel file for detailed analysis, set to 0 to disable
    88.  
    89. 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
    90.  
    91. output_videoredo=0
    92.  
    93. output_womble=0
    94.  
    95. output_mls=0            ; set to 1 if you want MPeg Video Wizard bookmark file output
    96.  
    97. output_cuttermaran=0
    98.  
    99. output_mpeg2schnitt=0
    100.  
    101. output_mpgtx=0
    102.  
    103. output_dvrcut=0
    104.  
    105. output_zoomplayer_chapter=0
    106.  
    107. output_zoomplayer_cutlist=0
    108.  
    109. output_edl=1
    110.  
    111. output_edlx=0
    112.  
    113. output_vcf=0
    114.  
    115. output_bsplayer=0
    116.  
    117. output_btv=0                ; set to 1 if you want Beyond TV chapter cutlist output
    118.  
    119. output_projectx=0           ; set to 1 if you want ProjectX cutlist output (Xcl)
    120.  
    121. output_avisynth=0
    122.  
    123. output_vdr=0                ; set to 1 if you want XBMC to skipping commercials
    124.  
    125. output_demux=0              ; set to 1 if you want comskip to demux the mpeg file while scanning
    126.  
    127. sage_framenumber_bug=0
    128.  
    129. sage_minute_bug=0
    130.  
    131. live_tv=0                   ; set to 1 if you use parallelprocessing and need the output while recording
    132.  
    133. live_tv_retries=4           ; change to 16 when using live_tv in BTV, used for mpeg PS and TS
    134.  
    135. dvrms_live_tv_retries=300           ; only used for dvr_ms
    136.  
    137. standoff=0                  ; change to 8000000 when using live_tv in BTV
    138.  
    139. cuttermaran_options="cut=\"true\" unattended=\"true\" muxResult=\"false\" snapToCutPoints=\"true\" closeApp=\"true\""
    140.  
    141. mpeg2schnitt_options="mpeg2schnitt.exe /S /E /R25  /Z %2 %1"
    142.  
    143. avisynth_options="LoadPlugin(\"MPEG2Dec3.dll\") \nMPEG2Source(\"%s\")\n"
    144.  
    145. dvrcut_options="dvrcut \"%s.dvr-ms\" \"%s_clean.dvr-ms\" "
    146.  
    147. windowtitle="Comskip - %s"



     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. u095538
    • Premium Supporter

    u095538 MP Donator

    Joined:
    July 18, 2008
    Messages:
    70
    Likes Received:
    9
    Gender:
    Male
    Location:
    Newcastle
    Ratings:
    +12 / 0
    Home Country:
    Australia Australia
    First, it's important to understand that comskip detects the commercials by analysing the recorded MPEG file. This process happens once the file has finished being written to. So in other words, once the program has ended, and the file is completed, then comskip parses the recorded mpeg file and attempts to sus-out where the commercials are. It is post-processing, not live-processing. Also it's important to note that if you are playing back data that is coming in live off the airwaves, you can't skip the commercials while they're being aired.. unless you could somehow go into the future and grab the data five minutes from now :)

    1) It works by analysing MPEG data for various 'clues' as to where the commercials are. These include a change in the audio output*, frequent changes in aspect ratio (some commercials are wide-screen, others are 4:3), frequent black frames (the bits in-between two commercials), closed-caption data (subtitle data), they're hardly ever there for ads; and others..

    *I used to HATE that commercials are louder than the program, now I take solace in the fact that it's partly responsible for comskip detecting it as a commercial :)

    2) Do you mean: "Is it possible to automatically mute the commercials instead of skipping them?" I'm not sure. Does anyone else know? If your questions is as it reads, then the answer is yes, it's possible to mute, just hit mute on your remote control, or keep pressing "-" (hyphen) on your keyboard (Hyphen is for "volume down". I'm sure there's a keyboard shortcut for "mute" too, I just don't know it).

    Cool. Thanks for the info jameson_uk.

    That's great that it works for you out of the box! That's wonderful. I too have noticed the logo.txt is no longer there, however, like you, figured it wasn't a problem but rather a change with comskip (although I didn't check the website)
    . On some channels my comskip doesn't correctly detect the comms either. In fact, of late, it rarely gets it right. However I haven't bothered mucking about with the comskip settings (.ini file) until I get it right. If I ever do bother, and nail it for all channels I watch (only Aussie free to air) than I'll be sure to share it here. In fact now that I think about it, surely there's already an online repository for .ini files needed around the globe...

    EDIT: This thread is very interesting (especially hte last post on page 2) https://forum.team-mediaportal.com/mediaportal-1-talk-45/calling-all-australian-comskip-users-21035/
     
  4. K24A3
    • Premium Supporter

    K24A3 MP Donator

    Joined:
    May 1, 2010
    Messages:
    78
    Likes Received:
    4
    Ratings:
    +4 / 0
    Home Country:
    Show System Specs
    [EDIT] comskip wasn't launching but I got it working. Just had to reboot the PC :)

    Another question, sometimes comskip misses some advert blocks and it's difficult to determine if this happens in some programs during playback.

    Is there a way to configure MediaPortal to display how long the chapter jumped onscreen so we know if we jumped too far?

    At the moment I need to press "I" to see where the current position is, then jump the chapter, then press "I" again to determine how many minutes was skipped, then press "I" twice more to close the info screen.

    I can't find any OSD Settings for Chapter jumping, only a timeout.
     
  5. dihoff

    dihoff Portal Pro

    Joined:
    October 29, 2009
    Messages:
    89
    Likes Received:
    5
    Ratings:
    +5 / 0
    Home Country:
    Australia Australia
    hi all,

    i've been using comskip successfully for ages - then, i upgraded to MP 1.2.1, and lost all my configuration data. i've reconfigured everything, and comskip is generating data, but MP isn't skipping the commercials automatically.

    i can't for the life of me find the option in the MP config which is something along the lines of "automatically skip if comskip data if present" - where has it gone???

    thanks a bunch,

    dh.
     
  6. Peter2
    • Premium Supporter

    Peter2 MP Donator

    Joined:
    September 18, 2006
    Messages:
    848
    Likes Received:
    45
    Ratings:
    +52 / 1
    Home Country:
    Belgium Belgium
    Show System Specs
    Hi dihoff,

    You can find the option in the client configuration utility - Mediaportal Configuration - under 'Videos' (main branche) - > right hand side, almost at the bottom 'Commercial skip', 'Automatically skip commercials...'

    HTH
     
    • Like Like x 2
  7. dihoff

    dihoff Portal Pro

    Joined:
    October 29, 2009
    Messages:
    89
    Likes Received:
    5
    Ratings:
    +5 / 0
    Home Country:
    Australia Australia
    sorted. thanks a lot Peter2.

    ah, the joy of commercials being skipped again :)

    dh.
     
  8. Peter2
    • Premium Supporter

    Peter2 MP Donator

    Joined:
    September 18, 2006
    Messages:
    848
    Likes Received:
    45
    Ratings:
    +52 / 1
    Home Country:
    Belgium Belgium
    Show System Specs
    Know the feeling! ;)
    UR welcome!
     
  9. toricred
    • Premium Supporter

    toricred MP Donator

    Joined:
    August 29, 2006
    Messages:
    127
    Likes Received:
    8
    Gender:
    Male
    Ratings:
    +8 / 0
    Home Country:
    United States of America United States of America
    Is there any way to get edl fikles recognized and used? I have thousands of recordings with edl files and would really rather not have to re-analyze unless I have to.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!