Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

NextPVR Channel - stream live TV to Plex from NextPVR

retznutzretznutz Posts: 22Members, Plex Pass Plex Pass
edited December 2015 in Plex Channel Plugins

Just wanted to throw this out there to those who are interested. This plugin allows you to stream live TV from NextPVR - it's based on some of the code psyciknz wrote for NextPVR-Plex but mine only streams live TV. plex-npvr can handle subchannels (4.1,4.2, etc...) and the ability to have broadcaster logos displayed on the channel listing.

See GitHub for more info:

https://github.com/retznutz/plex-npvr


Didn't mean that as a question :)

Tagged:

Best Answers

«1345678

Answers

  • markymanmarkmarkymanmark Posts: 192Members ✭✭

    hi there,how do i install this,do i have to rename the bundle or anything?

  • taproomtaproom Posts: 15Members, Plex Pass Plex Pass

    When you unzip, you'll find a folder npvr.bundle. Copy the npvr.bundle folder to the usual plug-ins folder on your server. You'll also have to download and install NextPVR "http://forums.nextpvr.com/showthread.php?57587-3-6-6-available-(5th-Dec)". Most importantly though, I believe you need a digital tuner for your computer. If a tuner is not required, someone PLEASE speak up.

  • markymanmarkmarkymanmark Posts: 192Members ✭✭

    ok,thanks for the help taproom.

  • plexuser2311plexuser2311 Posts: 5Members ✭✭

    Could you please elaborate what settings to use? I installed 3.6.6 NPVR and your plugin, and the settings I gave as 127.0.0.1 and port as 8866. Says channel not available. What am I doing wrong here? NextPVR standalone can play live tv

  • retznutzretznutz Posts: 22Members, Plex Pass Plex Pass

    Hey guys - glad to see you are using it. plexuser2331 - you need to point to the address of the machine that has NextPVR installed. You can use 127.0.0.1 if both NextPVR and Plex are installed on the same machine.
    Sernding the log files from plex-npvr would help - they are located a couple of directories up from the plugin directory (on Windows)

    Couple of questions:

    1. Are you using Linux, OSX, or Windows?
    2. Are the stations in your area sub-channels like 12.3, 6.1, etc?

    Also, make sure you have NextPVR setup to get a program listing (EPG). I'm updating the plugin to just list out channels if you don't have the EPG setup (http://www.nextpvr.com/nwiki/pmwiki.php?n=Configuration.EPG)

    taproom - thanks for helping out. You are correct, this is for over the air TV, and you DO need a digital tuner card to use with NextPVR and make it all work. This basically calls the new NextPVR API to get a video stream, then Plex re-compresses the video stream (which works great in a browser, as the browser based NextPVR client does not work to stream live TV because of changes to plugin formats that no longer work with VLC)

  • plexuser2311plexuser2311 Posts: 5Members ✭✭

    Windows 10. Channels use sub-channels like 12.3, 6.1 etc
    Installed flash and silverlight
    Channel pulls EPG, metadata everything. Log shows all channel info.
    Last part of log file:
    2015-12-07 22:46:54,611 (1c50) : DEBUG (runtime:106) - Sending packed state data (106 bytes)
    2015-12-07 22:46:54,611 (1c50) : DEBUG (runtime:924) - Response: [200] MediaContainer, 56145 bytes
    2015-12-07 22:46:59,486 (928) : DEBUG (runtime:717) - Handling request GET /video/npvr
    2015-12-07 22:46:59,486 (928) : DEBUG (runtime:814) - Found route matching /video/npvr
    2015-12-07 22:46:59,486 (928) : INFO (logkit:16) - Client {'Origin': 'http://app.plex.tv', 'Accept-Language': 'en', 'Accept-Encoding': 'gzip, deflate', 'X-Plex-Token': 'sJxxWKBRZThuKae7XzQp', 'X-Plex-Platform-Version': '42.0', 'X-Plex-Device-Name': 'Plex Web (Firefox)', 'X-Plex-Client-Identifier': '5d39a2dc-cf22-4202-a8f3-770a31243a26', 'Connection': 'keep-alive', 'Accept': 'text/plain, /; q=0.01', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0', 'X-Plex-Device': 'Windows', 'Host': '10.1.10.81:32400', 'Referer': 'http://app.plex.tv/web/app', 'X-Plex-Product': 'Plex Web', 'If-None-Match': '"8d4b0886ffe6dd83b4083e915ad4ed84504f4029"', 'X-Plex-Platform': 'Firefox', 'X-Plex-Version': '2.4.38'}
    2015-12-07 22:46:59,486 (928) : INFO (logkit:16) - Client Details: ident:5d39a2dc-cf22-4202-a8f3-770a31243a26
    2015-12-07 22:46:59,486 (928) : INFO (logkit:16) - MainMenu: Adding Live Menu
    2015-12-07 22:46:59,503 (928) : INFO (logkit:16) - MainMenu: URL set to http://127.0.0.1:8866/
    2015-12-07 22:46:59,503 (928) : DEBUG (base:117) - Checking if com.retznutz.plexapp.npvr is broken
    2015-12-07 22:46:59,503 (928) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjUKY29tLnJldHpudXR6LnBsZXhhcHAubnB2cnMxMAppZGVudGlmaWVycjAK'
    2015-12-07 22:46:59,549 (928) : DEBUG (runtime:106) - Sending packed state data (106 bytes)
    2015-12-07 22:46:59,549 (928) : DEBUG (runtime:924) - Response: [200] MediaContainer, 614 bytes
    2015-12-07 22:46:59,596 (1354) : DEBUG (runtime:717) - Handling request GET /video/npvr/videoclipobject?container=mp2ts&title=WLS-HD+%287.1%29++Jimmy+Kimmel+Live&url=http%3A%2F%2F127.0.0.1%3A8866%2Flive%3Fchannel%3D7.1%26sid%3Dplex%26client%3D5d39a2dc-cf22-4202-a8f3-770a31243a26&includeRelated=False&include_container=True&summary=Director+Quentin+Tarantino+and+actors+Samuel+L.+Jackson%2C+Kurt+Russell%2C+Jennifer+Jason+Leigh%2C+Walton+Goggins%2C+Tim+Roth%2C+Michael+Madsen+and+Bruce+Dern+from+%22The+Hateful+Eight%22+are+interviewed%3B+a+musical+performance+by+Rick+Ross.&includeRelatedCount=False&rating_key=7190&call_sign=WLS-HD&channel=7190
    2015-12-07 22:46:59,596 (1354) : DEBUG (runtime:814) - Found route matching /video/npvr/videoclipobject
    2015-12-07 22:46:59,596 (1354) : INFO (logkit:16) - Logo: WLS-HD.png
    2015-12-07 22:46:59,611 (1354) : INFO (logkit:16) - CreateVideoClipObject: Playvideo: http://127.0.0.1:8866/live?channel=7.1&sid=plex&client=5d39a2dc-cf22-4202-a8f3-770a31243a26
    2015-12-07 22:46:59,611 (1354) : DEBUG (runtime:106) - Sending packed state data (106 bytes)
    2015-12-07 22:46:59,611 (1354) : DEBUG (runtime:924) - Response: [200] MediaContainer, 1809 bytes
    2015-12-07 22:47:01,753 (6e4) : DEBUG (runtime:717) - Handling request GET /video/npvr/videoclipobject?container=mp2ts&title=WLS-HD+%287.1%29++Jimmy+Kimmel+Live&url=http%3A%2F%2F127.0.0.1%3A8866%2Flive%3Fchannel%3D7.1%26sid%3Dplex%26client%3D5d39a2dc-cf22-4202-a8f3-770a31243a26&includeRelated=False&include_container=True&summary=Director+Quentin+Tarantino+and+actors+Samuel+L.+Jackson%2C+Kurt+Russell%2C+Jennifer+Jason+Leigh%2C+Walton+Goggins%2C+Tim+Roth%2C+Michael+Madsen+and+Bruce+Dern+from+%22The+Hateful+Eight%22+are+interviewed%3B+a+musical+performance+by+Rick+Ross.&includeRelatedCount=False&rating_key=7190&call_sign=WLS-HD&channel=7190
    2015-12-07 22:47:01,753 (6e4) : DEBUG (runtime:814) - Found route matching /video/npvr/videoclipobject
    2015-12-07 22:47:01,753 (6e4) : INFO (logkit:16) - Logo: WLS-HD.png
    2015-12-07 22:47:01,753 (6e4) : INFO (logkit:16) - CreateVideoClipObject: Playvideo: http://127.0.0.1:8866/live?channel=7.1&sid=plex&client=5d39a2dc-cf22-4202-a8f3-770a31243a26
    2015-12-07 22:47:01,767 (6e4) : DEBUG (runtime:106) - Sending packed state data (106 bytes)
    2015-12-07 22:47:01,767 (6e4) : DEBUG (runtime:924) - Response: [200] MediaContainer, 1809 bytes
    2015-12-07 22:47:01,986 (16c0) : DEBUG (runtime:717) - Handling request GET /video/npvr/videoclipobject?call_sign=WLS-HD&channel=7190&container=mp2ts&includeRelated=False&includeRelatedCount=False&include_container=True&rating_key=7190&summary=Director%2BQuentin%2BTarantino%2Band%2Bactors%2BSamuel%2BL%2E%2BJackson,%2BKurt%2BRussell,%2BJennifer%2BJason%2BLeigh,%2BWalton%2BGoggins,%2BTim%2BRoth,%2BMichael%2BMadsen%2Band%2BBruce%2BDern%2Bfrom%2B%2522The%2BHateful%2BEight%2522%2Bare%2Binterviewed%253B%2Ba%2Bmusical%2Bperformance%2Bby%2BRick%2BRoss%2E&title=WLS-HD%2B%25287%2E1%2529%2B%2BJimmy%2BKimmel%2BLive&url=http%3A%2F%2F127%2E0%2E0%2E1%3A8866%2Flive%3Fchannel%3D7%2E1%26sid%3Dplex%26client%3D5d39a2dc-cf22-4202-a8f3-770a31243a26
    2015-12-07 22:47:02,003 (16c0) : DEBUG (runtime:814) - Found route matching /video/npvr/videoclipobject
    2015-12-07 22:47:02,003 (16c0) : INFO (logkit:16) - Logo: WLS-HD.png
    2015-12-07 22:47:02,003 (16c0) : INFO (logkit:16) - CreateVideoClipObject: Playvideo: http://127.0.0.1:8866/live?channel=7.1&sid=plex&client=5d39a2dc-cf22-4202-a8f3-770a31243a26
    2015-12-07 22:47:02,003 (16c0) : DEBUG (runtime:106) - Sending packed state data (106 bytes)
    2015-12-07 22:47:02,003 (16c0) : DEBUG (runtime:924) - Response: [200] MediaContainer, 1895 bytes

  • plexuser2311plexuser2311 Posts: 5Members ✭✭

    Okay,now I can copy the link from the log and play it in VLC standalone player. Firefox wouldnt let me play, so is chrome and Edge.trying further.

  • retznutzretznutz Posts: 22Members, Plex Pass Plex Pass

    plexuser2311 - good to hear you've got some of it working. he log files look correct, so it may be the bug I outline below...

    I also discovered an issue with iOS and tvOS devices that I've fixedb(and possibly other plex clients other than the browser). They don't accept a duration of 0 for playback, and thus refuse to play. Go get the latest version from github to try it out.

    The reason some browsers won't play the stream is that tv streams are not mp4 streams that most browsers accept natively - VLC can play them, and has a browser plugin for older versions of browsers, but won't work for newer versions (http://www.vboxcomm.com/enable-vlc-web-plugin-in-google-chrome-npapi.html?tmpl=component).

  • plexuser2311plexuser2311 Posts: 5Members ✭✭

    So thats why I can stream PBS and not tv. I was looking forward to stream in iOS(Safari) and Firefox. And my chrome is the latest version 43+, so the npapi wont work. Is there any way you can make the duration 0 work? I re-installed from github but it seems to be the same 0.1.0 version.

  • RandomNinjaAtk02RandomNinjaAtk02 Posts: 186Members, Plex Pass Plex Pass

    Just installed it and got it working!!! Thanks for this! I have been using the HDHR Viewer plugin, so this is something new to try!

  • retznutzretznutz Posts: 22Members, Plex Pass Plex Pass

    Glad to hear it's working for you... more update to come, just a little busy ATM

  • mkmorrismkmorris Posts: 110Members, Plex Pass Plex Pass

    @retznutz
    Awesome bro. I effed around trying to get livetv working today with WMC and WMCServer and plex2wmc, and nothing. Tried yours with the simple and elegant NetPVR and I am up and running with over the air EPG to boot!

    I've put your github repo on watch so I can keep up with your plugin updates.

    Cheers and thanks!

    DocZong

  • timallmantimallman Posts: 3Members, Plex Pass Plex Pass

    Thanks for this. Works great on Plexweb and Roku 3 client. Dodgy on firestick but that's probably the wifi connection.
    I did notice that the delete function does not delete on either client. Shows an 'ok' box but does not delete.

  • deanbab1deanbab1 Posts: 14Members, Plex Pass Plex Pass

    Hello can anybody help I have nextpvr set up on pc used a hapauge hd pvr 2 as tuner an made a custom channel for the hdmi an its working fine on the next pvr program but when I try to get the plugin to connect it just sayys no sources.do I have to have a working epg for it to connect any help cheers

  • petensharipetenshari Posts: 10Members, Plex Pass Plex Pass

    Similar question/issue to deanbab1... I've got a Hauppage HVR-1950 and have the DVB-T channels showing nicely in the plugin but I can't see the Composite input in the plugin but I can in the NextPVR program. Sadly it's the Composite I really want to get working as that's the cable box... lol

    The difference is I've been able to scrape an EPG for the DVB-T channels but can't figure out a way to get an EPG entry or entries for the Composite input to see if it then comes through OK.

    Any suggestions are much appreciated, happy to test things out as needed!

    Cheers

  • retznutzretznutz Posts: 22Members, Plex Pass Plex Pass

    @deanbab1 and @petenshari - yes, right now you do need a working EPG. I'm about 1/2 way through coding something that will compare the available channels with the EPG channels. Also, the plugin was written for OTA TV, so not sure how it would work with a cable box connected to the composite input.

  • retznutzretznutz Posts: 22Members, Plex Pass Plex Pass

    @timallman I'll look at the delete button - guess I didn't notice that. I too noticed that it gets dodgy on a wifi connection - I think it's because of the bandwidth of the encoded video.

  • jkallandjkalland Posts: 544Members, Plex Pass Plex Pass

    @petenshari said:
    Similar question/issue to deanbab1... I've got a Hauppage HVR-1950 and have the DVB-T channels showing nicely in the plugin but I can't see the Composite input in the plugin but I can in the NextPVR program. Sadly it's the Composite I really want to get working as that's the cable box... lol

    The difference is I've been able to scrape an EPG for the DVB-T channels but can't figure out a way to get an EPG entry or entries for the Composite input to see if it then comes through OK.

    Any suggestions are much appreciated, happy to test things out as needed!

    Cheers

    I can't speak to NextPVR specifically (I'm a TVH guy), but typically for cable you have to pull from an external source like zap2xml and have it process on a chron (daily?) in order to get EPG data for anything not fed in OTA

    Netgear Nighthawk R7000 Router + HP ProCurve gig-E switch
    WD My Book Live 1 TB "NAS"
    Dell 3010 Chromebox running Ubuntu 14.04 LTS w/ PMS, TVHeadend (OTA Antenna), and Kodi (Jarvis) wired to the ProCurve (...and with a 1 TB USB3 pocket drive literally taped on top of it)
    Roku 3 (the original 3) wired to the ProCurve
    Roku 3 (2015ish refurb) wired to the Nighthawk (RIP Roku XD)

  • petensharipetenshari Posts: 10Members, Plex Pass Plex Pass

    Thanks @retznutz - I'll keep an eye out for updates to the plugin! When you add the "Donate Beer / Coffee" etc button I'll be clicking to show my appreciation! :)

    @jkalland - Thanks for the comment, I've been looking at this approach but it seems then I have to map the EPG for a particular cable channel to the composite input which ends up being confusing for the boss (aka the wife) as it bears no relationship to what's actually coming through the input. I was trying to experiment with creating a 'Dummy XML' that just says "Cable TV" for every time slot for her but I'm not getting very far with that at the moment...

    Thanks again!

«1345678
Sign In or Register to comment.