-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
WebRTC Playback: Sound only mono #2043
Comments
aler9
added a commit
that referenced
this issue
Oct 6, 2023
aler9
added a commit
that referenced
this issue
Oct 6, 2023
Hello, thanks for reporting the issue, this is fixed with #2470. |
aler9
added a commit
that referenced
this issue
Oct 6, 2023
added in v1.2.0 |
This issue is being locked automatically because it has been closed for more than 6 months. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Which version are you using?
v0.23.7
Which operating system are you using?
Describe the issue
When playing a WebRTC stream, the audio is only played in mono, even it shows 2 channels in webrtc internals (Chrome Linux latest version). On Firefox it works normally in Stereo. Chrome defaults to Mono playback. This is a 3 year old issue on Chrome. So if client is Chrome or Chromium, the SDP answer has to be ignered and forced to stereo=1 on WHEP side.
Describe how to replicate the issue
Ingest WebRTC Stream in Stereo via WHIP or WebRTC
Listen on another client or the same one on a different audio device. Switch fader from left side to right side. Hear the same on both channels. I made some audio examples, that show the problem.
Audio Test.zip
Did you attach the server logs?
on WHIP side:
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 cbr=1;maxaveragebitrate=131072;minptime=10;sprop-stereo=1;stereo=1;useinbandfec=1
on WHEP side:
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1 <<< This has to be ignored and player side has to add stereo=1 (or better the same values as provided on WHIP side).
No chance to set the custom parameters stereo=1 or sprop-stereo=1 on client side, because chrome defaults to Mono playback.
yes
Did you attach a network dump?
no
There is also a solution for that in ovenplayer:
AirenSoft/OvenMediaEngine#203 .... I think this can be used in WHEP Player too.
The text was updated successfully, but these errors were encountered: