NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 22 23 24 25 26 … 1231 Next »
Running comskip at a scheduled time?

 
  • 0 Vote(s) - 0 Average
Running comskip at a scheduled time?
gonzo90017
Offline

Member

Posts: 183
Threads: 52
Joined: Sep 2009
#1
2010-05-18, 06:56 PM
I have comskip just mark and not cut commercials. So far this works great. But if I record shows back to back comskip only works on the 2nd show. For example if I record 2 shows:
Show A: 7:30pm
Show B: 8:00pm
Comskip only works the Show B 8:00pm show.

So basically I would like to know if there is a way to schedule comskip to run at a certain time, say 1:05 am? So instead of running after each recording it would scan my Recorded TV folder and run at 1:05am.
leaded1
Offline

Member

Posts: 135
Threads: 15
Joined: Jul 2007
#2
2010-05-18, 07:37 PM (This post was last modified: 2010-05-18, 07:49 PM by leaded1.)
The Most Reliable way I've found of doing this is to have a Post Processing .bat file write each completed show to a queue file and then run a scheduled .bat file each night at a scheduled time to run all of the files in your queue. I have this exact setup and you should be able to search the forum and find some other examples. I'll post my files (taken from my own searches).[ATTACHMENT NOT FOUND][ATTACHMENT NOT FOUND]

include this in your Post Processing .bat

echo "%~f1" >> "C:\EPG\showlist.txt"

(All of these files are in a folder C:\EPG so change the path if you put them somewhere else. Also remove the .txt from the file names)

Then create a scheduled task to run schedulepostproc.bat every day at a convenient time.
Server - AMD 6 Core windows 10 with Hauppage WINTV-PVR2 USB2, HDHomerun Dual, and WINTV-HVR 1600 tuners | Clients -PCH A-100 and iOS
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2010-05-19, 03:18 AM
it should run fine on back-2-back shows, i have been for ages..
it's probably your cmdline...
show me what you have now for postprocessing.bat
usually it's best to start it with a "start /min " so it doesn't get hung waiting to finish...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
gonzo90017
Offline

Member

Posts: 183
Threads: 52
Joined: Sep 2009
#4
2010-05-19, 04:32 AM (This post was last modified: 2010-05-19, 04:47 AM by gonzo90017.)
PostProcessing.bat:
Code:
@echo off
Rem PostProcessing.bat
Rem This script will be run automatically by GBPVR when found after a recording is finished
Rem To enable it put this file inside your GBPVR default program directory (C:\Program Files\devnz\gbpvr\)
Rem together with Comskip.exe, Comskip.ini and Comskip.dictionary
Rem The script is called with two parameters
Rem %1 is the fully qualified name of the recorded mpeg file.
Rem %2 is the channel number of the recording
echo Postprocessing.bat invoked on %1 recorded from channel %2 >>postprocessing.log

Rem The part below can be used to not run Comskip on certain channels, please modify for your conveniance.
Rem The channel numbers that should be skipped are the numbers between the double quotes ("").
Rem You can add "if" lines as much as you want
Rem To disable this behaviour use channel numbers outside the normal range, put a "rem" before the "if" or delete the "if" lines

Rem list of channels to not run comskip on
if "%2" == "27" goto eof
if "%2" == "36" goto eof

Rem this trick also makes it possible to have dedicated comskip.ini file for certain channels.
if "%2" == "79" goto channel79
if "%2" == "72" goto channel72
if "%2" == "65" goto channel65
Rem use the default comskip.ini for all other channels
goto generic

:channel79
comskip --ini=channel79.ini %1
goto continue
:channel72
comskip --ini=channel72.ini %1
goto continue
:channel65
rem This is an example of how to reuse a previously learned logo to prevent Comskip from learning the wrong logo
comskip --ini=channel65.ini --logo=channel65.logo.txt %1
goto continue

:generic
Rem The actual run of Comskip. Only one parameter, the name of the mpeg file to process.
Rem Comskip will read its settings from the Comskip.ini found in the same directory as Comskip.exe
Rem Both are supposed to be in the GBPVR default program directory. (C:\Program Files\devnz\gbpvr\)
comskip %1
:continue

Rem Once the commercials have been identified you can run comclean to delete the commercials from the recording.
Rem Do this only when you are not using the Skip function in the GBPVR viewer.
Rem To enable comclean remove the word "Rem" from the following line.
rem call comclean %1
:eof

And this is what my comskip.ini file looks like:
Code:
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=125     ; 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=20
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
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_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=0                    ; 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"
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#5
2010-05-19, 06:09 AM
are you using the channel numbers in there to exclude channels from comskipping?
[was the problem involving ch 79 72 or 65?]

if not, i'd suggest just a fresh bat file with just the comskip line in it..

otherwise, put a 'start ' in front of all those comskip lines..
also, i'd put a path to the other .ini's, as the current path isn't always what you'd think when this runs...
like: start comskip --ini="%~dp0\channel79.ini" %1
[if the .ini is in same dir as batch file]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Audio buzzing second time recording launched. dennit 2 4,513 2012-12-09, 11:28 PM
Last Post: dennit
  Time Warner 4250HDC smajor 43 27,693 2011-07-17, 09:04 PM
Last Post: soccerdad
  Recordings getting stuck after end time keith_leitch 5 2,506 2010-12-07, 03:53 AM
Last Post: johnsonx42
  How to alphabetically arrange scheduled recordings? Thanks seymoria 10 3,429 2010-11-04, 04:58 PM
Last Post: sub
  Dropped frames / messed-up time codes ? jch 9 3,332 2010-10-10, 02:55 AM
Last Post: jch
  GB-PVR No Longer Recording Scheduled Programs peinkc 4 2,023 2010-08-15, 02:14 PM
Last Post: peinkc
  How to watch and record at the same time on a Compro E900F? Croftie 3 2,027 2010-07-23, 03:31 PM
Last Post: Croftie
  Sound And video out of time ziton 4 2,062 2010-07-15, 06:17 PM
Last Post: pBS
  Comskip pcostanza 3 2,346 2010-06-02, 01:46 AM
Last Post: pBS
  Scheduled EPG update doesn't work? allstarnz 4 1,981 2010-05-12, 07:38 AM
Last Post: allstarnz

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

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

Linear Mode
Threaded Mode