NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 353 354 355 356 357 … 433 Next »
Parallel Processing

Parallel Processing
pcostanza
Offline

Posting Freak

Posts: 3,778
Threads: 270
Joined: Oct 2004
#1
2011-07-16, 01:23 AM
Can the batch file for Parallel processing be the same as postprocessing file, if you want to run comskip? I know you wouldn't want both of these to get called but if you choose to run the parallel, can I use the same file as post but just rename it?
I ask because I tried and it didn't work.


Paul


Custom ASUS Maximus X Hero, 16 GB Memory-ASUS GeForce 1050 Ti, H115i Pro AIO, 850W PS, CM H500P case, Corsair Vengeance RGB Ram, Samsung 970 EVO, HDHomerun Prime & Extend  Tuners- running Windows 10 (and other goodies)
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#2
2011-07-16, 04:00 PM
yes, I run the exact same file for parallel- or post- processing (the one from my oft-cited example post is still pretty much verbatim what I run). I can't think of any reason a difference would be required. Obviously during parallel processing the file is still open and being written to by NRecord, so you can't do anything that would move or rename the file until you're sure the file is closed.

perhaps the parallelprocessing.bat was in use when you tried to rename it?
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
pcostanza
Offline

Posting Freak

Posts: 3,778
Threads: 270
Joined: Oct 2004
#3
2011-07-16, 05:04 PM
Thanks, I'll check that out. For now, it doesn't matter what I use, it's not working. Reading another thread it seems my bat file is incorrect. I have NPVR installed on my "D" drive with the standard install going to C:\users\public\npvr and my recording directory is my "G" drive. Using your example, what exactly do I have to change?

Quote:@echo off

cd c:\comskip

echo %date%,%time% - PostProcessing.bat invoked on %1 recorded from channel %2 >>processing.log

Rem list of channels to not run comskip on; PBS channels have no commercials
if "%2" == "27" goto skip
if "%2" == "28" goto skip
if "%2" == "29" goto skip
if "%2" == "50" goto skip
if "%2" == "51" goto skip
if "%2" == "52" goto skip
if "%2" == "58" goto skip
if "%2" == "59" goto skip
if "%2" == "60" goto skip
if "%2" == "61" goto skip
goto next

Confusedkip
echo skipping comskip on %1; channel %2 in skip list >>processing.log
goto continue

:next
rem need to add a pause to avoid race conditions
echo --- sleeping %2 seconds to avoid simultaneous execution >>processing.log
sleep %2

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
sleep 60
goto check
)
del %3.txt

rem continuing now

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

rem :channel79
rem comskip --ini=channel79.ini %1
rem goto continue

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

:continue

:eof


Paul


Custom ASUS Maximus X Hero, 16 GB Memory-ASUS GeForce 1050 Ti, H115i Pro AIO, 850W PS, CM H500P case, Corsair Vengeance RGB Ram, Samsung 970 EVO, HDHomerun Prime & Extend  Tuners- running Windows 10 (and other goodies)
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#4
2011-07-16, 05:23 PM
just ensure that the cd command at the beginning points to your comskip files and it should otherwise work with no changes.

as you've got multiple drive letters involved though, just to be sure you might add a /d to your cd command:
Code:
cd /d c:\comskip
(or whatever the exact path is to your comskip files)

the /d ensures that if the drive letter in the path is different than the current working drive letter, that it switches the drive letter too.
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
pcostanza
Offline

Posting Freak

Posts: 3,778
Threads: 270
Joined: Oct 2004
#5
2011-07-16, 07:02 PM
Thanks, I'll give this a shot and see what happens. I appreciate the help!


Paul


Custom ASUS Maximus X Hero, 16 GB Memory-ASUS GeForce 1050 Ti, H115i Pro AIO, 850W PS, CM H500P case, Corsair Vengeance RGB Ram, Samsung 970 EVO, HDHomerun Prime & Extend  Tuners- running Windows 10 (and other goodies)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Blaster executable not always processing bishoph 4 1,420 2022-08-07, 09:41 PM
Last Post: mvallevand
  Anyone have a nightly batch of post processing implemented? digiblur 12 4,830 2015-09-19, 11:16 PM
Last Post: jd1940
  Post Processing -- Changing the filename mepalmer 4 1,872 2015-03-07, 05:08 PM
Last Post: Reddwarf
  Does NPVR do any buffering/processing with HDhomerun PRIME ? Spark 5 2,419 2014-06-26, 09:00 PM
Last Post: Spark
  Parallel Processing.bat Reddwarf 28 10,114 2012-02-26, 01:18 AM
Last Post: dvasco
  Recordings "Lost" After Post-Processing - Files Still There pwrmac7100 7 2,659 2011-04-08, 08:33 PM
Last Post: Reddwarf

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

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

Linear Mode
Threaded Mode