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

unsupported track type: *mpegts.Track #4123

Open
ingalls opened this issue Jan 8, 2025 · 2 comments
Open

unsupported track type: *mpegts.Track #4123

ingalls opened this issue Jan 8, 2025 · 2 comments
Labels
bug Something isn't working hls

Comments

@ingalls
Copy link

ingalls commented Jan 8, 2025

Which version are you using?

v1.11.0

Which operating system are you using?

Linux amd64 standard

Describe how to replicate the issue

  1. start the server with the following path:
paths:
  test:
    source: "https://publicstreamer2.cotrip.org:443/rtplive/070E11870CAM1RP1/playlist.m3u8"


2. Ensure the upstream source is workign

ffplay 'https://publicstreamer2.cotrip.org:443/rtplive/070E11870CAM1RP1/playlist.m3u8

3. Attempt to stream via MediaMTX Proxy

ffplay 'http://localhost:8888/test/index.m3u8'

Server logs

2025/01/08 16:35:59 INF MediaMTX v1.11.0
2025/01/08 16:35:59 INF configuration loaded from /home/state/Downloads/mediamtx.yml.bk
2025/01/08 16:35:59 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
2025/01/08 16:35:59 INF [path test] [HLS source] started
2025/01/08 16:35:59 INF [RTMP] listener opened on :1935
2025/01/08 16:35:59 INF [HLS] listener opened on :8888
2025/01/08 16:35:59 INF [WebRTC] listener opened on :8889 (HTTP), :8189 (ICE/UDP)
2025/01/08 16:35:59 INF [SRT] listener opened on :8890 (UDP)
2025/01/08 16:35:59 ERR [path test] [HLS source] unsupported track type: *mpegts.Track
2025/01/08 16:36:04 ERR [path test] [HLS source] unsupported track type: *mpegts.Track

Network dump

No response

@ingalls
Copy link
Author

ingalls commented Jan 9, 2025

It appears as though this section of the GO HLS Library is the root cause:

https://github.com/bluenviron/gohlslib/blob/e9dce86b68717db4435855adaa2332569632e3ab/client_stream_processor_mpegts.go#L153-L15

Not being super familiar with the architecture of the library, is it possible to pass through valid tracks and ignore invalid ones? Based on my read of the above code a single track that ideally would be ignored will cause the HLS reader to fail.

@ingalls
Copy link
Author

ingalls commented Jan 10, 2025

This will be closed if/when bluenviron/gohlslib#211 is accepted and merged

aler9 added a commit to bluenviron/gohlslib that referenced this issue Jan 10, 2025
@aler9 aler9 added bug Something isn't working hls labels Jan 10, 2025
aler9 added a commit to bluenviron/gohlslib that referenced this issue Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hls
Projects
None yet
Development

No branches or pull requests

2 participants