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 … 379 380 381 382 383 … 433 Next »
NPVR - Getting started, current patches, tips and tricks **!!!!PLEASE READ!!!!**

Thread Closed 
NPVR - Getting started, current patches, tips and tricks **!!!!PLEASE READ!!!!**
nia
Offline

Senior Member

Posts: 385
Threads: 40
Joined: Mar 2005
#141
2011-01-24, 07:49 PM
Great job johnsonx42 - this is really a big help saving a lot of time looking through threads for individual patches. Thank you :-)
Happy user since October 2004
VM Ware ESXi 6 on SuperMicro X9SCM-F | Xeon E3-1230 | Windows 7 (on ESXi) | nPVR 3.7.7
2*HDHomeRun | Kodi on PC and RaspPI | Remote: Logitech Harmony 900 | Storage: unRAID file server 23TB (on ESXi)
|
agerdin
Offline

Senior Member

Posts: 692
Threads: 96
Joined: Sep 2004
#142
2011-01-27, 09:12 AM
johnsonx42,

Has this patch been added to your collection?

http://forums.nextpvr.com/showthread.php...post400601

\\Agerdin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#143
2011-01-27, 03:14 PM
no, I didn't have that one. I don't have a PCH or MVP, and really don't understand how they work with NPVR/GB-PVR, so I never go in those forums. Thanks for the heads up, I'll add it to the patch list.
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
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,771
Threads: 954
Joined: May 2006
#144
2011-01-28, 02:33 AM
agerdin Wrote:johnsonx42,

Has this patch been added to your collection?

http://forums.nextpvr.com/showthread.php...post400601

\\Agerdin

agerdin, I have continued to update NMTInstall2 to support updating of the NPVR patches I recommend with mvpmcx2 since it came out. If you have never used NMTInstall or NMTInstall2 it downloads, unzips, stops services and apps and install patches and restarts the recording service.

You can check the patches installed by NMTInstall on this link http://www.mvpmc.org/~mvallevand/NMTInstall.xml

Martin
agerdin
Offline

Senior Member

Posts: 692
Threads: 96
Joined: Sep 2004
#145
2011-01-31, 08:39 AM
Johnsonx42,

There is a new patch available for PCH/NMT:

http://forums.nextpvr.com/showthread.php...post402258

\\Agerdin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#146
2011-01-31, 01:55 PM
already in the list, patch #35
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
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#147
2011-02-01, 01:03 AM
Patch archive 1.5.36 Final posted. http://forums.gbpvr.com/attachment.php?a...1296521929

We're done with patches for 1.5.36.
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
johnnysocko
Offline

Junior Member

Posts: 46
Threads: 8
Joined: Jan 2008
#148
2011-02-13, 04:57 PM
johnsonx42 Wrote:In case anyone finds it interesting, instructive, or amusing, here is my PostProcessing.bat for the purpose of running comskip. It runs no more than 2 comskips at once, and does a bit of logging into "processing.log".
Code:
@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

:skip
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

Some bits of it are left-overs from the sample gb-pvr postprocessing.bat included with comskip. I left them there in case I ever want to use them.

The bit where it sleeps for <channel number> (%2) seconds might introduce excessive waits for those with high 3-digit channel numbers; you'd probably have to implement it some other way. With the 1.5.36 update I've now switched to storing the temporary count in "%3.txt" where %3 is the recording ID number. This makes for a uniquely named file to store the temporary comskip count. I thought at first this would eliminate the need for the "sleep %2", since multiple postprocessing.bat files would each store their count in a unique file, but within just a couple of hours testing I saw a different race condition that resulted in too many comskips running at once so I restored the sleep. The use of the "%3" parameter still eliminates another race condition that sometimes resulted in no comskip running at all.

Additional non-comskip related commands would go after :continue.

This same file could be a ParallelProcessing.bat as well. In fact I wrote it initially for that use; the code to limit the number of comskips became necessary because I could easily get 4 comskips running at once - 2 finishing recordings that had just ended, and 2 for new recordings just begun. It was too much for my system. For other reasons though I opted not to run comskip in parallel, so I switched to PostProcessing. In PostProcessing I've yet to see more than 2 comskips actually try to run, but it could happen - consider two 2-hour movies followed by two 30-minute shows: comskip will probably still be running on both movies when the two half-hour shows finish and try to launch comskip.

The same basic code could be used for transcodes too; likewise you may not want too many transcodes running at once. tasklist | find /c "ffmpeg" > %3.txt seems reasonable, yes?

I almost forgot to mention, you will need the "sleep.exe" program from the Windows 2003 Resource Kit here: http://www.microsoft.com/downloads/detai...laylang=en. I thought of just attaching the sleep command to this message, but we don't want MS's goons coming after sub Wink. Also, HarryH3 has pointed out that the "tasklist" command is not included with all versions of windows; see his post below to get it (Thanks Harry!): http://forums.gbpvr.com//showthread.php?...post388992

So, I didn't get any response to my own comskip issue, but if you wouldn't mind - could you also share the processing details related to your own working "comclean" post comskip, johnsonx42? That would probably be helpful.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#149
2011-02-13, 08:27 PM
Sorry, what you see in that example is all I do. I've never used comclean and likely never will. You probably didn't get any response because very few people, if any, are trying to do the sort of processing you're doing.
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
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,771
Threads: 954
Joined: May 2006
#150
2011-02-13, 09:22 PM
To add to what johnsonx42 wrote, NPVR includes more sophisticated skipping techniques than used in GBPVR which you lose by cutting commercials or converting to mpeg-ps format as some people do. If you use NextPVR for watching your videos comskip should be more than good enough, if you leave the files as-is. If comskip was 100% accurate comclean would make some sense for archival, but I find it often leaves a commercial behind so it is only half "clean", which is when accurate skipping is important.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (16): « Previous 1 … 12 13 14 15 16 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  npvr is not responding johndutcher 3 1,445 2022-05-05, 07:57 PM
Last Post: sub
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 3,745 2022-04-14, 04:33 AM
Last Post: Antmannz
  nPVR Continually Wakes PC bfos 23 10,959 2022-02-17, 03:48 PM
Last Post: sub
  Can't find tuner filter in NPVR 4.05 on old XP machine (eee 701) with RTL2832U iamanotheruser 3 1,611 2022-01-03, 04:45 AM
Last Post: mvallevand
  Streaming Services with NPVR tesla1886 4 2,604 2021-01-04, 02:58 AM
Last Post: tesla1886
  NPVR choosing incorrect xml guide display-name after reboot drlava 7 2,959 2020-12-27, 02:27 AM
Last Post: sub
  Can NPVR offset only 3 channel listings in EPG? acemib 20 6,777 2020-04-27, 01:28 PM
Last Post: mvallevand
  Import recorded tv shows to NPVR mattman1968 9 5,869 2020-03-03, 12:57 PM
Last Post: Jimixter
  Easiest way to migrate NPVR to a new machine JP23 1 1,912 2020-02-24, 04:55 PM
Last Post: sub
  NPVR Hangs when Changing Channels BorchertD 2 1,627 2020-01-11, 11:37 PM
Last Post: BorchertD

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

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

Linear Mode
Threaded Mode