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 … 10 11 12 13 14 … 20 Next »
having comskip and IGL run together

 
  • 0 Vote(s) - 0 Average
having comskip and IGL run together
tron999
Offline

Junior Member

Posts: 36
Threads: 7
Joined: Mar 2014
#11
2014-03-30, 02:28 AM
Well, with your help, and brute force, I believe I have solved the issue. Here's my final batch file:

Code:
set newfile=
FOR /F "tokens=*" %%i in ('"C:\Program Files (x86)\NPVR\imageGrabLite.exe" --oid %3 --rename') do

SET newfile=%%i
if not exist "%newfile%" goto end

echo %newfile
echo %newfile%

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

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

:end
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,879
Threads: 954
Joined: May 2006
#12
2014-03-30, 02:54 AM
I'd be concerned with the redirect if you have multiple recordings

Martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#13
2014-03-30, 03:57 AM
yes, comskip will fail with that if you have more than one recording finishing at the same time. I wouldn't bother logging comskip's stdout, it creates a log on it's own. if you do want to though, I'd suggest "> %3.log". after that if you really want it all in one log file you can do this:
Code:
type %3.log >> comskip.log
del %3.log
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
dljones8053
Offline

Senior Member

USA
Posts: 267
Threads: 2
Joined: Jul 2006
#14
2014-03-30, 01:06 PM
Below is how I have it setup and works fine, tell it to cd/ to the correct path then you execute the commend, this seems to work best when writing bat/cmd files and help you keep it clean and easier for me to trouble shoot as well.

cd /d "c:\comskip"
comskip %1
cd /d "C:\Program Files (x86)\NPVR"
imageGrabLite.exe --oid %3 --rename

Daryl
tron999
Offline

Junior Member

Posts: 36
Threads: 7
Joined: Mar 2014
#15
2014-03-30, 01:40 PM
I'm not sure what redirect you guys were talking about, but you were right. It did fail if two recordings ended at the same time. johnson, I grabbed your batch file to stagger kickoff times by using the channel number, and added that before the comskip call. That solved my problems. I modified it slightly, since I have my channel numbers in the hundreds and thousands to be divided by ten, so I am not waiting all day for something to complete processing. Here's my final final batch file lol.

Code:
set newfile=
FOR /F "tokens=*" %%i in ('"C:\Program Files (x86)\NPVR\imageGrabLite.exe" --oid %3 --rename') do SET newfile=%%i
if not exist "%newfile%" goto end

echo %newfile
echo %newfile%

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

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


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

timeout "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 "%newfile%"
echo %date%,%time% - comskip finished with %1 >>processing.log
:end
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,879
Threads: 954
Joined: May 2006
#16
2014-03-30, 02:16 PM
dljones8053 Wrote:Below is how I have it setup and works fine, tell it to cd/ to the correct path then you execute the commend, this seems to work best when writing bat/cmd files and help you keep it clean and easier for me to trouble shoot as well.

cd /d "c:\comskip"
comskip %1
cd /d "C:\Program Files (x86)\NPVR"
imageGrabLite.exe --oid %3 --rename

Daryl

Yeah that works if you don't want immediate access to the files in xbmc TV Shows

Martin
dljones8053
Offline

Senior Member

USA
Posts: 267
Threads: 2
Joined: Jul 2006
#17
2014-04-05, 12:06 PM
Martin

Agree but that is what recordings is all about watch it later.. Big Grin

If I want to watch it now I use LIVE TV. Smile

Daryl
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  comskip parallel processing not updating skips in Kodi Deihmos 1 441 2025-04-13, 04:13 AM
Last Post: mvallevand
  Comskip + NextEnd VCR58 12 2,602 2023-06-30, 02:26 PM
Last Post: mvallevand
Lightbulb How to get Comskip working on Linux wmarler 12 11,712 2022-03-04, 01:19 PM
Last Post: thool
  comskip - parallel proc - Invalid frame dimensions 2leftfeet 7 2,729 2021-05-02, 01:35 AM
Last Post: EdwardWelch
  Comskip problem RTKAT 4 4,034 2018-08-26, 09:12 PM
Last Post: RTKAT
  Comskip, NextPVR and Plex buckeyestargazer 4 7,981 2017-06-16, 07:58 PM
Last Post: scJohn
  Comskip Transcode NZ Freeview Help required Waynesm 4 3,576 2016-07-15, 03:26 AM
Last Post: Waynesm
  comskip postprocessing cllgnc89 7 5,405 2016-01-18, 04:27 AM
Last Post: cllgnc89
  comskip failures ydekmekji 7 4,437 2015-11-22, 01:21 AM
Last Post: ACTCMS
  comskip not running on certain files tron999 5 3,285 2014-10-11, 01:50 AM
Last Post: tron999

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

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

Linear Mode
Threaded Mode