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) v
« Previous 1 … 8 9 10 11 12 … 19 Next »
comskip not running on certain files

 
  • 0 Vote(s) - 0 Average
comskip not running on certain files
tron999
Offline

Junior Member

Posts: 36
Threads: 7
Joined: Mar 2014
#1
2014-10-03, 02:49 PM
I have comskip running in postprocessing.bat. Sometimes it runs, and sometimes I get this in the log:

Thu 10/02/2014,21:00:01.68 - PostProcessing.bat invoked on "E:\Videos\TV Shows\Greys Anatomy\Greys Anatomy_20141002_20002100.ts" recorded from channel 201
--- sleeping 20 seconds to avoid simultaneous execution
Thu 10/02/2014,21:00:21.52 - invoking comskip on "E:\Videos\TV Shows\Greys Anatomy\Greys Anatomy_20141002_20002100.ts"
Thu 10/02/2014,21:00:21.52 - comskip finished with "E:\Videos\TV Shows\Greys Anatomy\Greys Anatomy_20141002_20002100.ts"

Obviously it's not running since zero time has passed. Does anyone have any idea how this would be possible? Here's a copy of my postprocessing.bat:

Code:
set newfile=


@echo on
cd "C:\comskip"
comskip "%newfile%" >>comskip.log


echo %date%,%time% - PostProcessing.bat invoked on %1 recorded from channel %2 >>processing.log
set /a num1=%2% / 10
rem need to add a pause to avoid race conditions
echo --- sleeping %num1% seconds to avoid simultaneous execution >>processing.log

timeout /t %num1%

rem check how many comskips are running; if 2 or more are running wait 1 minute and check again
rem the third parameter passed in npvr 1.5.36 and later is a unique recording oid number, so it makes a good filename to store the temporary count
:check
tasklist | find /c "comskip" > %3.txt
set /p count= <%3.txt
if %count% geq 2 (
echo ...%count% comskips running now, waiting 1 minute >>processing.log
timeout 60
goto check
)
del %3.txt

echo %date%,%time% - invoking comskip on %1 >>processing.log
comskip.exe %1% >>comskip.log
echo %date%,%time% - comskip finished with %1 >>processing.log

"C:\Program Files (x86)\NPVR\imageGrabLite.exe" --oid %3 --zap2it --rename --nfo





:end
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,521
Threads: 166
Joined: Jun 2007
#2
2014-10-03, 04:57 PM
A few of quick thoughts:
1. Do you get a comskip.log file?
2. Is comskip.exe located in your "C:\comskip" directory? I have found it best always put the full path to the programs called in the various .bat files NPVR calls.
3. I think that in your comskip command line, it the variable should just be "%1" (i.e. the parameter passed to the .bat file) not "%1%".
tron999
Offline

Junior Member

Posts: 36
Threads: 7
Joined: Mar 2014
#3
2014-10-03, 05:48 PM
1. I do get the log file. Here is what happens when it doesnt work:

The commandline used was:
comskip

vs when it does work:
The commandline used was:
comskip.exe "E:\Videos\TV Shows\Hells Kitchen\Hells Kitchen_20141001_20002100.ts"

Using comskip.ini for initiation values.
Commercials were found.
The commandline used was:
comskip

2. Yes, it is located in the c:\comskip path. I can try adding the full path.

3. I will try changing the variable, that might be it. I had some issues with that before.

I'll report back with what I find.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,336
Threads: 868
Joined: May 2006
#4
2014-10-03, 11:24 PM
The problem is likely here

comskip.exe %1% >>comskip.log

If you have two instances running comskip.log should be locked and you will get a message something like locked by another process.

Martin
tron999
Offline

Junior Member

Posts: 36
Threads: 7
Joined: Mar 2014
#5
2014-10-04, 07:05 PM
I changed it to write to a variable, the oid.log. we'll see how that works, since I had two things ending simultaneously, and only one worked successfully.
tron999
Offline

Junior Member

Posts: 36
Threads: 7
Joined: Mar 2014
#6
2014-10-11, 01:50 AM
Looks like that did it, thank you.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
Lightbulb How to get Comskip working on Linux wmarler 12 5,056 2022-03-04, 01:19 PM
Last Post: thool
  NextImport and side-by-side .ts and .mp4 files BrettB 36 3,447 2021-12-29, 04:30 AM
Last Post: samwiliams33
  comskip - parallel proc - Invalid frame dimensions 2leftfeet 7 1,157 2021-05-02, 01:35 AM
Last Post: EdwardWelch
  Comskip problem RTKAT 4 3,099 2018-08-26, 09:12 PM
Last Post: RTKAT
  IRSS and channel-changing batch files Len_Lekx 5 2,662 2018-07-18, 08:12 PM
Last Post: Len_Lekx
  Removing commericals - tools to cut segments form h.264 files psycik 5 5,314 2017-08-23, 08:25 AM
Last Post: reven
  Comskip, NextPVR and Plex buckeyestargazer 4 6,821 2017-06-16, 07:58 PM
Last Post: scJohn
  Comskip Transcode NZ Freeview Help required Waynesm 4 2,803 2016-07-15, 03:26 AM
Last Post: Waynesm
  comskip postprocessing cllgnc89 7 4,415 2016-01-18, 04:27 AM
Last Post: cllgnc89
  comskip failures ydekmekji 7 3,541 2015-11-22, 01:21 AM
Last Post: ACTCMS

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

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

Linear Mode
Threaded Mode