Most of our local TV stations now have HLS compatible live streams and
Matt Huisman has aggregated them into some simple Kodi and TV Headend
compatible playlists
https://www.matthuisman.nz/2017/07/australia-iptv-epg-files.html
I've tweaked one of these to be MythTV compatible as follows
#EXTM3U
#EXTINF:-1,401 - TVNZ 1
#EXTMYTHTV:xmltvid=tv.9
http://iptv.matthuisman.nz/nz/tv.9.m3u8
#EXTINF:-1,402 - TVNZ 2
#EXTMYTHTV:xmltvid=tv.10
http://iptv.matthuisman.nz/nz/tv.10.m3u8
#EXTINF:-1,403 - Three
#EXTMYTHTV:xmltvid=tv.11
http://iptv.matthuisman.nz/nz/tv.11.m3u8
#EXTINF:-1,411 - The Edge TV
#EXTMYTHTV:xmltvid=tv.51
http://iptv.matthuisman.nz/nz/tv.51.m3u8
#EXTINF:-1,413 - DUKE
#EXTMYTHTV:xmltvid=tv.51
http://iptv.matthuisman.nz/nz/tv.55.m3u8
This imports correctly but the channels time out during tuning. Mat has a
server providing 302 re-directs against the above URLs so that they point
to the correct TV streams.
Looking in the MythTV logs I can see the attempts to stream with
ultimately time out.
Dec 3 18:08:43 mythtv mythbackend: mythbackend[17649]: I TVRecEvent
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/tv.55.m3u8 -> https://tvnzioslive01
-i.akamaihd.net/hls/live/245926/tvnzhlsingest/duke/masterR_5.m3u8
Dec 3 18:08:44 mythtv mythbackend: mythbackend[17649]: I TVRecEvent
channelutil.cpp:2001 (GetIPTVTuningData) Loaded
[data]http://iptv.matthuisman.nz/nz/tv.55.m3u8[fectype][f
ec0][fec1] for 9413
Dec 3 18:08:44 mythtv mythbackend: mythbackend[17649]: I StreamHandler
recorders/hlsstreamhandler.cpp:125 (run)
HLSSH(http://iptv.matthuisman.nz/nz/tv.55.m3u8(0)): run() --
begin
Dec 3 18:08:44 mythtv mythbackend: mythbackend[17649]: N CoreContext
autoexpire.cpp:251 (CalcParams) AutoExpire: CalcParams(): Max required
Free Space: 7.0 GB w/freq: 14 min
Dec 3 18:08:44 mythtv mythbackend: mythbackend[17649]: W TVRecEvent
programinfo.cpp:5669 (LoadFromProgram) LoadFromProgram(): SQL contains
LIMIT clause, caller should be updated to use limit parameter instead
Dec 3 18:08:44 mythtv mythbackend: mythbackend[17649]: N TVRecEvent
recordinginfo.cpp:694 (ApplyRecordRecGroupChange)
ApplyRecordRecGroupChange: LiveTV to LiveTV (2)
Dec 3 18:09:11 mythtv mythbackend: mythbackend[17649]: I HLSStream
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/20171121T111356/masterR_5/00058/masterR_5_02932.ts
->
https://cdn.rawgit.com/matthuisman/iptv/e17d4e5fb7a3b8b81a2a05bdaf00e44d19ddf252/nz/20171121T111356/masterR_5/00058/masterR_5_02932.ts
Dec 3 18:09:14 mythtv mythbackend: mythbackend[17649]: W TVRecEvent
tv_rec.cpp:4036 (TuningSignalCheck) TVRec[48]: TuningSignalCheck: taking
more than 30000 ms to get a lock. marking this recording as 'Failing'.
Dec 3 18:09:14 mythtv mythbackend: mythbackend[17649]: W TVRecEvent
tv_rec.cpp:4038 (TuningSignalCheck) TVRec[48]: See 'Tuning timeout' in
mythtv-setup for this input
Dec 3 18:09:14 mythtv mythbackend: mythbackend[17649]: I HLSPlaylist
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/tv.55.m3u8 ->
https://tvnzioslive01-i.akamaihd.net/hls/live/245926/tvnzhlsingest/duke/masterR_5.m3u8
Dec 3 18:09:15 mythtv mythbackend: mythbackend[17649]: I HLSStream
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
->
https://cdn.rawgit.com/matthuisman/iptv/e17d4e5fb7a3b8b81a2a05bdaf00e44d19ddf252/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
Dec 3 18:09:17 mythtv mythbackend: mythbackend[17649]: I TVRecEvent
tv_rec.cpp:1088 (HandleStateChange) TVRec[48]: Changing from
WatchingLiveTV to None
Dec 3 18:09:17 mythtv mythbackend: mythbackend[17649]: E TVRecEvent
tv_rec.cpp:1801 (GetStartChannel) TVRec[0]: Problem finding starting
channel, setting to default of '3'.
Dec 3 18:09:17 mythtv mythbackend: mythbackend[17649]: I HLSPlaylist
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/tv.55.m3u8 ->
https://tvnzioslive01-i.akamaihd.net/hls/live/245926/tvnzhlsingest/duke/masterR_5.m3u8
Dec 3 18:09:18 mythtv mythbackend: mythbackend[17649]: I HLSStream
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
->
https://cdn.rawgit.com/matthuisman/iptv/e17d4e5fb7a3b8b81a2a05bdaf00e44d19ddf252/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
Dec 3 18:09:18 mythtv mythbackend: mythbackend[17649]: I thread_unknown
recorders/hlsstreamhandler.cpp:226 (run)
HLSSH(http://iptv.matthuisman.nz/nz/tv.55.m3u8(0)): run() -- done
Dec 3 18:09:18 mythtv mythbackend: mythbackend[17649]: I TVRecEvent
mythsingledownload.cpp:110 (Cancel) MythSingleDownload: Aborting download
....
Dec 3 18:09:11 mythtv mythbackend: mythbackend[17649]: I HLSStream
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/20171121T111356/masterR_5/00058/masterR_5_02932.ts
->
https://cdn.rawgit.com/matthuisman/iptv/e17d4e5fb7a3b8b81a2a05bdaf00e44d19ddf252/nz/20171121T111356/masterR_5/00058/masterR_5_02932.ts
Dec 3 18:09:14 mythtv mythbackend: mythbackend[17649]: W TVRecEvent
tv_rec.cpp:4036 (TuningSignalCheck) TVRec[48]: TuningSignalCheck: taking
more than 30000 ms to get a lock. marking this recording as 'Failing'.
Dec 3 18:09:14 mythtv mythbackend: mythbackend[17649]: W TVRecEvent
tv_rec.cpp:4038 (TuningSignalCheck) TVRec[48]: See 'Tuning timeout' in
mythtv-setup for this input
Dec 3 18:09:14 mythtv mythbackend: mythbackend[17649]: I HLSPlaylist
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/tv.55.m3u8 ->
https://tvnzioslive01-i.akamaihd.net/hls/live/245926/tvnzhlsingest/duke/masterR_5.m3u8
Dec 3 18:09:15 mythtv mythbackend: mythbackend[17649]: I HLSStream
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
->
https://cdn.rawgit.com/matthuisman/iptv/e17d4e5fb7a3b8b81a2a05bdaf00e44d19ddf252/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
Dec 3 18:09:17 mythtv mythbackend: mythbackend[17649]: I TVRecEvent
tv_rec.cpp:1088 (HandleStateChange) TVRec[48]: Changing from
WatchingLiveTV to None
Dec 3 18:09:17 mythtv mythbackend: mythbackend[17649]: E TVRecEvent
tv_rec.cpp:1801 (GetStartChannel) TVRec[0]: Problem finding starting
channel, setting to default of '3'.
Dec 3 18:09:17 mythtv mythbackend: mythbackend[17649]: I HLSPlaylist
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/tv.55.m3u8 ->
https://tvnzioslive01-i.akamaihd.net/hls/live/245926/tvnzhlsingest/duke/masterR_5.m3u8
Dec 3 18:09:18 mythtv mythbackend: mythbackend[17649]: I HLSStream
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
->
https://cdn.rawgit.com/matthuisman/iptv/e17d4e5fb7a3b8b81a2a05bdaf00e44d19ddf252/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
Dec 3 18:09:18 mythtv mythbackend: mythbackend[17649]: I thread_unknown
recorders/hlsstreamhandler.cpp:226 (run)
HLSSH(http://iptv.matthuisman.nz/nz/tv.55.m3u8(0)): run() -- done
Dec 3 18:09:18 mythtv mythbackend: mythbackend[17649]: I TVRecEvent
mythsingledownload.cpp:110 (Cancel) MythSingleDownload: Aborting download
It appears that instead of following to the re-directed URL for the
subsequent chunks its is reverting back to the original M3u8 hostname.
Is there a way I can fix this via my m3u8 file to force it to follow the
re-direct or is this an actual Bug?
Steve
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Matt Huisman has aggregated them into some simple Kodi and TV Headend
compatible playlists
https://www.matthuisman.nz/2017/07/australia-iptv-epg-files.html
I've tweaked one of these to be MythTV compatible as follows
#EXTM3U
#EXTINF:-1,401 - TVNZ 1
#EXTMYTHTV:xmltvid=tv.9
http://iptv.matthuisman.nz/nz/tv.9.m3u8
#EXTINF:-1,402 - TVNZ 2
#EXTMYTHTV:xmltvid=tv.10
http://iptv.matthuisman.nz/nz/tv.10.m3u8
#EXTINF:-1,403 - Three
#EXTMYTHTV:xmltvid=tv.11
http://iptv.matthuisman.nz/nz/tv.11.m3u8
#EXTINF:-1,411 - The Edge TV
#EXTMYTHTV:xmltvid=tv.51
http://iptv.matthuisman.nz/nz/tv.51.m3u8
#EXTINF:-1,413 - DUKE
#EXTMYTHTV:xmltvid=tv.51
http://iptv.matthuisman.nz/nz/tv.55.m3u8
This imports correctly but the channels time out during tuning. Mat has a
server providing 302 re-directs against the above URLs so that they point
to the correct TV streams.
Looking in the MythTV logs I can see the attempts to stream with
ultimately time out.
Dec 3 18:08:43 mythtv mythbackend: mythbackend[17649]: I TVRecEvent
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/tv.55.m3u8 -> https://tvnzioslive01
-i.akamaihd.net/hls/live/245926/tvnzhlsingest/duke/masterR_5.m3u8
Dec 3 18:08:44 mythtv mythbackend: mythbackend[17649]: I TVRecEvent
channelutil.cpp:2001 (GetIPTVTuningData) Loaded
[data]http://iptv.matthuisman.nz/nz/tv.55.m3u8[fectype][f
ec0][fec1] for 9413
Dec 3 18:08:44 mythtv mythbackend: mythbackend[17649]: I StreamHandler
recorders/hlsstreamhandler.cpp:125 (run)
HLSSH(http://iptv.matthuisman.nz/nz/tv.55.m3u8(0)): run() --
begin
Dec 3 18:08:44 mythtv mythbackend: mythbackend[17649]: N CoreContext
autoexpire.cpp:251 (CalcParams) AutoExpire: CalcParams(): Max required
Free Space: 7.0 GB w/freq: 14 min
Dec 3 18:08:44 mythtv mythbackend: mythbackend[17649]: W TVRecEvent
programinfo.cpp:5669 (LoadFromProgram) LoadFromProgram(): SQL contains
LIMIT clause, caller should be updated to use limit parameter instead
Dec 3 18:08:44 mythtv mythbackend: mythbackend[17649]: N TVRecEvent
recordinginfo.cpp:694 (ApplyRecordRecGroupChange)
ApplyRecordRecGroupChange: LiveTV to LiveTV (2)
Dec 3 18:09:11 mythtv mythbackend: mythbackend[17649]: I HLSStream
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/20171121T111356/masterR_5/00058/masterR_5_02932.ts
->
https://cdn.rawgit.com/matthuisman/iptv/e17d4e5fb7a3b8b81a2a05bdaf00e44d19ddf252/nz/20171121T111356/masterR_5/00058/masterR_5_02932.ts
Dec 3 18:09:14 mythtv mythbackend: mythbackend[17649]: W TVRecEvent
tv_rec.cpp:4036 (TuningSignalCheck) TVRec[48]: TuningSignalCheck: taking
more than 30000 ms to get a lock. marking this recording as 'Failing'.
Dec 3 18:09:14 mythtv mythbackend: mythbackend[17649]: W TVRecEvent
tv_rec.cpp:4038 (TuningSignalCheck) TVRec[48]: See 'Tuning timeout' in
mythtv-setup for this input
Dec 3 18:09:14 mythtv mythbackend: mythbackend[17649]: I HLSPlaylist
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/tv.55.m3u8 ->
https://tvnzioslive01-i.akamaihd.net/hls/live/245926/tvnzhlsingest/duke/masterR_5.m3u8
Dec 3 18:09:15 mythtv mythbackend: mythbackend[17649]: I HLSStream
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
->
https://cdn.rawgit.com/matthuisman/iptv/e17d4e5fb7a3b8b81a2a05bdaf00e44d19ddf252/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
Dec 3 18:09:17 mythtv mythbackend: mythbackend[17649]: I TVRecEvent
tv_rec.cpp:1088 (HandleStateChange) TVRec[48]: Changing from
WatchingLiveTV to None
Dec 3 18:09:17 mythtv mythbackend: mythbackend[17649]: E TVRecEvent
tv_rec.cpp:1801 (GetStartChannel) TVRec[0]: Problem finding starting
channel, setting to default of '3'.
Dec 3 18:09:17 mythtv mythbackend: mythbackend[17649]: I HLSPlaylist
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/tv.55.m3u8 ->
https://tvnzioslive01-i.akamaihd.net/hls/live/245926/tvnzhlsingest/duke/masterR_5.m3u8
Dec 3 18:09:18 mythtv mythbackend: mythbackend[17649]: I HLSStream
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
->
https://cdn.rawgit.com/matthuisman/iptv/e17d4e5fb7a3b8b81a2a05bdaf00e44d19ddf252/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
Dec 3 18:09:18 mythtv mythbackend: mythbackend[17649]: I thread_unknown
recorders/hlsstreamhandler.cpp:226 (run)
HLSSH(http://iptv.matthuisman.nz/nz/tv.55.m3u8(0)): run() -- done
Dec 3 18:09:18 mythtv mythbackend: mythbackend[17649]: I TVRecEvent
mythsingledownload.cpp:110 (Cancel) MythSingleDownload: Aborting download
....
Dec 3 18:09:11 mythtv mythbackend: mythbackend[17649]: I HLSStream
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/20171121T111356/masterR_5/00058/masterR_5_02932.ts
->
https://cdn.rawgit.com/matthuisman/iptv/e17d4e5fb7a3b8b81a2a05bdaf00e44d19ddf252/nz/20171121T111356/masterR_5/00058/masterR_5_02932.ts
Dec 3 18:09:14 mythtv mythbackend: mythbackend[17649]: W TVRecEvent
tv_rec.cpp:4036 (TuningSignalCheck) TVRec[48]: TuningSignalCheck: taking
more than 30000 ms to get a lock. marking this recording as 'Failing'.
Dec 3 18:09:14 mythtv mythbackend: mythbackend[17649]: W TVRecEvent
tv_rec.cpp:4038 (TuningSignalCheck) TVRec[48]: See 'Tuning timeout' in
mythtv-setup for this input
Dec 3 18:09:14 mythtv mythbackend: mythbackend[17649]: I HLSPlaylist
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/tv.55.m3u8 ->
https://tvnzioslive01-i.akamaihd.net/hls/live/245926/tvnzhlsingest/duke/masterR_5.m3u8
Dec 3 18:09:15 mythtv mythbackend: mythbackend[17649]: I HLSStream
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
->
https://cdn.rawgit.com/matthuisman/iptv/e17d4e5fb7a3b8b81a2a05bdaf00e44d19ddf252/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
Dec 3 18:09:17 mythtv mythbackend: mythbackend[17649]: I TVRecEvent
tv_rec.cpp:1088 (HandleStateChange) TVRec[48]: Changing from
WatchingLiveTV to None
Dec 3 18:09:17 mythtv mythbackend: mythbackend[17649]: E TVRecEvent
tv_rec.cpp:1801 (GetStartChannel) TVRec[0]: Problem finding starting
channel, setting to default of '3'.
Dec 3 18:09:17 mythtv mythbackend: mythbackend[17649]: I HLSPlaylist
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/tv.55.m3u8 ->
https://tvnzioslive01-i.akamaihd.net/hls/live/245926/tvnzhlsingest/duke/masterR_5.m3u8
Dec 3 18:09:18 mythtv mythbackend: mythbackend[17649]: I HLSStream
mythsingledownload.cpp:75 (DownloadURL)
http://iptv.matthuisman.nz/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
->
https://cdn.rawgit.com/matthuisman/iptv/e17d4e5fb7a3b8b81a2a05bdaf00e44d19ddf252/nz/20171121T111356/masterR_5/00058/masterR_5_02933.ts
Dec 3 18:09:18 mythtv mythbackend: mythbackend[17649]: I thread_unknown
recorders/hlsstreamhandler.cpp:226 (run)
HLSSH(http://iptv.matthuisman.nz/nz/tv.55.m3u8(0)): run() -- done
Dec 3 18:09:18 mythtv mythbackend: mythbackend[17649]: I TVRecEvent
mythsingledownload.cpp:110 (Cancel) MythSingleDownload: Aborting download
It appears that instead of following to the re-directed URL for the
subsequent chunks its is reverting back to the original M3u8 hostname.
Is there a way I can fix this via my m3u8 file to force it to follow the
re-direct or is this an actual Bug?
Steve
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org