First off, this project is incredibe.
I have generated an HLS stream using MediaBunny and uploaded it to an S3 bucket successfully. Here's a link:
https://uploads.philjohnston.ca/019e6c60-00de-741b-99c2-9fd91ba27d73/b88656e4-5fda-4ceb-8a5e-ed257104739c-master.m3u8
This is the text inside the file:
#EXTM3U
--
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-1",NAME="Track1",LANGUAGE="und",AUTOSELECT=YES,CHANNELS="2",URI="playlist-1.m3u8"
#EXT-X-STREAM-INF:BANDWIDTH=5163444,AVERAGE-BANDWIDTH=4977892,CODECS="vp09.00.31.08,opus",RESOLUTION=608x1080,AUDIO="audio-1"
playlist-2.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1449666,AVERAGE-BANDWIDTH=1361420,CODECS="vp09.00.30.08,opus",RESOLUTION=406x720,AUDIO="audio-1"
playlist-3.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=621121,AVERAGE-BANDWIDTH=467856,CODECS="vp09.00.21.08,opus",RESOLUTION=270x480,AUDIO="audio-1"
playlist-4.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=362972,AVERAGE-BANDWIDTH=262451,CODECS="vp09.00.11.08,opus",RESOLUTION=204x360,AUDIO="audio-1"
playlist-5.m3u8
I am having an intermittent failure when reading it that fires this error:
|
throw new Error('Incorrect M3U8 file; a line must follow the #EXT-X-STREAM-INF tag.'); |
Incorrect M3U8 file; a line must follow the #EXT-X-STREAM-INF tag.'
I noticed that if I do a console.log inside readAllLines for text, it is getting cut off, like it's not reading the whole file.
Output of text inside readAllLines (notice it is getting cut off):
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-1",NAME="Track1",LANGUAGE="und",AUTOSELECT=YES,CHANNELS="2",URI="playlist-1.m3u8"
#EXT-X-STREAM-INF:BANDWIDTH=5163444,AVERAGE-BANDWIDTH=4977892,CODECS="vp09.00.31.08,opus",RESOLUTION=608x1080,AUDIO="audio-1"
playlist-2.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1449666,AVERAGE-BANDWIDTH=1361420,CODECS="vp09.00.30.08,opus",RESOLUTION=406x720,AUDIO="audio-1"
Oddly, after a few refreshes, it worked. So I'm not sure if there's a race condition somewhere or if this was just a weird intermittent issue for me on my end.
I figured I would share but if you cannot replicate, please feel free to close this issue.
Thanks for your incredible work!
First off, this project is incredibe.
I have generated an HLS stream using MediaBunny and uploaded it to an S3 bucket successfully. Here's a link:
https://uploads.philjohnston.ca/019e6c60-00de-741b-99c2-9fd91ba27d73/b88656e4-5fda-4ceb-8a5e-ed257104739c-master.m3u8
This is the text inside the file:
I am having an intermittent failure when reading it that fires this error:
mediabunny/src/hls/hls-demuxer.ts
Line 107 in eb8b5e2
I noticed that if I do a console.log inside
readAllLinesfortext, it is getting cut off, like it's not reading the whole file.Output of
textinsidereadAllLines(notice it is getting cut off):Oddly, after a few refreshes, it worked. So I'm not sure if there's a race condition somewhere or if this was just a weird intermittent issue for me on my end.
I figured I would share but if you cannot replicate, please feel free to close this issue.
Thanks for your incredible work!