[mythtv-users] HLS guide data from SD feed

Stephen Worthington stephen_agent at jsw.gen.nz
Tue Feb 27 07:09:51 UTC 2018


On Tue, 27 Feb 2018 00:54:49 -0500, you wrote:

>This was in the "iptv" thread but probably deserves it's own thread.
>
>Assuming I can get an .m3u8 stream for a channel with a callsign of
>CBOT that exists in my cable subscription with an xmltvid of 10097, and
>assuming I have created an m3u file to create an HLS recorder with:
>
>#EXTM3U
>#EXTINF:0,600 - CBOT
>#EXTMYTHTV:xmltvid=10097
>https://cbclivedai5-i.akamaihd.net/hls/live/567235/event2/CBOT/master1.m3u8
>
>And assuming all of the above works and that I can record from that
>channel 600, how do I get the mythtv guide for that channel to populate
>with the guide data from SD for xmltvid 10097?
>
>As an aside, what is the most effective way to tell MythTV to prefer
>that HLS recorder vs the traditional cablebox recorder that I
>already/also have configured?
>
>Cheers,
>b.

You need to configure the EPG to be used on the source that you create
for your IPTV channels.  In mythtv-setup, go to "Video sources",
select the IPTV source, then set the "Listings grabber" option.  I
presume that you use Schedules Direct in Canada, so I think once you
select that it will give you further options to provide a lineup ID,
username and password.

The .m3u file you have above will not work - the URLs in the .m3u file
for MythTV need to be the direct URLs for the channel, not a further
.m3u format file.  So you need to download a copy of the master1.m3u8
file using wget:

wget --no-check-certificate
https://cbclivedai5-i.akamaihd.net/hls/live/567235/event2/CBOT/master1.m3u8

and then find the correct URL inside that file to use in the MythTV
.m3u file.  I presume one of the URLs will be for an HD stream, which
would be the best one to use if you have the bandwidth.

There are various ways to make MythTV prefer the IPTV channel over the
cable one.  You can make the IPTV tuner(s) have priority over the
normal tuners, either by using the priority field, or these days might
be better to use the livetvorder and schedorder fields in the
cardinput table - I forget the names used by mythtv-setup for them,
but they are fairly obvious.  And you can also on the channel settings
make the HD IPTV channel have a higher priority than the SD version.
Personally, what I have done is using a combination of priorities.  I
have one channel that is available in SD MPEG2 from FTA satellite, SD
H.264 from DVB-T, and HD MPEG2 from pay satellite.  So I have that
channel priority set to -5 for free satellite, 10 for SD DVB-T and 50
for pay satellite.  The DVB-S tuners (free satellite) are priority -4,
the DVB-T tuners are priority 4 and the IPTV tuners for pay satellite
are priority 2.  That is because there are quite a number of other
channels on DVB-T that are also on free satellite and pay satellite,
and except for that one channel, the best version is the DVB-T one, so
the DVB-T tuners have the highest priority.  But the priority numbers
the tuners have are small - so the big number on the HD pay satellite
channel (50) outweighs them and makes that one channel vastly prefer
the pay satellite source.


More information about the mythtv-users mailing list