Kodi Community Forum

Full Version: SOLVED: TVH on Win10 Home?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
solution here: https://forum.kodi.tv/showthread.php?tid...pid2881106


Currently, using Win10 NextPVR as backend and Kodi (android TV, RPi3) as frontend. This works 99% except for 1 minor issue (https://forum.kodi.tv/showthread.php?tid=282357, "Recorded TV playback ends when watching a current recording")

I've configured TVH on RPi3 + LibreELEC and TVH works for most part. Found HDHR tuners, can schedule record, watch live TV. But the issue is RPi3 is not fast enough to handle reading/writing/timeshifting two 20mbps ATSC MPEG2 streams simultaneously. So I am exploring TVH on Windows 10 desktop. (From my research, TVH doesn't have the above issue that NextPVR has)

I googled TVH + Win10 but most are old threads. Would appreciate if anyone has a working guide/tutorial.
My understanding is that TVH only runs on Linux. It cannot run on Windows (although Kodi clients on Windows can connect to a TVH server).

I'd say you have two choices. If the Windows 10 PC you have is only being used for TV server and Kodi, consider installing LibreElec and TVH there.

Alternatively, upgrade your Raspberry Pi 3 to a Raspberry Pi 4, which has better USB and ethernet. I'm using this setup with three DVB-T2 tuners and not seen any problems so far.
Maybe you can install Docker on Windows and install TVHeadend as a Container:

https://docs.docker.com/docker-for-windows/

Why don’t you setup a linux machine with Debian or Ubuntu?

Regards Hoppel
Copied from https://tvheadend.org/boards/5/topics/38600

Finally, I have a fully functioning TVH backend running on Windows 10 with Kodi clients.

Findings: 
1. It takes 1 second to switch live TV channels with timeshifting on (vs 4 seconds w/ NextPVR) 
2. Timeshifting is flawless. For example, if I record a 1-hr show at 2 pm, I can start watching at 2:20 pm from beginning and watch the entire show while skipping commercials without disruption (couldn't do this in NextPVR) 
3. According to Windows task manager, TVH is using 4% of CPU and 18MB of memory, while recording/playing TV.
4. No stutter/pixelation (RPi3 TVH couldn't handle two 20mbps streams writing/reading simultaneously)

Installation steps:
1. Install Ubuntu 16.04 on Windows 10: https://www.microsoft.com/en-us/p/ubuntu...jn388hp8c9 (18.04 didn't work)
2. Install TVheadend unstable version https://tvheadend.org/projects/tvheadend...positories (stable version found tuners but didn't find services)
3. http://localhost:9981 Start Wizard to set up user account, tuners, channels, EPG 
https://dirtyoptics.com/how-to-configure...nd-server/
4. Set up frontend client such as Kodi>TVheadend PVR addon (w/ IP address, user account in #3)

Tips:
1. WSL automatically mounts all HDD. I'm using E drive as the recording storage instead of default /home/hts. 
2. Starting Linux background services on Windows startup https://dev.to/ironfroggy/wsl-tips-start...login-3o98 
3. (For USA) Free EPG XMLTV http://zap2xml.awardspace.info/ 
I couldn't get TVH to pull EPG XMLTV automatically daily. I used the above program w/ Windows task scheduler to pull 14 day guide at 6 am. Then TVH imports XMLTV file w/ "tv_grab_file" EPG grabber at 6:30 am.
(2019-08-29, 13:28)acegolfer Wrote: [ -> ]Copied from https://tvheadend.org/boards/5/topics/38600

Finally, I have a fully functioning TVH backend running on Windows 10 with Kodi clients.

Findings: 
1. It takes 1 second to switch live TV channels with timeshifting on (vs 4 seconds w/ NextPVR) 
2. Timeshifting is flawless. For example, if I record a 1-hr show at 2 pm, I can start watching at 2:20 pm from beginning and watch the entire show while skipping commercials without disruption (couldn't do this in NextPVR) 
3. According to Windows task manager, TVH is using 4% of CPU and 18MB of memory, while recording/playing TV.
4. No stutter/pixelation (RPi3 TVH couldn't handle two 20mbps streams writing/reading simultaneously)

Installation steps:
1. Install Ubuntu 16.04 on Windows 10: https://www.microsoft.com/en-us/p/ubuntu...jn388hp8c9 (18.04 didn't work)
2. Install TVheadend unstable version https://tvheadend.org/projects/tvheadend...positories (stable version found tuners but didn't find services)
3. http://localhost:9981 Start Wizard to set up user account, tuners, channels, EPG 
https://dirtyoptics.com/how-to-configure...nd-server/
4. Set up frontend client such as Kodi>TVheadend PVR addon (w/ IP address, user account in #3)

Tips:
1. WSL automatically mounts all HDD. I'm using E drive as the recording storage instead of default /home/hts. 
2. Starting Linux background services on Windows startup https://dev.to/ironfroggy/wsl-tips-start...login-3o98 
3. (For USA) Free EPG XMLTV http://zap2xml.awardspace.info/ 
I couldn't get TVH to pull EPG XMLTV automatically daily. I used the above program w/ Windows task scheduler to pull 14 day guide at 6 am. Then TVH imports XMLTV file w/ "tv_grab_file" EPG grabber at 6:30 am.
Been trying to get this working on 18.04 for ages- with both stable & unstable I get no services found.

As per above now trying 16.04, but get this when first running 16.04 after install from the store:

Image

Did you get this too? If so how can it be got round?  I keep entering the new username and get the same error repeated.  This doesn't happen with either of the 18.04 versions from the store.
(2019-08-31, 17:18)tredman Wrote: [ -> ]
(2019-08-29, 13:28)acegolfer Wrote: [ -> ]Copied from https://tvheadend.org/boards/5/topics/38600

Finally, I have a fully functioning TVH backend running on Windows 10 with Kodi clients.

Findings: 
1. It takes 1 second to switch live TV channels with timeshifting on (vs 4 seconds w/ NextPVR) 
2. Timeshifting is flawless. For example, if I record a 1-hr show at 2 pm, I can start watching at 2:20 pm from beginning and watch the entire show while skipping commercials without disruption (couldn't do this in NextPVR) 
3. According to Windows task manager, TVH is using 4% of CPU and 18MB of memory, while recording/playing TV.
4. No stutter/pixelation (RPi3 TVH couldn't handle two 20mbps streams writing/reading simultaneously)

Installation steps:
1. Install Ubuntu 16.04 on Windows 10: https://www.microsoft.com/en-us/p/ubuntu...jn388hp8c9 (18.04 didn't work)
2. Install TVheadend unstable version https://tvheadend.org/projects/tvheadend...positories (stable version found tuners but didn't find services)
3. http://localhost:9981 Start Wizard to set up user account, tuners, channels, EPG 
https://dirtyoptics.com/how-to-configure...nd-server/
4. Set up frontend client such as Kodi>TVheadend PVR addon (w/ IP address, user account in #3)

Tips:
1. WSL automatically mounts all HDD. I'm using E drive as the recording storage instead of default /home/hts. 
2. Starting Linux background services on Windows startup https://dev.to/ironfroggy/wsl-tips-start...login-3o98 
3. (For USA) Free EPG XMLTV http://zap2xml.awardspace.info/ 
I couldn't get TVH to pull EPG XMLTV automatically daily. I used the above program w/ Windows task scheduler to pull 14 day guide at 6 am. Then TVH imports XMLTV file w/ "tv_grab_file" EPG grabber at 6:30 am.
Been trying to get this working on 18.04 for ages- with both stable & unstable I get no services found.

As per above now trying 16.04, but get this when first running 16.04 after install from the store:

Image

Did you get this too? If so how can it be got round?  I keep entering the new username and get the same error repeated.  This doesn't happen with either of the 18.04 versions from the store. 
Ok, fixed it - have to install the Ubuntu app on the system drive - installing the ubuntu app forces this to happen, with the specific 16.04 version you need to change the location manually before install.
Did you get this running? I have things up and running.

Few minor issues, but one bigger one: every now and then TV Headend stops responding (perhaps due to another issue that I have fixed right now) and then the only thing I can do to fix it is: restart my Windows host.

There seems to be a tvheadend process in Windows after setting this up in Ubuntu. This process stays alive, no matter what I do! I cannot kill or restart the process... nothing!
(2019-08-29, 13:28)acegolfer Wrote: [ -> ]Copied from https://tvheadend.org/boards/5/topics/38600

Finally, I have a fully functioning TVH backend running on Windows 10 with Kodi clients.

Findings: 
1. It takes 1 second to switch live TV channels with timeshifting on (vs 4 seconds w/ NextPVR) 
2. Timeshifting is flawless. For example, if I record a 1-hr show at 2 pm, I can start watching at 2:20 pm from beginning and watch the entire show while skipping commercials without disruption (couldn't do this in NextPVR) 
3. According to Windows task manager, TVH is using 4% of CPU and 18MB of memory, while recording/playing TV.
4. No stutter/pixelation (RPi3 TVH couldn't handle two 20mbps streams writing/reading simultaneously)

Installation steps:
1. Install Ubuntu 16.04 on Windows 10: https://www.microsoft.com/en-us/p/ubuntu...jn388hp8c9 (18.04 didn't work)
2. Install TVheadend unstable version https://tvheadend.org/projects/tvheadend...positories (stable version found tuners but didn't find services)
3. http://localhost:9981 Start Wizard to set up user account, tuners, channels, EPG 
https://dirtyoptics.com/how-to-configure...nd-server/
4. Set up frontend client such as Kodi>TVheadend PVR addon (w/ IP address, user account in #3)

Tips:
1. WSL automatically mounts all HDD. I'm using E drive as the recording storage instead of default /home/hts. 
2. Starting Linux background services on Windows startup https://dev.to/ironfroggy/wsl-tips-start...login-3o98 
3. (For USA) Free EPG XMLTV http://zap2xml.awardspace.info/ 
I couldn't get TVH to pull EPG XMLTV automatically daily. I used the above program w/ Windows task scheduler to pull 14 day guide at 6 am. Then TVH imports XMLTV file w/ "tv_grab_file" EPG grabber at 6:30 am.
Have you managed to install any tuner drivers? Do you need to install them or are they passed through from Windows? 
My tuners require media_build, which doesn't seem to build on Ubuntu (running 20.04 and TVHeadend is running)
I have been using HD Homerun network tuners. That works great! Everything needed was passed through from Windows
@dave2318

Please don't needlessly quote an entire large post for 1 or 2 lines of reply.

On this forum, you can select/mark a small portion of text with your mouse, and a Reply option will appear in the lower left corner of that post.
Click the Reply bar, and the selected text will be pasted into the reply text box. Repeat if you need to quote more than 1 text. Thanks Smile