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

WebRTC Playback: Sound only mono #2043

Closed
12 tasks
zapf2000 opened this issue Jul 10, 2023 · 3 comments · Fixed by #2470
Closed
12 tasks

WebRTC Playback: Sound only mono #2043

zapf2000 opened this issue Jul 10, 2023 · 3 comments · Fixed by #2470
Labels
bug Something isn't working webrtc

Comments

@zapf2000
Copy link

zapf2000 commented Jul 10, 2023

Which version are you using?

v0.23.7

Which operating system are you using?

  • [x ] Linux amd64 standard
  • Linux amd64 Docker
  • Linux arm64 standard
  • Linux arm64 Docker
  • Linux arm7 standard
  • Linux arm7 Docker
  • Linux arm6 standard
  • Linux arm6 Docker
  • Windows amd64 standard
  • Windows amd64 Docker (WSL backend)
  • macOS amd64 standard
  • macOS amd64 Docker
  • Other (please describe)

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.

@aler9
Copy link
Member

aler9 commented Oct 6, 2023

Hello, thanks for reporting the issue, this is fixed with #2470.

@aler9
Copy link
Member

aler9 commented Oct 15, 2023

added in v1.2.0

Copy link
Contributor

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working webrtc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants