NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 34 35 36 37 38 … 43 Next »
NPVR Script Templates (Windows)

 
  • 0 Vote(s) - 0 Average
NPVR Script Templates (Windows)
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#1
2020-04-05, 06:04 PM (This post was last modified: 2020-04-19, 02:29 PM by JavaWiz.)
After re-imaging my NPVR pc, I decided to make the move to v5.  All went perfectly, clean install, up and running in no time.  As part of getting setup again, I took a run thru my scripts and updated.  As I've seen a few questions around how to incorporate custom scripts into NPVR, I've created a template for the scripts and attached to this thread. 

There is a README.txt in the file explaining how to install and use the scripts.  They provide a logging mechanism to identify when each script is called with their parameters, and place the output in a common log file.  You can easily customize and provide your own functionality (i.e. to call comskip to remove commercials).

I'll add them to the wiki (sub, I'll PM you my Github info) once I think they are solid...  Looking for any bugs or general enhancement feedback...

Also please verify, i notice a couple of scripts (PostStartup.bat and WakeUp.bat) were not reflected on the wiki page...  Are they still valid?
JavaWiz...


Attached Files
.zip   NPVR5_Script_Templates.zip (Size: 11.41 KB / Downloads: 45)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#2
2020-04-05, 06:12 PM
A couple of comments for documenation of this good initiative.

- you need to preface these are Windows scripts.
- users should be aware that stdout will be written to nrecord.log
- you need to add to be very careful about any stdout in parallel processing, it will be written to a file if extras are being used.

Martin
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#3
2020-04-05, 06:46 PM
(2020-04-05, 06:12 PM)mvallevand Wrote: A couple of comments for documenation of this good initiative.

- you need to preface these are Windows scripts.
- users should be aware that stdout will be written to nrecord.log
- you need to add to be very careful about any stdout in parallel processing, it will be written to a file if extras are being used.

Martin

Good feedback, thanks Martin...  

I've updated the title of this thread to note these are windows scripts (I potentially will also port to linux when I have some time). 

I hadn't noticed the stdout ends up in the nrecord.log, I'll look at adding a feature to either minimize or stop any stdout logging.

About your comment related to parallel processing...  What do you mean "if extras" are being used?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#4
2020-04-05, 06:53 PM
Extras are a new tuning device in v5 NextPVR captures the stdout they create as input files for an mpeg ts file. I think the @echo off will be all that is required in Windows

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#5
2020-04-05, 08:41 PM
(2020-04-05, 06:12 PM)mvallevand Wrote: - you need to add to be very careful about any stdout in parallel processing, it will be written to a file if extras are being used.
I'm pretty sure these are fine. NextPVR is only capturing the standard output of the Extras process. The parallel processing is a separate process.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#6
2020-04-05, 08:44 PM
(2020-04-05, 06:04 PM)JavaWiz Wrote: Also please verify, i notice a couple of scripts (PostStartup.bat and WakeUp.bat) were not reflected on the wiki page...  Are they still valid?
There is still a PostStart.bat which is run.

WakeUp.bat isn't used at this stage, mainly because it requires Windows specific power manage events. It will probably make a return in the near future (for Windows users at least)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#7
2020-04-05, 08:48 PM
(2020-04-05, 08:41 PM)sub Wrote:
(2020-04-05, 06:12 PM)mvallevand Wrote: - you need to add to be very careful about any stdout in parallel processing, it will be written to a file if extras are being used.
I'm pretty sure these are fine. NextPVR is only capturing the standard output of the Extras process. The parallel processing is a separate process.
You are right the @echo off and ffmpeg messages etc need to be silenced in the extras xml and batch command lines.   I was confused with the comskip spam that I used to get from my extras.

Martin
Graham
Offline

Posting Freak

UK
Posts: 4,057
Threads: 102
Joined: Dec 2005
#8
2020-04-19, 03:26 PM
(2020-04-05, 06:04 PM)JavaWiz Wrote: I'll add them to the wiki (sub, I'll PM you my Github info) once I think they are solid...  Looking for any bugs or general enhancement feedback...

This is good stuff and the wiki page looks good ... The wiki has a folder at Utilities/Downloads ... Would the wiki downloads folder be a good place to store the templates?
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#9
2020-04-19, 04:15 PM (This post was last modified: 2020-04-19, 04:48 PM by JavaWiz.)
(2020-04-19, 03:26 PM)Graham Wrote: This is good stuff and the wiki page looks good ... The wiki has a folder at Utilities/Downloads ... Would the wiki downloads folder be a good place to store the templates?
Ah, yes, that would be the place to put them, didn't realize it was there.  I'll see about adding it there. (edit - done)
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NPVR keeps closing unexpected feilh 2 269 2025-02-25, 01:59 AM
Last Post: feilh
  NPVR upgrade on RPi 4 billierios 0 222 2024-10-03, 03:40 AM
Last Post: billierios
  No record button on NextPVR client (Windows 11) hoover1979 11 2,011 2023-12-14, 12:28 AM
Last Post: hoover1979
  Looking for a full offline Windows install RedDawg 6 1,902 2023-06-29, 02:29 PM
Last Post: RedDawg
  NPVR Recording Service fails to start kingdomservant 5 1,065 2023-06-16, 04:51 AM
Last Post: sub
  NPVR on FreeBSD christodoulou73 3 884 2023-03-22, 07:10 PM
Last Post: mvallevand
Question How to start NPVR directly in "Live TV" mode NathanF 2 888 2023-02-13, 04:47 AM
Last Post: NathanF
  Windows 11 - Blank EPG and no ch icons ? PVRbuff 12 1,716 2023-01-30, 06:59 PM
Last Post: mvallevand
  Access to the path C:\Users\Public\NPVR-Data\media\shows is denied. rv0987 4 954 2022-12-28, 03:07 PM
Last Post: mvallevand
  Setup guide to schedule NPVR tymongiffin 1 1,202 2022-08-23, 07:20 AM
Last Post: sub

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

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

Linear Mode
Threaded Mode