I'm trying to get my Hauppauge Cordcutter TV to work with NextPVR. I have 24 clear QAM stations that the native iOS app and Roku apps will pull in so I know it's working. I see it listed under devices in NextPVR but when I scan using the default settings it only finds encrypted channels. I am able to do a manual scan but Im not sure how to specify a range. I need to be able to scan from 189000 to 207000. I can scan individual freq. But I want to pull in all channels in the range. Any ideas?
Posted by: almightyj - 2018-10-23, 07:24 AM - Forum: Developers
- No Replies
Hi Devs. I was doing some IPTV testing and wanted to use my OTA tuner via NPVR as my source. Naturally I saw that http://127.0.0.1:8866/channels creates a functional .m3u8 playlist of known channels... BUT it is missing the crucial "tvg-id" element used to reference epg data in most IPTV apps.
So in an attempt to automate I tinkered with v4.1.1 and found you can easily alter the code base to dynamically create a proper M3U8 playlist AND XMLTV files with matching epg data from the tuner. Much like NPVR does already with json just using a slightly different format.
To make NextPVR output both web-accessible IPTV files (playlist.m3u8 and latest epg.xml in xmltv format) I did this:
2) Manually add web routes to "LoadGuideService()" method within the C:\Users\Public\NPVR\web\App_Code\Routes.cs text file to point to your new IPTV Service Controller.
Code:
Logger.Debug("\n\n$$$$$$$$$$$$$$$$\n"+"Setting IPTV Service Controller for dynamic M3U");
RouteTable.Routes.MapHttpRoute(
"IPTVServiceGetChannelsM3U",
"public/m3u", new { Controller = "IPTVService", Action = "GetChannelsM3U" }, new { httpMethod = new HttpMethodConstraint("Get")
//IMPORTANT: a folder separator is required to allow autologin feature to work, there must be a folder before /public/file.m3u
});
Logger.Debug("\n\n$$$$$$$$$$$$$$$$\n"+"Setting IPTV Service Controller for dynamic XMLTV");
RouteTable.Routes.MapHttpRoute(
"IPTVServiceGetGuideXML",
"public/epg", new { Controller = "IPTVService", Action = "GetGuideXML" }, new { httpMethod = new HttpMethodConstraint("Get")
});
3) That's it, restart the nextpvr service.
Now you can use your favourite IPTV app to stream OTA channels from nextpvr (no transcoding) as if it were an IPTV server AND gather 72 hours of epg data in proper xmltv format.
returns dynamically populated XMLTV file from internal EPG data:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE DocType>
<tv source-info-name="NEXTPVR">
<channel id="7168">
<display-name>ABC HD</display-name>
</channel>
<programme id="1075182" start="20180501120500 +0100" stop="20180501130500 +0100" channel="7168">
<title>Beauty And The Beach</title>
<desc>Meagan was bullied as a child, and has low self-esteem about her breasts since giving birth. Ginger is unhappy with her body since the birth of her son. But will the culture shock of Phuket put them too far out of their comfor..</desc>
</programme>
</tv>
NOTE: there is no tvg-group element. Sources appear under one group called "Tuner" the rest are "Recordings". Hopefully this helps someone in the same boat I was in.
I'm still fairly new to NextPVR and loving the many use cases for it. Obviously this is experimental and unsupported although this little hack has worked perfect so far as there is hardly any new code.
If more experienced devs think a full compiled plugin would be simpler or better could you please advise how to go about that.
Just checking to see if my understanding is correct or if I am missing something.
If I import via .ts a collection of channels and then export the downloaded information and then edit
the channel number information and then restore the updated information, NPVR changes the channel numbers
but the list is not sorted based on the updated channel numbers and remains in the original 1 to n sequence.
Furthermore when the list is used in the Kodi pvr addon the channel numbers are reverted to their 1 to n numbers
ignoring the updated/changed channel numbers completely.
Is this how it is suppose/intended to work or am I very slow and have not done something correctly? If I am stupid just say so.
NextPVR is great an does it job, this is on me as I am screwing something up.
I am using NextPVR with Zap2It for the epg info.
Out of all the EPG grabbers I have tried this is the best and has not broke so far, keep fingers crossed.
My problem is I cannot get the EPG to auto update.
Sometime during the morning I have to manually click on the Update EPG button on the Setting Page and it updates.
Normally this takes about 15 minutes or so and I am good for EPG data for the next 12 hours or so.
Yes the setting is turned on in Misc 2. I have checked it many times.
I have tried at least a dozen times to setup Windows task to auto update and to date none of them have worked.
It has been to many years since I last wrote a .bat file so I cannot remember how to write one that will trigger automatically and I cannot seem to find an example of one on the NextPVR site.
I know where the log files are but I have no idea as to which log file anyone will need to look at as there are so many in the folder.
Can anyone please give me some help with something that will work to auto update my EPG file?
Hello everyone,
Perhaps someone has the same issue I am having. Recently I have been noticing that my video is not in time with the audio. I have found that if I pause live TV for about a min then resume playing, the video catches up with the audio then plays normal.
Thank you for your time.
Bruce
this is my first post, forgive me if I have not posted in the correct area.
this setup is a server 2012r2 with BDA installed to allow for tuner support etc
a quad dvb-t card is installed and works normally
I access from either one of 2 vero4k Kodi boxes, and it all appears to work normally
every now and again, it appears that the recording service fails to record - presented with what appears to be a valid recording that refuses to playback
upon investigation, it would seem that the recording service has failed with the "Recording service not running at recording time" message
there should be no reason, and when logging onto the server, the recording service appears unresponsive (icon on toolbar will not right click & show settings)
stopping the service will not shutdown the service correctly and requires that the service be manually stopped prior to restarting.
once this has been completed, it will work for a few days again.
this seems to be.... intermittent or as result of kodi add-in miscommunication, but I cannot get the required information from the logs to track this down.
I've been using NPVR for about 6 months with my local OTA (flawless!) and just started using an IPTV service a few weeks ago and screwed the channel mapping up a couple of days ago by trying to get a current epg file for the IPTV (huge learning curve re. IPTV epg files). I created a batch file to download the separate epg files and merge into one big epg.xml which worked until I realized IPTV epg files are spotty at updating. Anyway after getting Shedules Direct and removing IPTV device, db editing (to remove the channel groups which hung on in the TV guide Menu), I was able to get NPVR back to pre-IPTV, but want to use IPTV as well.
-Is it possible to have OTA (ATSC) (with Schedules Direct) + IPTV (an epg xml file) co-exist?
-Will NPVR automatically update IPTV (from the epg xml file I download nightly with the UpdateEPG bat file I created) without messing up Schedules Direct (OTA (ATSC))?
-Is the npvr.db3, prior to setting up IPTV, the only file I need to backup to revert back should things get messy with the IPTV setup?
-When setting up and enabling the IPTV device do I have to add the location of the downloaded epg xml file if I use an m3u address for the channels?
When using NextPVR on the server I see the show labels (New, Premiere,etc.). They do not appear in the Kodi TV Guide. I am using Aeon Nox skin which seems like the best looking for the TV Guide.
Is there a way to show these labels?