NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 18 19 20 21 22 … 104 Next »
How to make comskip work in WIndows

 
  • 0 Vote(s) - 0 Average
How to make comskip work in WIndows
nikkilocke
Offline

Junior Member

United Kingdom
Posts: 14
Threads: 4
Joined: Feb 2024
#1
2024-02-25, 11:33 AM
I have NextPVR running on Windows. I would like to get Comskip set up. 

I installed Comskip to C:\comskip

I created a ParallelProcessing.bat file in C:\Users\Public\NPVR-data\scripts
containing:
Code:
@echo off
"c:\comskip\comskip" %1

However, I see no evidence of commercials being spotted, and pressing the play button when a commercial starts does not do anything.

What have I done wrong, please?

My C:\comskip\comskip.ini file contains:
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=43 ;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=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=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=25 ;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=250 ; 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
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
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
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
logo_filter=0              ; set the size of the filter to apply to bad logo detection, 4 seems to be a good value.
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_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=0
ms_audio_delay=5
volume_slip=40
skip_b_frames=0 ; Set to 1 to force Comskip to skip frames for higher processing speed.
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=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_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=3
edl_skip_field=3
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"
VCR58
Offline

Posting Freak

Marion Iowa, USA
Posts: 1,845
Threads: 177
Joined: Aug 2016
#2
2024-02-25, 07:46 PM
You may need to add the .exe extension (comskip.exe) to make it work in your .bat file.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,467
Threads: 963
Joined: May 2006
#3
2024-02-26, 12:04 AM
The logs would give a good indication if it is running the exe correctly but you can also test the batch file by passing a ts file to it as the first parameter. Best practice would be to specify the comskip ini as a parameter or change you folder.

Martin
nikkilocke
Offline

Junior Member

United Kingdom
Posts: 14
Threads: 4
Joined: Feb 2024
#4
2024-02-26, 10:58 AM
Sorry about the lack of logs - I hadn't found them when I reported the problem.

I checked the batch file, added a
cd c:/comskip
and put the %1 argument in double quotes.

I ran the batch file on its own, and got the message "The program can't start because api-ms-win-core-libraryloader-l1-2-1.dll is missing from your computer. Try reinstalling the program to fix the problem".

Googling this just gives me confusing information about Windows 10 upgrades (I am currently running Windows 8, mainly because I used to run Windows Media Centre, and wanted to be able to go back to it if I couldn't find something else as good.).
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,953
Threads: 770
Joined: Nov 2003
#5
2024-02-26, 11:46 AM
(2024-02-26, 10:58 AM)nikkilocke Wrote: Sorry about the lack of logs - I hadn't found them when I reported the problem.
On the settings page, you hit the Log Files button and it’ll zip them up for you.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,467
Threads: 963
Joined: May 2006
#6
2024-02-26, 12:07 PM
It looks like your batch file might have something not related to comskip like nscripthelper.
nikkilocke
Offline

Junior Member

United Kingdom
Posts: 14
Threads: 4
Joined: Feb 2024
#7
2024-02-26, 02:33 PM
> It looks like your batch file might have something not related to comskip like nscripthelper.

I posted the entire batch file at the top of the thread.

Clearly my problem with comskip is not NextPVR, but comskip itself not working. Will try to take it up with them.
satforall
Offline

Member

Ireland
Posts: 149
Threads: 3
Joined: Aug 2022
#8
2024-02-26, 04:42 PM
As a curtesy to the developer post your logs as requested. Remember logs do help others experiencing similar issues.
nikkilocke
Offline

Junior Member

United Kingdom
Posts: 14
Threads: 4
Joined: Feb 2024
#9
2024-02-26, 07:02 PM
As the problem is that comskip isn't working at all, I will take the issue to the comskip forums. In this case, it appears that adding logs, or more discussion, to this thread would be counter-productive.

I will report back if and when the comskip error is sorted.
nikkilocke
Offline

Junior Member

United Kingdom
Posts: 14
Threads: 4
Joined: Feb 2024
#10
2024-02-27, 03:32 PM
I'm pleased to announce that I have upgraded the machine to Windows 10, and I can now run comskip.

It works, but does not detect the full length of the commercials. I am now following the guide at https://www.kaashoek.com/comskip/viewtop...?f=5&t=631 to tune it for UK Digital Terrestrial.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  streaming failed (transcoder exited) Windows 10 firefox thebigz 3 75 6 hours ago
Last Post: mvallevand
  I'm totally stomped...I can't get Nextpvr to work. Gop 10 484 2025-08-13, 09:19 PM
Last Post: mvallevand
  Windows install failed GlenH 12 582 2025-08-11, 03:00 PM
Last Post: mvallevand
  Windows could not start the NextPVR Service service on Local Computer Error 193:0xc1 Jimmyts100 7 6,296 2025-06-18, 06:26 PM
Last Post: jcole998
  NPVR Windows recordings folder cleanup.... Colincam 21 4,254 2025-04-16, 07:38 PM
Last Post: mvallevand
  Windows 24H2 - Can't install Hauppage Drivers Lao Pan 6 2,017 2025-04-04, 04:49 AM
Last Post: seattlefog
  Freezing/Buffering on Windows 11 (NPVR app only) nextpvrnoob 64 10,869 2025-02-21, 07:52 PM
Last Post: mvallevand
  reinstall and configuration buttons do not work to configure the server. kindeshaun@gmail.com 6 837 2025-02-21, 05:17 AM
Last Post: kindeshaun@gmail.com
  Recording telerising streams doesn't work tms87 3 596 2025-01-29, 10:04 PM
Last Post: mvallevand
  DVB-T210 August USB Freeview HD TV Stick Windows 10 16brae 6 833 2025-01-17, 03:20 AM
Last Post: jimil

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode