Mailing List Archive

Ticket #13608: IPTV Streaming issues with AES-128 encryption
#13608: IPTV Streaming issues with AES-128 encryption
-----------------------------------------+--------------------------
Reporter: steven-ellis | Owner: (none)
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - HTTP Streaming | Version: v31-fixes
Severity: medium | Keywords:
Ticket locked: 0 |
-----------------------------------------+--------------------------
I've seen this issue with a number of streams including
- TVNZ 1 - https://d1irqd0o6b6kl5.cloudfront.net/master.m3u8
- TVNZ 2 - https://d3vsmj0a4dgta4.cloudfront.net/master.m3u8
- TV Three - https://livestreamdirect-three.mediaworks.nz/three.m3u8
- ABC Australia - https://i.mjh.nz/au/Brisbane/tv.101002410241.m3u8

Some of these streams are geo-restricted - but the ABC OZ stream might
work outside of OZ.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13608>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13608: IPTV Streaming issues with AES-128 encryption [ In reply to ]
#13608: IPTV Streaming issues with AES-128 encryption
-------------------------------------+------------------------------
Reporter: steven-ellis | Owner: (none)
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - HTTP Streaming | Version: v31-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by steven-ellis):

Some log output from the backend
{{{
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
recorders/streamhandler.cpp:41 (AddListener)
SH[48](https://d1irqd0o6b6kl5.cloudfront.net/master.m3u8(0)):
AddListener(0x7f1ec801a0b0) -- begin
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
recorders/streamhandler.cpp:53 (AddListener)
SH[48](https://d1irqd0o6b6kl5.cloudfront.net/master.m3u8(0)):
AddListener(0x7f1ec801a0b0) -- locked
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
recorders/streamhandler.cpp:75 (AddListener)
SH[48](https://d1irqd0o6b6kl5.cloudfront.net/master.m3u8(0)):
AddListener(0x7f1ec801a0b0) -- end
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
mpeg/mpegstreamdata.cpp:75 (SetDesiredProgram)
MPEGStream[48](0x7f1ec801a0b0): SetDesiredProgram(0)
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:1988 (SetupDTVSignalMonitor) TVRec[48]: Successfully set up
MPEG table monitoring.
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(SignalMonitorRunning,) ->
RunMainLoop,SignalMonitorRunning, @ tv_rec.cpp:3825
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4434 (ClearFlags) TVRec[48]: ClearFlags(WaitingForSignal,) ->
RunMainLoop,SignalMonitorRunning, @ tv_rec.cpp:3826
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(WaitingForSignal,) ->
RunMainLoop,WaitingForSignal,SignalMonitorRunning, @ tv_rec.cpp:3831
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(DummyRecorderRunning,) ->
RunMainLoop,WaitingForSignal,SignalMonitorRunning,DummyRecorderRunning, @
tv_rec.cpp:3880
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:3881 (TuningFrequency) DummyDTVRecorder -- started
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(RingBufferReady,) ->
RunMainLoop,WaitingForSignal,SignalMonitorRunning,DummyRecorderRunning,RingBufferReady,
@ tv_rec.cpp:3882
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4434 (ClearFlags) TVRec[48]: ClearFlags(NeedToStartRecorder,)
->
RunMainLoop,WaitingForSignal,SignalMonitorRunning,DummyRecorderRunning,RingBufferReady,
@ tv_rec.cpp:3892
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(NeedToStartRecorder,) ->
RunMainLoop,WaitingForSignal,NeedToStartRecorder,SignalMonitorRunning,DummyRecorderRunning,RingBufferReady,
@ tv_rec.cpp:3894
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4012 (TuningSignalCheck) TVRec[48]: TuningSignalCheck: Still
waiting. Will timeout @ 17:49:50.000
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I ProcessRequest
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(CancelNextRecording,) ->
RunMainLoop,CancelNextRecording,WaitingForSignal,NeedToStartRecorder,SignalMonitorRunning,DummyRecorderRunning,RingBufferReady,
@ tv_rec.cpp:2691
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:330 (ParseM3U8) HLSReader: Meta index file
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:340 (ParseM3U8) HLSReader: |#EXTM3U
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:340 (ParseM3U8) HLSReader: |#EXT-X-VERSION:3
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:340 (ParseM3U8) HLSReader: |#EXT-X
-INDEPENDENT-SEGMENTS
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:340 (ParseM3U8) HLSReader: |#EXT-X-STREAM-
INF:BANDWIDTH=582326,AVERAGE-BANDWIDTH=581245,RESOLUTION=480x270,FRAME-
RATE=25.000,CODECS="avc1.42C015,mp4a.40.2"
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:121 (ParseStreamInformation) Parsing stream from
https://d1irqd0o6b6kl5.cloudfront.net/master_15.m3u8
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:133 (ParseStreamInformation) #EXT-X-STREAM-INF: expected
PROGRAM-ID=<value>, using -1
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:159 (ParseStreamInformation) bandwidth adaptation detected
(program-id=-1, bandwidth=582326
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:368 (ParseM3U8) HLSReader: Adding stream -1
bitrate 582326
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:340 (ParseM3U8) HLSReader: |#EXT-X-STREAM-
INF:BANDWIDTH=934300,AVERAGE-BANDWIDTH=911210,RESOLUTION=640x360,FRAME-
RATE=25.000,CODECS="avc1.42C01E,mp4a.40.2"
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:121 (ParseStreamInformation) Parsing stream from
https://d1irqd0o6b6kl5.cloudfront.net/master_16.m3u8
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:133 (ParseStreamInformation) #EXT-X-STREAM-INF: expected
PROGRAM-ID=<value>, using -1
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:159 (ParseStreamInformation) bandwidth adaptation detected
(program-id=-1, bandwidth=934300
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:368 (ParseM3U8) HLSReader: Adding stream -1
bitrate 934300
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:340 (ParseM3U8) HLSReader: |#EXT-X-STREAM-
INF:BANDWIDTH=1403630,AVERAGE-BANDWIDTH=1351210,RESOLUTION=960x540,FRAME-
RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2"
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:121 (ParseStreamInformation) Parsing stream from
https://d1irqd0o6b6kl5.cloudfront.net/master_17.m3u8
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:133 (ParseStreamInformation) #EXT-X-STREAM-INF: expected
PROGRAM-ID=<value>, using -1
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:159 (ParseStreamInformation) bandwidth adaptation detected
(program-id=-1, bandwidth=1403630
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:368 (ParseM3U8) HLSReader: Adding stream -1
bitrate 1403630
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:340 (ParseM3U8) HLSReader: |#EXT-X-STREAM-
INF:BANDWIDTH=1872965,AVERAGE-BANDWIDTH=1791210,RESOLUTION=1024x576,FRAME-
RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2"
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:121 (ParseStreamInformation) Parsing stream from
https://d1irqd0o6b6kl5.cloudfront.net/master_18.m3u8
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:133 (ParseStreamInformation) #EXT-X-STREAM-INF: expected
PROGRAM-ID=<value>, using -1
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:159 (ParseStreamInformation) bandwidth adaptation detected
(program-id=-1, bandwidth=1872965
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:368 (ParseM3U8) HLSReader: Adding stream -1
bitrate 1872965
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:340 (ParseM3U8) HLSReader: |#EXT-X-STREAM-
INF:BANDWIDTH=2928996,AVERAGE-BANDWIDTH=2781245,RESOLUTION=1280x720,FRAME-
RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2"
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:121 (ParseStreamInformation) Parsing stream from
https://d1irqd0o6b6kl5.cloudfront.net/master_19.m3u8
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:133 (ParseStreamInformation) #EXT-X-STREAM-INF: expected
PROGRAM-ID=<value>, using -1
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
HLS/m3u.cpp:159 (ParseStreamInformation) bandwidth adaptation detected
(program-id=-1, bandwidth=2928996
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:368 (ParseM3U8) HLSReader: Adding stream -1
bitrate 2928996
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:124 (Open)
https://d1irqd0o6b6kl5.cloudfront.net/master_19.m3u8: Selected stream with
2928996 bitrate
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:134 (Open)
https://d1irqd0o6b6kl5.cloudfront.net/master_19.m3u8: Open -- end
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I thread_unknown
recorders/HLS/HLSPlaylistWorker.cpp:36 (run)
https://d1irqd0o6b6kl5.cloudfront.net/master_19.m3u8 playlist: run --
begin
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I thread_unknown
recorders/HLS/HLSStreamWorker.cpp:37 (run)
https://d1irqd0o6b6kl5.cloudfront.net/master_19.m3u8 worker: run -- begin
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/HLS/HLSReader.cpp:194 (Throttle)
https://d1irqd0o6b6kl5.cloudfront.net/master_19.m3u8: Throttle(true)
Apr 16 17:47:40 mythtv mythbackend: mythbackend[29760]: I ProcessRequest
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(FrontendReady,) ->
FrontendReady,RunMainLoop,CancelNextRecording,WaitingForSignal,NeedToStartRecorder,SignalMonitorRunning,DummyRecorderRunning,RingBufferReady,
@ ../../libs/libmythtv/tv_rec.h:165
Apr 16 17:47:41 mythtv mythbackend: mythbackend[29760]: I HLSPlaylist
HLS/m3u.cpp:329 (ParseKey)
https://d1irqd0o6b6kl5.cloudfront.net/master_19.m3u8playback of AES-128
encrypted HTTP Live media detected.
Apr 16 17:47:42 mythtv mythbackend: mythbackend[29760]: I HLSStream
recorders/HLS/HLSReader.cpp:853 (LoadSegments)
https://d1irqd0o6b6kl5.cloudfront.net/master_19.m3u8: Throttling --
sleeping 2 secs.
Apr 16 17:47:43 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/hlsstreamhandler.cpp:184 (run)
HLSSH[48](https://d1irqd0o6b6kl5.cloudfront.net/master.m3u8(0)): Packet
not starting with SYNC Byte (got 0x0K)
Apr 16 17:47:43 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/hlsstreamhandler.cpp:184 (run)
HLSSH[48](https://d1irqd0o6b6kl5.cloudfront.net/master.m3u8(0)): Packet
not starting with SYNC Byte (got 0x0<)
}}}

Playback stalls on "Packet not starting with SYNC Byte"

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13608#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13608: IPTV Streaming issues with AES-128 encryption [ In reply to ]
#13608: IPTV Streaming issues with AES-128 encryption
-------------------------------------+------------------------------
Reporter: steven-ellis | Owner: (none)
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - HTTP Streaming | Version: v31-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by steven-ellis):

For Three

First hop is three.m3u8
{{{
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-STREAM-INF:BANDWIDTH=2158932,AVERAGE-
BANDWIDTH=2305600,CODECS="avc1.77.30,mp4a.40.2",RESOLUTION=854x480,FRAME-
RATE=25.000
https://livestreamdirect-three.mediaworks.nz/three-2000.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1645600,AVERAGE-
BANDWIDTH=1755600,CODECS="avc1.77.30,mp4a.40.2",RESOLUTION=854x480,FRAME-
RATE=25.000
https://livestreamdirect-three.mediaworks.nz/three-1500.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=849932,AVERAGE-
BANDWIDTH=903100,CODECS="avc1.77.30,mp4a.40.2",RESOLUTION=640x360,FRAME-
RATE=25.000
https://livestreamdirect-three.mediaworks.nz/three-725.m3u8
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13608#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13608: IPTV Streaming issues with AES-128 encryption [ In reply to ]
#13608: IPTV Streaming issues with AES-128 encryption
-------------------------------------+------------------------------
Reporter: steven-ellis | Owner: (none)
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - HTTP Streaming | Version: v31-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by steven-ellis):

Second hop is three-2000.m3u8
{{{
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:346486
#EXT-X-DISCONTINUITY-SEQUENCE:1
#EXT-X-KEY:METHOD=AES-128,URI="https://livestreamdirect-
three.mediaworks.nz/K110346485-2000.key",IV=0x00000000000000000000000000054976
#EXTINF:10.80000,
https://livestreamdirect-three.mediaworks.nz/three-2000/00173/three-
2000_00486.ts
#EXT-X-KEY:METHOD=AES-128,URI="https://livestreamdirect-
three.mediaworks.nz/K110346485-2000.key",IV=0x00000000000000000000000000054977
#EXTINF:10.80000,
https://livestreamdirect-three.mediaworks.nz/three-2000/00173/three-
2000_00487.ts
#EXT-X-KEY:METHOD=AES-128,URI="https://livestreamdirect-
three.mediaworks.nz/K110346485-2000.key",IV=0x00000000000000000000000000054978
#EXTINF:10.80000,
https://livestreamdirect-three.mediaworks.nz/three-2000/00173/three-
2000_00488.ts
#EXT-X-KEY:METHOD=AES-128,URI="https://livestreamdirect-
three.mediaworks.nz/K110346488-2000.key",IV=0x00000000000000000000000000054979
#EXTINF:10.80000,
https://livestreamdirect-three.mediaworks.nz/three-2000/00173/three-
2000_00489.ts
#EXT-X-KEY:METHOD=AES-128,URI="https://livestreamdirect-
three.mediaworks.nz/K110346488-2000.key",IV=0x0000000000000000000000000005497A
#EXTINF:10.80000,
https://livestreamdirect-three.mediaworks.nz/three-2000/00173/three-
2000_00490.ts
#EXT-X-KEY:METHOD=AES-128,URI="https://livestreamdirect-
three.mediaworks.nz/K110346488-2000.key",IV=0x0000000000000000000000000005497B
#EXTINF:10.80000,
https://livestreamdirect-three.mediaworks.nz/three-2000/00173/three-
2000_00491.ts
#EXT-X-KEY:METHOD=AES-128,URI="https://livestreamdirect-
three.mediaworks.nz/K110346491-2000.key",IV=0x0000000000000000000000000005497C
#EXTINF:10.80000,
https://livestreamdirect-three.mediaworks.nz/three-2000/00173/three-
2000_00492.ts
#EXT-X-KEY:METHOD=AES-128,URI="https://livestreamdirect-
three.mediaworks.nz/K110346491-2000.key",IV=0x0000000000000000000000000005497D
#EXTINF:10.80000,
https://livestreamdirect-three.mediaworks.nz/three-2000/00173/three-
2000_00493.ts
#EXT-X-KEY:METHOD=AES-128,URI="https://livestreamdirect-
three.mediaworks.nz/K110346491-2000.key",IV=0x0000000000000000000000000005497E
#EXTINF:10.80000,
https://livestreamdirect-three.mediaworks.nz/three-2000/00173/three-
2000_00494.ts
#EXT-X-KEY:METHOD=AES-128,URI="https://livestreamdirect-
three.mediaworks.nz/K110346494-2000.key",IV=0x0000000000000000000000000005497F
#EXTINF:10.80000,
https://livestreamdirect-three.mediaworks.nz/three-2000/00173/three-
2000_00495.ts
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13608#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13608: IPTV Streaming issues with AES-128 encryption [ In reply to ]
#13608: IPTV Streaming issues with AES-128 encryption
-------------------------------------+------------------------------
Reporter: steven-ellis | Owner: (none)
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - HTTP Streaming | Version: v31-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by steven-ellis):

In the case of TV Three we're not seeing AES being picked up by MythTV
{{{
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
recorders/streamhandler.cpp:75 (AddListener) SH[48](https
://livestreamdirect-three.mediaworks.nz/three.m3u8):
AddListener(0x7f1ec8028f30) -- end
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
mpeg/mpegstreamdata.cpp:75 (SetDesiredProgram)
MPEGStream[48](0x7f1ec8028f30): SetDesiredProgram(0)
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:1988 (SetupDTVSignalMonitor) TVRec[48]: Successfully set up
MPEG table monitoring.
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(SignalMonitorRunning,) ->
RunMainLoop,SignalMonitorRunning,RingBufferReady, @ tv_rec.cpp:3825
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4434 (ClearFlags) TVRec[48]: ClearFlags(WaitingForSignal,) ->
RunMainLoop,SignalMonitorRunning,RingBufferReady, @ tv_rec.cpp:3826
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(WaitingForSignal,) ->
RunMainLoop,WaitingForSignal,SignalMonitorRunning,RingBufferReady, @
tv_rec.cpp:3831
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(DummyRecorderRunning,) ->
RunMainLoop,WaitingForSignal,SignalMonitorRunning,DummyRecorderRunning,RingBufferReady,
@ tv_rec.cpp:3880
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:3881 (TuningFrequency) DummyDTVRecorder -- started
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(RingBufferReady,) ->
RunMainLoop,WaitingForSignal,SignalMonitorRunning,DummyRecorderRunning,RingBufferReady,
@ tv_rec.cpp:3882
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4434 (ClearFlags) TVRec[48]: ClearFlags(NeedToStartRecorder,)
->
RunMainLoop,WaitingForSignal,SignalMonitorRunning,DummyRecorderRunning,RingBufferReady,
@ tv_rec.cpp:3892
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(NeedToStartRecorder,) ->
RunMainLoop,WaitingForSignal,NeedToStartRecorder,SignalMonitorRunning,DummyRecorderRunning,RingBufferReady,
@ tv_rec.cpp:3894
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I TVRecEvent
tv_rec.cpp:4012 (TuningSignalCheck) TVRec[48]: TuningSignalCheck: Still
waiting. Will timeout @ 18:59:50.000
Apr 16 18:30:24 mythtv mythbackend: mythbackend[29760]: I ProcessRequest
tv_rec.cpp:4425 (SetFlags) TVRec[48]: SetFlags(CancelNextRecording,) ->
RunMainLoop,CancelNextRecording,WaitingForSignal,NeedToStartRecorder,SignalMonitorRunning,DummyRecorderRunning,RingBufferReady,
@ tv_rec.cpp:2691
Apr 16 18:30:25 mythtv mythbackend: mythbackend[29760]: I StreamHandler
recorders/httptsstreamhandler.cpp:181 (DownloadStream) HTTPReader(https
://livestreamdirect-three.mediaworks.nz/three.m3u8): DownloadStream -- end
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13608#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13608: IPTV Streaming issues with AES-128 encryption [ In reply to ]
#13608: IPTV Streaming issues with AES-128 encryption
-------------------------------------+------------------------------
Reporter: steven-ellis | Owner: paul-h
Type: Bug Report - General | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - HTTP Streaming | Version: v31-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------
Changes (by Stuart Auchterlonie):

* owner: (none) => paul-h
* status: new => assigned


Comment:

Paul,

This is a follow up to #13488 and #13187.


Regards
Stuart

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13608#comment:5>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13608: IPTV Streaming issues with AES-128 encryption [ In reply to ]
#13608: IPTV Streaming issues with AES-128 encryption
-------------------------------------+------------------------------
Reporter: steven-ellis | Owner: paul-h
Type: Bug Report - General | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - HTTP Streaming | Version: v31-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by Paul Harrison <paul@…>):

In [changeset:"2b31dbf2ff30ea73b5865918719d14076c39f0cf/mythtv"
2b31dbf2ff/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="2b31dbf2ff30ea73b5865918719d14076c39f0cf"
HLSStreamHandler: fix the formatting of a debug statement

Refs #13608
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13608#comment:6>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13608: IPTV Streaming issues with AES-128 encryption [ In reply to ]
#13608: IPTV Streaming issues with AES-128 encryption
-------------------------------------+------------------------------
Reporter: steven-ellis | Owner: paul-h
Type: Bug Report - General | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - HTTP Streaming | Version: v31-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by Paul Harrison <paul@…>):

In [changeset:"8bfc909dc70e8e9f156e66f7346f63e3e13660d5/mythtv"
8bfc909dc7/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="8bfc909dc70e8e9f156e66f7346f63e3e13660d5"
HLSStreamHandler: fix the formatting of a debug statement

Refs #13608

(cherry picked from commit 2b31dbf2ff30ea73b5865918719d14076c39f0cf)
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13608#comment:7>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13608: IPTV Streaming issues with AES-128 encryption [ In reply to ]
#13608: IPTV Streaming issues with AES-128 encryption
-------------------------------------+------------------------------
Reporter: steven-ellis | Owner: paul-h
Type: Bug Report - General | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - HTTP Streaming | Version: v31-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by Paul Harrison <paul@…>):

In [changeset:"c6b20b072e2ac3e9e158e9eaba478d99d43163ad/mythtv"
c6b20b072e/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="c6b20b072e2ac3e9e158e9eaba478d99d43163ad"
HLSStreamHandler: fix the formatting of a debug statement

Refs #13608

(cherry picked from commit 2b31dbf2ff30ea73b5865918719d14076c39f0cf)
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13608#comment:8>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13608: IPTV Streaming issues with AES-128 encryption [ In reply to ]
#13608: IPTV Streaming issues with AES-128 encryption
-------------------------------------+------------------------------
Reporter: steven-ellis | Owner: paul-h
Type: Bug Report - General | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - HTTP Streaming | Version: v31-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by Paul Harrison <paul@…>):

In [changeset:"d3fb3759080eea017cb189d450fb367f830a601a/mythtv"
d3fb37590/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="d3fb3759080eea017cb189d450fb367f830a601a"
HLSRingBuffer: handle a redirection when downloading the m3u8
file

This fixes a problem where downloading of the m3u8 file is redirected to
another url and subsequent downloads where not using the new url as a base
url for further downloads. Refs #13608

(cherry picked from commit 372ca228d0977b319538111cd91cea1bdc05322e)
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13608#comment:9>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13608: IPTV Streaming issues with AES-128 encryption [ In reply to ]
#13608: IPTV Streaming issues with AES-128 encryption
-------------------------------------+------------------------------
Reporter: steven-ellis | Owner: paul-h
Type: Bug Report - General | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - HTTP Streaming | Version: v31-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------
Changes (by steven-ellis):

* Attachment "nz_tv3.logs" added.

backend logs trying to play TV 3 in NZ via IPTV

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13608>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13608: IPTV Streaming issues with AES-128 encryption [ In reply to ]
#13608: IPTV Streaming issues with AES-128 encryption
-------------------------------------+------------------------------
Reporter: steven-ellis | Owner: paul-h
Type: Bug Report - General | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - HTTP Streaming | Version: v31-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+------------------------------

Comment (by steven-ellis):

Paul - your fixed have resolved playback with some streams, but I've still
got issues with the official TVNZ and Mediaworks streams here in NZ.

Here are some logs when trying to play
- https://livestreamdirect-three.mediaworks.nz/three.m3u8

I've had to substitute <URL> for https://livestreamdirect-
three.mediaworks.nz in the uploaded log file due to Akismet

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13608#comment:10>
MythTV <http://www.mythtv.org>
MythTV Media Center