bpa wrote: 
> They are doing something special - I see "OPTIONS" request being used -
> not usual.
> 
> Normally for "awkward" streams, I advise to use PlayHLS V1  which uses
> ffmpeg but even ffmpeg cannot play these streams and ffmpeg is the
> engine within vlc.
> 
> 
> that is the problem. It is a real pain to test and there is no guarantee
> for exact same.
> 
> To update PlayHLS V2 to play these stream - need to determine what is
> missing from mainstream player like ffmpeg, add it and then add video
> support which is not going to be used just discarded !! a lot of effort
> - not a quick fix - so it will not happen soon.  Only when time allows.


ok, i found a problem in the hls2 code:

m3u8 eample copied from debug log:


Code:
--------------------
              '#EXTM3U',
  '#EXT-X-VERSION:7',
  '#EXT-X-TARGETDURATION:2',
  '#EXT-X-MEDIA-SEQUENCE:1615849310782700',
  '#EXT-X-MAP:URI="init-1615849310551.mp4"',
  '#EXTINF:2.000000,',
  '#EXT-X-PROGRAM-DATE-TIME:2021-03-16T00:12:36.000+0000',
  'index-720p1615849310782700.m4s',
  '#EXTINF:2.000000,',
  '#EXT-X-PROGRAM-DATE-TIME:2021-03-16T00:12:38.000+0000',
  'index-720p1615849310782701.m4s',
--------------------

snip

list of resulting chunk files


Code:
--------------------
              'endlist' => 0,
  'independent_segments' => 0,
  'duration' => '40',
  'chunks' => [
  {
  'chunknum' => '1615849310782700',
  'len' => '2.000000',
  'url' => 
'https://cdn-fastly-live-euw1-eks.mixcloud.com/hls/192E168A11D75/1616022110/-2AKuKjh5mGc2mDh_AF0Jw/637aefff-cd3c-4c85-b8a4-5630704894a1/index-720p.m3u8#EXT-X-PROGRAM-DATE-TIME:2021-03-16T00:12:36.000+0000'
  },
  {
  'chunknum' => '1615849310782701',
  'url' => 
'https://cdn-fastly-live-euw1-eks.mixcloud.com/hls/192E168A11D75/1616022110/-2AKuKjh5mGc2mDh_AF0Jw/637aefff-cd3c-4c85-b8a4-5630704894a1/index-720p.m3u8#EXT-X-PROGRAM-DATE-TIME:2021-03-16T00:12:38.000+0000',
  'len' => '2.000000'
  },
  {
  'chunknum' => '1615849310782702',
  'len' => '2.000000',
  'url' => 
'https://cdn-fastly-live-euw1-eks.mixcloud.com/hls/192E168A11D75/1616022110/-2AKuKjh5mGc2mDh_AF0Jw/637aefff-cd3c-4c85-b8a4-5630704894a1/index-720p.m3u8#EXT-X-PROGRAM-DATE-TIME:2021-03-16T00:12:40.000+0000'
  },
  {
--------------------


the url of the chunks isnt correct calculated.
the code in ScanHLS.pm after line 187 assumes that the line after
#EXTINF is the url.
to correct this, you can ignore any lines start with "#" after #EXTINF
till a line that starts without a #

the url should something like this

'url' =>
'https://cdn-fastly-live-euw1-eks.mixcloud.com/hls/192E168A11D75/1616022110/-2AKuKjh5mGc2mDh_AF0Jw/637aefff-cd3c-4c85-b8a4-5630704894a1/index-720p1615849310782700.m4s'

and not

'url' =>
'https://cdn-fastly-live-euw1-eks.mixcloud.com/hls/192E168A11D75/1616022110/-2AKuKjh5mGc2mDh_AF0Jw/637aefff-cd3c-4c85-b8a4-5630704894a1/index-720p.m3u8#EXT-X-PROGRAM-DATE-TIME:2021-03-16T00:12:36.000+0000'


------------------------------------------------------------------------
olivaar's Profile: http://forums.slimdevices.com/member.php?userid=64848
View this thread: http://forums.slimdevices.com/showthread.php?t=103158

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to