Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#EXT-X-IMAGE-STREAM-INF Not handled case #68

Open
adamMadoyan opened this issue May 15, 2024 · 3 comments
Open

#EXT-X-IMAGE-STREAM-INF Not handled case #68

adamMadoyan opened this issue May 15, 2024 · 3 comments

Comments

@adamMadoyan
Copy link

adamMadoyan commented May 15, 2024

Thanks for this great library, it's very useful!

I have an issue where I need to merge two playlist, During the parsing #EXT-X-IMAGE-STREAM-INF is not handled and after merging it is removed from primary playlist.m3u8.

Here is my case, I am using this for stick play

#EXT-X-IMAGE-STREAM-INF:BANDWIDTH=6619,CODECS="jpeg",RESOLUTION=240x116,URI="playlist_Thumbnail_I-Frame.m3u8"

@cbarbosa2
Copy link

I'm having the same issue, I get a PlaylistParserException: Tag not implemented: EXT-X-STREAM-INF

when parsing for example this file:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-STREAM-INF:BANDWIDTH=817298,AVERAGE-BANDWIDTH=320170,CODECS="avc1.640028,mp4a.40.2",RESOLUTION=1920x1080,FRAME-RATE=30.000,CLOSED-CAPTIONS=NONE
index1080p30.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=479776,AVERAGE-BANDWIDTH=232893,CODECS="avc1.64001f,mp4a.40.2",RESOLUTION=1280x720,FRAME-RATE=30.000,CLOSED-CAPTIONS=NONE
index720p30.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=286762,AVERAGE-BANDWIDTH=178335,CODECS="avc1.64001f,mp4a.40.2",RESOLUTION=854x480,FRAME-RATE=30.000,CLOSED-CAPTIONS=NONE
index480p30.m3u8

@carlanton
Copy link
Owner

Hello!

EXT-X-IMAGE-STREAM-INF is currently not supported. Pull requests are welcome :-) It's not part of the HLS RFC but it shouldn't be that hard to implement: https://github.com/image-media-playlist/spec/blob/master/image_media_playlist_v0_4.pdf

@cbarbosa2: EXT-X-STREAM-INF is supported but I'm guessing that you are using the wrong parser. See https://github.com/carlanton/m3u8-parser#parse-master-playlist for how to parse master playlists.

Cheers,
Anton

@cbarbosa2
Copy link

You're absolutely right @carlanton , I completely missed the existence of 2 parsers. Thanks a lot for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants