-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Allow reading Multichannel Opus streams with WebRTC #3371
Comments
Hi @aler9 Thank you so much for your amazing work and findings. I'm testing new behave My origin file is from Surround sound test files in (almost) every format I run this command tu publish srt (setting b-frames to 0 and transcode to opus)
Receiver
MtxServer logs
No audio
Audio works with srt recewiver MediaMtx WebRtc Audio works, but sound is demaged (even thought you can hear unclean some words and signals)
|
Hello @ditogam, for your tests did you use the latest release (v1.8.2) or a nightly binary that includes #3375? Anyway, streaming multichannel Opus with WebRTC is still a work-in-progress and #3375 is yet to be fully tested and merged, in particular, the error you reported
is not covered by the patch yet and is due to an excessive size of the audio packets. I'll see what i can do about it before merging the patch. |
hello @ditogam, i found a bug in parsing timestamps of Opus packets coming from SRT and i fixed it (#3388). This should fix the intermittent audio issue on Chrome. Regarding the "frame is too big issue", from my tests it happens when bitrate is very high. High bitrate Opus tracks can be streamed with SRT indeed, but they cannot be streamed with WebRTC or RTSP since the specification tells that "An RTP payload MUST contain exactly one Opus packet as defined by that document.", therefore the maximum Opus packet size must be lower than the maximum RTP packet size (which is the UDP MTU). Fortunately the issue only happens with unreasonably high bitrates (higher than 512k), therefore it should be enough to set an explicit and reasonable bitrate when performing the encoding:
Please test the latest |
This is fantastic news, thank you so much. I tested, everything works perfectly. I run server from this branch and I can hear all the channels |
Even 7.1 works perfectly |
I tested locally and it worked perfectly on 5.1 and 7.1 (Downloaded from same source Publish command output
srt reciever
output
works. Then I downloaded dolby-demo-trailers-hd output
So it seams working |
This issue is mentioned in release v1.8.3 🚀 |
Describe the feature
Follows #3355
The text was updated successfully, but these errors were encountered: