bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
10.71k stars 1.4k forks source link

Opus channel count is wrongly set in MPEG-TS and fMP4 based protocols #3355

Closed aler9 closed 1 month ago

aler9 commented 1 month ago

Which version are you using?

v1.8.1

Which operating system are you using?

Describe the issue

Discussed in #3353

Opus streams with a channel count > 3 cannot be streamed correctly, since the channel count is always set to either 1 or 2 due to a RTSP limitation.

Describe how to replicate the issue

N/A

Did you attach the server logs?

no

Did you attach a network dump?

no

aler9 commented 1 month ago

additional infos: multichannel Opus streams can be streamed with RTSP (and probably Chrome WebRTC) through a custom RTP format created by Google and documented here:

https://webrtc-review.googlesource.com/c/src/+/129768 https://gstreamer.freedesktop.org/documentation/rtp/rtpopuspay.html?gi-language=c https://issues.webrtc.org/issues/42233792

aler9 commented 1 month ago

TODO

aler9 commented 1 month ago

WebRTC issue moved in #3371

github-actions[bot] commented 1 month ago

This issue is mentioned in release v1.8.2 🚀 Check out the entire changelog by clicking here