NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 5 6 7 8 9 … 93 Next »
Pre and Post Padding

 
  • 0 Vote(s) - 0 Average
Pre and Post Padding
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#1
2014-04-12, 01:32 PM
For the recordings API is there a way to indicate default padding or does a client have to set it specifically (ie sending -1)

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2014-04-12, 05:47 PM
The NextPVR scheduler API has various calls available. Some that have parameters for padding, and some that don't. If you use the calls with no padding, then it uses the defaults. If you use calls with padding, then it'll use whatever padding values you supply. There is calls to get the padding defaults though, if you want to use those calls, and supply the defaults.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#3
2014-04-12, 06:23 PM
Ok thanks I will probably pass this to UJB. MB3 either needs to get these via JSON, or the schedule JSON object that is provided by NEWA should be defaults and not zero.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#4
2014-04-13, 01:50 AM
mvallevand Wrote:For the recordings API is there a way to indicate default padding or does a client have to set it specifically (ie sending -1)

Martin

sub Wrote:The NextPVR scheduler API has various calls available. Some that have parameters for padding, and some that don't. If you use the calls with no padding, then it uses the defaults. If you use calls with padding, then it'll use whatever padding values you supply. There is calls to get the padding defaults though, if you want to use those calls, and supply the defaults.

mvallevand Wrote:Ok thanks I will probably pass this to UJB. MB3 either needs to get these via JSON, or the schedule JSON object that is provided by NEWA should be defaults and not zero.

Martin

Just checked the code.... the schedule recording JSON call takes in the Settings object which carries a pre/post padding element and that is what is used in the schedule call.

Quandary is if you use the default set in NPVR if the incoming settings object = 0 is that a client using the JSON API can't ever set a 0 padding(unless the NPVR default was 0)... I think the idea here is that the JSON API is an native API into NPVR for clients.

What NEWA does is it pulls the NPVR post/pre padding but lets the user change it when they schedule if they choose. I would think the MB3 would want to allow a user to choose what the pre/post padding is.

I could look for a negative.... so if MB3 passes in a -1 instead of 0 I could default to NPVR's pre/post.....

Thoughts?
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#5
2014-04-13, 02:02 AM
UncleJohnsBand Wrote:Thoughts?

The MB3 code uses /public/ScheduleService/Get/SchedSettingsObj to instantiate the object for the recording which you define as the API to get a default scheduleSettings Object. Perhaps as default and not empty you could pre-populate it with defaults.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#6
2014-04-13, 02:13 AM
mvallevand Wrote:The MB3 code uses /public/ScheduleService/Get/SchedSettingsObj to instantiate the object for the recording which you define as the API to get a default scheduleSettings Object. Perhaps as default and not empty you could pre-populate it with defaults.

Martin

I don't have the MB3 NPVR client running yet (rebuild of laptop blew away my setup)..... does the interface give you a option to override the pre/post padding or is there no option to do that?
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#7
2014-04-13, 03:50 AM
UncleJohnsBand Wrote:I don't have the MB3 NPVR client running yet (rebuild of laptop blew away my setup)..... does the interface give you a option to override the pre/post padding or is there no option to do that?

Yes.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#8
2014-04-14, 01:33 AM
mvallevand Wrote:Yes.

Martin

Give the attached a try... defaults the settings object with the pre/post padding set in NPVR. Stop the service and extract to web\app_code and then restart the service.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#9
2014-04-14, 02:27 AM
The patch didn't appear to work from Swagger or MB3.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#10
2014-04-14, 02:55 AM
mvallevand Wrote:The patch didn't appear to work from Swagger or MB3.

Martin

I just updated my pre/post in npvr and went into swagger interface and pulled the default SchedSettingsObj and it appears to work fine...

Code:
{
  "ChannelOID": 0,
  "startDate": "0001-01-01T00:00:00",
  "endDate": "0001-01-01T00:00:00",
  "manualRecTitle": null,
  "epgeventOID": null,
  "scheduleOID": null,
  "recurrOID": null,
  "recDirId": null,
  "rules": null,
  "recurringName": null,
  "qualityDefault": false,
  "qualityGood": false,
  "qualityBetter": false,
  "qualityBest": false,
  "pre_padding_min": 2,
  "post_padding_min": 3,
  "extend_end_time_min": 0,
  "keep_all_days": false,
  "days_to_keep": 0,
  "onlyNew": false,
  "recordOnce": false,
  "recordThisTimeslot": false,
  "recordAnyTimeslot": false,
  "recordThisDay": false,
  "recordAnyDay": false,
  "recordSpecificdays": false,
  "dayMonday": false,
  "dayTuesday": false,
  "dayWednesday": false,
  "dayThursday": false,
  "dayFriday": false,
  "daySaturday": false,
  "daySunday": false,
  "allChannels": false,
  "recColorRed": false,
  "recColorYellow": false,
  "recColorGreen": false,
  "recColorBlue": false
}
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  What format to post a plugin? McBainUK 5 2,170 2005-10-28, 12:31 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