NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 25 26 27 28 29 … 43 Next »
Bug if no tuners available

 
  • 0 Vote(s) - 0 Average
Bug if no tuners available
janoonk
Offline

Member

Netherlands
Posts: 105
Threads: 33
Joined: Dec 2020
#1
2021-01-10, 09:10 PM
I have quad tuner HDHomeRun.
If no tuners are in use and in the guide I select four current running shows to record this works great. The fifth show will give me an error "no tuner available".
BUT if 1 tuner is in use by another program (I my case TV Mosaic) and I only have three available for NextPVR and I then select three current shows to record it works.... BUT the fourth show won't give me an error.
If I then cancel 1 recording (from the three) and go back to the fourth show that didn't succeed to be recorded NextPVR thinks it is recording! I have to do cancel and go back to it again and press record.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#2
2021-01-11, 01:11 AM
If you configure channels as being available to NextPVR on a certain tuner, then NextPVR's scheduler has to assume that tuner will be avilable to it. It has no way to know you'll later be using that tuner for something else. (or currently using it for something else)
janoonk
Offline

Member

Netherlands
Posts: 105
Threads: 33
Joined: Dec 2020
#3
2021-01-11, 08:20 AM (This post was last modified: 2021-01-11, 09:21 AM by janoonk.)
Why don't you use the HDHomeRun API to check tuner availability?
https://info.hdhomerun.com/info/http_api

You could also just check the status page through a simple web API call for example http://192.168.11.105/tuners.html
and parse the results.

You can also just use auto in the url so a free tuner will be used, no need to specify the exact tuner.
And if you check the API docs you can read that if a call to http://192.168.11.105:5004/auto/v1
and if it fails, because all tuners are occupied, a 503 HTTP status code will be returned. It even returns more detailed info in the response headers:
X-HDHomeRun-Error: 805 All Tuners In Use
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#4
2021-01-11, 11:43 AM
(2021-01-11, 08:20 AM)janoonk Wrote: Why don't you use the HDHomeRun API to check tuner availability?

Not everyone uses HDHR tuners ... plus not everyone uses multiple softwares to do more or less the same thing to record and watch TV ... There is much else to do and only one Sub.

Why don't you use one software to record and watch TV?
janoonk
Offline

Member

Netherlands
Posts: 105
Threads: 33
Joined: Dec 2020
#5
2021-01-11, 12:55 PM
(2021-01-11, 11:43 AM)Graham Wrote:
(2021-01-11, 08:20 AM)janoonk Wrote: Why don't you use the HDHomeRun API to check tuner availability?

Not everyone uses HDHR tuners ... plus not everyone uses multiple softwares to do more or less the same thing to record and watch TV ... There is much else to do and only one Sub.

Why don't you use one software to record and watch TV?

You're right ofcourse.  I am using multiple software that uses the tuners... main reason because I am still migrating from HDHomeRun app and TV Mosaic app and recording backend to NextPVR (and app) and still do some testing. TV Mosaic has become absolete / EOL, but sometimes I still use the HDHomeRun app to watch TV, a habit I guess. I guess I have to choose Smile

Nevertheless it would make NextPVR more robust, but with only 1 man coding I agree that this not a prio.

Sidenote: Why not make NextPVR open-source so more people can help sub?
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#6
2021-01-11, 01:45 PM
(2021-01-11, 12:55 PM)janoonk Wrote: Sidenote: Why not make NextPVR open-source so more people can help sub?

It's not for me to say ... but what the heck ... A long time ago, Sub was was granted access to proprietary information by this or that tuner manufacturer on condition that he wrote closed source software.

Plus ... and importantly ... NextPVR "just works" because it is in the hands of one bloke who has been writing the same program for more than fifteen years and is really beginning to get the hang of it now ... Smile
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,835
Threads: 954
Joined: May 2006
#7
2021-01-11, 02:30 PM
Using the API wouldn't buy too much since it will still try and use another tuner if it fails. It is a method that will work with all tuners not just Silcon Dust. Once you have a stable environment it will be better. Also your explanation doesn't cut it because while you may be using other apps for recording playback that doesn't mean you have to continue recording in them until a series ends.

I do have a utility to import TV Mosaic recordings if that helps.

Martin
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#8
2021-01-11, 04:26 PM
(2021-01-11, 08:20 AM)janoonk Wrote: Why don't you use the HDHomeRun API to check tuner availability?
https://info.hdhomerun.com/info/http_api

You could also just check the status page through a simple web API call for example http://192.168.11.105/tuners.html
and parse the results.

You can also just use auto in the url so a free tuner will be used, no need to specify the exact tuner.
And if you check the API docs you can read that if a call to http://192.168.11.105:5004/auto/v1
and if it fails, because all tuners are occupied, a 503 HTTP status code will be returned. It even returns more detailed info in the response headers:
X-HDHomeRun-Error: 805 All Tuners In Use
In addition to what was already said above...

There would be no point in me checking what tuners are available at the time you schedule the recordings, since that in no way reflects what tuners will be available at some later time when the recordings are due to happen. ie, you might be watching live tv in some other software now, but it doesn't mean you will be later when the recordings are due to start. NextPVR has to assume that it can schedule recordings on any tuners you told it are available. ie, if you have four tuners which you've setup in NextPVR, it has to assume those four tuners will be available at recording time, so will allow you to schedule four recordings. When the recordings try to start, if a tuner isn't available, that recording will ultimately get an error.

If you're going to use the software in different applications, I'd recommend deleting a couple of the tuners in NextPVR, so that it's not working on the assumption that it can user all the tuners.
janoonk
Offline

Member

Netherlands
Posts: 105
Threads: 33
Joined: Dec 2020
#9
2021-01-12, 08:26 AM
(2021-01-11, 02:30 PM)mvallevand Wrote: Using the API wouldn't buy too much since it will still try and use another tuner if it fails.  It is a method that will work with all tuners not just Silcon Dust. Once you have a stable environment it will be better.  Also your explanation doesn't cut it because while you may be using other apps for recording playback that doesn't mean you have to continue recording in them until a series ends.

I do have a utility to import TV Mosaic recordings if that helps.

Martin

I meant watching *live* TV (with the HDHomeRun app). I am already doing all my recording with NextPVR in Docker on my NAS and it's working great (since I fixed my broken coax cableSmile): 4 HD streams of 12MBit each and CPU < 8%.

Thanks for the offer about import tool but it wasn't much work to recreate the few re-recurring schedules I had.
janoonk
Offline

Member

Netherlands
Posts: 105
Threads: 33
Joined: Dec 2020
#10
2021-01-12, 08:32 AM
(2021-01-11, 01:45 PM)Graham Wrote:
(2021-01-11, 12:55 PM)janoonk Wrote: Sidenote: Why not make NextPVR open-source so more people can help sub?

It's not for me to say ... but what the heck ... A long time ago, Sub was was granted access to proprietary information by this or that tuner manufacturer on condition that he wrote closed source software.

Plus ... and importantly ... NextPVR "just works" because it is in the hands of one bloke who has been writing the same program for more than fifteen years and is really beginning to get the hang of it now ... Smile

Then hopefully sub will get at least 100 years old so I can continue using it Smile
All jokes aside as much as I love people working hard and be passionate about it... what if sub stops developing or something happens to him? Open-source is the way to go. It's inspiring to have multiple people working on the same project, helping and learning from each other. You spread/lower the risk that the project get's abandoned. But ok that's just my opinion.
Meanwhile I will continue contribute here on the forum (testing, giving feedback) but I could do much more... and with me many other users with dev experience also.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to rename IPTV tuners? brcarls 1 273 2025-02-27, 07:58 PM
Last Post: sub
  Linux Ending Tuner Recording Early For New Recording Despite Idle Tuners Available LinuxDVR 5 1,099 2022-11-18, 09:30 PM
Last Post: mvallevand
  Keep Tuners Primed vitony 4 1,280 2021-12-29, 05:26 PM
Last Post: vitony
  Multiple tuners - Not working aTF6i 24 4,730 2021-12-09, 01:45 AM
Last Post: aTF6i
  Need help. [Failed: No errors, but no data delivered] pci-e and usb tuners briantho 3 1,167 2021-11-29, 05:35 PM
Last Post: briantho
  Cannot seem to disable tuners, and importing channels peterdegroot 3 1,227 2021-07-15, 07:26 AM
Last Post: peterdegroot
  Prime Digital Tuners setting Red5ive 7 3,028 2020-01-20, 07:19 PM
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