globocom / m3u8

Python m3u8 Parser for HTTP Live Streaming (HLS) Transmissions
Other
1.98k stars 464 forks source link

Fails to parse manifests with Elemental-style CUE-OUT-CONT tags #349

Closed nandhp closed 3 months ago

nandhp commented 7 months ago

Parsing of an m3u8 containing Elemental-format CUE-OUT-CONT tags (as documented at https://docs.aws.amazon.com/medialive/latest/ug/sample-manifests-hls.html) fails with an exception raised in _parse_cueout_cont. _parse_cueout_cont assumes the line contains an attribute list but, unlike the SCTE-35 enhanced format, Elemental-format CUE-OUT-CONT tags simply contain the elapsed time and duration separated by /.

#EXT-X-CUE-OUT:30.000 
.
.
.
# EXT-X-CUE-OUT-CONT: 8.308/30 
.
.
.
# EXT-X-CUE-OUT-CONT: 20.391/30
.
.
.
# EXT-X-CUE-IN 
bbayles commented 6 months ago

This is fixed in https://github.com/globocom/m3u8/pull/340 , so I hope we can get that merged!

DeForestt commented 6 months ago

I just ran into this issue as well. Do you know how quickly these PRs tend to get reviewed in this repo?

bbayles commented 6 months ago

@mauricioabreu, are you open to the change in #340 now that version 4.0.0 is out?

DeForestt commented 3 months ago

Any updates on merging the PR for this issue?

mauricioabreu commented 3 months ago

@DeForestt @bbayles merged. Gonna release a new version ASAP

mauricioabreu commented 3 months ago

Released