Skip to content

Conversation

@varsill
Copy link
Collaborator

@varsill varsill commented Oct 8, 2025

…aylists and segments. Fallback to MPEG-TS demuxer

Comment on lines +57 to +68
_other ->
Logger.warning("""
Unsupported segment URI extension: #{segment_uri |> inspect()}
Falling back to recognizing segment as MPEG-TS container file.
You can force recognizing segment as CMAF container file
by providing `segment_format: :cmaf` to `ExHLS.Client/2`.
""")
end
end

def resolve_demuxing_engine_impl(_segment_uri, :ts), do: DemuxingEngine.MPEGTS
def resolve_demuxing_engine_impl(_segment_uri, :cmaf), do: DemuxingEngine.CMAF
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to our discussion, let's use the value from the option only if segment doesn't have extension, instead of letting the option override segment extension containter

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to our discussion, we can move it to another PR 😉

@varsill varsill self-assigned this Oct 16, 2025
@varsill varsill added this to Smackore Oct 16, 2025
@varsill varsill moved this to In Review in Smackore Oct 16, 2025
@varsill varsill merged commit b59a4ea into handle-weird-segment-extensions Oct 22, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Smackore Oct 22, 2025
varsill added a commit that referenced this pull request Oct 22, 2025
#11) (#15)

* Bump ex_m3u8 to v0.15.4. Properly handle absolute URIs for variant playlists and segments. Fallback to MPEG-TS demuxer

* Add segment_format option to the client to override segments demuxer resolving

* Improve warning message

* Pass segment_format to reader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants