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 … 34 Next »
Running NPVR in a Docker Container on Windows 10

 
  • 0 Vote(s) - 0 Average
Running NPVR in a Docker Container on Windows 10
pkscout
Offline

Senior Member

USA
Posts: 439
Threads: 48
Joined: May 2014
#1
2020-02-07, 04:09 AM (This post was last modified: 2020-04-24, 12:43 AM by pkscout.)
EDIT: AS OF 03/25/2020 THE GIST TO GET DOCKER RUNNING ON WINDOWS 10 HOME DOES NOT WORK ANYMORE.  I'm leaving the thread here because there was some other conversation, but if you want to run Docker on Windows, you will need to get Windows 10 Pro.


OK, the first thing I should say is: don't do this.  I mean, there really is no reason.  But I did, so I thought I'd at least document it here in case there's one or two other crazy people who want to do this.

Why did I do this crazy thing?
  1. I had a perfectly good test setup running in Docker on my Mac (which was another crazy thing).
  2. I'm planning to get a Synology NAS pretty soon and run NPVR on that in Docker.
  3. I really wanted to go ahead and move to NPVR5 now but didn't want to do a new build on Windows and then try and move everything to Docker later.

What are the caveats?
  1. You cannot use any USB based devices (tuners, IR blasters, nothing).  Docker on Windows (and Mac) don't support passing through USB devices the way the Linux versions do.

Since I have an analog encoder (network based) and IR blaster (USB based), for me that meant I literally had to write a websockets wrapper around my IR blaster software so that I could call the blaster from a Docker container and have a Pi do the channel changes for me.  Remember how I said you shouldn't do this?  I'm serious.  At some point this kind of became an exercise in stubbornness and seeing if I could program my way out of my issues.

And here's the kicker.  Docker Desktop for Windows won't even install on Windows 10 Home by default.  I found this Gist that let's you install the necessary VM components and then temporarily trick Windows 10 Home into saying it's Windows 10 Pro so the Docker Desktop for Windows installer will work.

With Docker running, you can download sub's AMD64 image and run it as the instructions in that section show.  Because I needed Python3 in my image, I used my previously built NPVR image that includes Python3.  More on that in this thread.

But after a couple of hours, it's done.   I'm running NPVR5 on Windows 10 Home in a Docker container.  And the performance is pretty good.  And most of the time was spent exporting my scheduled and current recordings and fixing the XML for updated channel OIDs and Linux paths.  Now when I finally get the new NAS it shouldn't take more than 10 minutes or so to migrate NPVR to it.  I guess the other nice thing about this is that if I have to go back to NPVR4 for some reason, all I have to do is shutdown Docker and restart the NPVR4 service.
pcostanza
Offline

Posting Freak

Posts: 3,768
Threads: 267
Joined: Oct 2004
#2
2020-02-07, 03:49 PM
I suck at anything that relates to coding or the Linux world.  I've tried and have a mental block of some sort. I'm nerdy enough to build all my computers but that's as far as I can get and gave up running NPVR on my Synology. That said, I do have NPVR recording to my NAS and I hope to learn the Docker route at a later time when I have time to study at the University of Google.

Regarding NAS, my 5 year old Synology died and I just got the DS918+.  Overkill but I added extra RAM and definitely see the difference in transcoding.


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)
dsreyn
Offline

Member

USA
Posts: 66
Threads: 13
Joined: Jan 2020
#3
2020-02-13, 11:51 PM
(2020-02-07, 03:49 PM)pcostanza Wrote: I suck at anything that relates to coding or the Linux world.  I've tried and have a mental block of some sort. I'm nerdy enough to build all my computers but that's as far as I can get and gave up running NPVR on my Synology. That said, I do have NPVR recording to my NAS and I hope to learn the Docker route at a later time when I have time to study at the University of Google.

Regarding NAS, my 5 year old Synology died and I just got the DS918+.  Overkill but I added extra RAM and definitely see the difference in transcoding.
Paul -

I recently got NextPVR running on my DS418play using Docker, and it's reasonably straightforward.  I used the Docker GUI, and if you go that route, you don't need to mess with the Linux command line at all.  The only real snags were related to my tuner setup - a mix of HDHR CableCard and OTA, including two OTA models that aren't supported by NextPVR.  I probably would have run into the same issues on Windows though.  I did get everything going with minimal hairpulling, and now it's running like a top.

If you think running NextPVR on the NAS is the way you want to go, I wouldn't let the Linux aspect scare you off.

Doug
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,330
Threads: 865
Joined: May 2006
#4
2020-02-13, 11:53 PM
"OTA models aren't supported by NextPVR" Don't you mean linux?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#5
2020-02-14, 01:53 AM
(2020-02-13, 11:51 PM)dsreyn Wrote: The only real snags were related to my tuner setup - a mix of HDHR CableCard and OTA, including two OTA models that aren't supported by NextPVR. 
Just for the record, I think all the HDHR models work with NextPVR. There was a bug in the most recent release that broke support for the old legacy HDHR devices, but this is fixed now.

Running in docker, there is an extra environment variable you need to set with these older legacy HDHR devices.
dsreyn
Offline

Member

USA
Posts: 66
Threads: 13
Joined: Jan 2020
#6
2020-02-14, 02:10 AM
(2020-02-13, 11:53 PM)mvallevand Wrote: "OTA models aren't supported by NextPVR"  Don't you mean linux?

Martin
No, I meant NextPVR.  We have a bunch of HDHR OTA tuners.  The two oldest ones were not working with what was the current NextPVR version (for Docker) a month or so back, when I first was getting up and running.  And to clarify - this was not a general problem with HDHR OTA tuners - all of our other HDHR OTA tuners worked fine.  So there was clearly something different about the two old ones.  Those two also do not even work with SiliconDust's own iOS app.  Given that, I concluded that they might not be supported by NextPVR either (and we have enough tuners that it wasn't a big deal).  But from sub's reply, it sounds like this may be fixed now, so I'll give it another try when I have a few minutes.

Doug
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#7
2020-02-14, 02:14 AM
Yeah, they should work, but I've fixed this recent-ish bug post the current release, so you'll need to wait until I package up the Docker build again.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#8
2020-04-22, 06:55 PM
(2020-02-07, 04:09 AM)pkscout Wrote: EDIT: AS OF 03/25/2020 THE GIST TO GET DOCKER RUNNING ON WINDOWS 10 DOES NOT WORK ANYMORE.  I'm leaving the thread here because there was some other conversation, but if you want to run Docker on Windows, you will need to get Windows 10 Pro.
why does it not work anymore? It should.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,330
Threads: 865
Joined: May 2006
#9
2020-04-22, 07:12 PM
I think the word "Home" is missing in the bold text. Running without hyper v was a hack.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#10
2020-04-22, 07:46 PM
Ah, yes... if I'd continued reading, I would have got to that bit Big Grin
« 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
  NPVR on FreeBSD christodoulou73 3 173 2023-03-22, 07:10 PM
Last Post: mvallevand
Question How to start NPVR directly in "Live TV" mode NathanF 2 124 2023-02-13, 04:47 AM
Last Post: NathanF
  Windows 11 - Blank EPG and no ch icons ? PVRbuff 12 243 2023-01-30, 06:59 PM
Last Post: mvallevand
  Access to the path C:\Users\Public\NPVR-Data\media\shows is denied. rv0987 4 176 2022-12-28, 03:07 PM
Last Post: mvallevand
  Docker image v6 not available? janoonk 1 214 2022-09-05, 06:54 PM
Last Post: sub
  Setup guide to schedule NPVR tymongiffin 1 349 2022-08-23, 07:20 AM
Last Post: sub
  NPVR station selection issue 2leftfeet 10 501 2022-07-31, 10:19 PM
Last Post: sub
  Windows 10 nextpvr exception at play recording Albert Lathrop 17 1,565 2021-11-16, 09:13 PM
Last Post: sub
  Windows and Linux communicating NinthWave 3 478 2021-10-07, 03:50 PM
Last Post: sub
  windows 11 techpro2004 1 642 2021-07-31, 04:27 AM
Last Post: The Solutor

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

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

Linear Mode
Threaded Mode