Skip to content

WebRTC SDP Codec Collision (INVALID_PARAMETER) when sharing screen on Wayland #2033

Description

@felipefbs

Describe the bug

When attempting to share the screen on Linux (Wayland), the screen sharing fails. The engine attempts to group two audio streams under the same payload_type (111) for audio/opus, but with conflicting parameters (one stream has usedtx: 1 and the other does not).

Reproduction

  1. Start or join a call in Sable.
  2. Attempt to share the screen (with audio enabled).
  3. Screen sharing fails to initialize.

Expected behavior

The screen sharing should initialize correctly without SDP parameter conflicts.

Platform and versions

* OS: Bazzite (Linux 7.2.1)
* Desktop Environment: KDE Plasma 6.7.4 (Wayland)
* Sable Version: 1.21.0

Additional context

Logs

[2:29:0902/195750.143512:ERROR:dbus/bus.cc:405] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Arquivo ou diretório inexistente
[2:29:0902/195750.143573:ERROR:dbus/bus.cc:405] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Arquivo ou diretório inexistente
[2:2:0902/195750.148240:ERROR:dbus/object_proxy.cc:572] Failed to call method: org.freedesktop.DBus.Properties.GetAll: object_path= /org/freedesktop/UPower/devices/DisplayDevice: unknown error type: 
[43:43:0902/195756.799592:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 1 times!
[43:43:0902/195756.800807:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 2 times!
[45:65:0902/195757.103685:ERROR:services/network/p2p/socket_manager.cc:137] Failed to resolve address for ip-168-75-94-9.host.livekit.cloud., errorcode: -105
[2026-09-02][22:57:57][tauri_runtime_cef::policy][INFO] granted [Microphone] to tauri://localhost/ in webview "main"
[154:49:0902/195757.910335:ERROR:third_party/webrtc/pc/sdp_offer_answer.cc:575] A BUNDLE group contains a codec collision between {payload_type: 111, codec: {mime_type: audio/opus, clock_rate: 48000, num_channels: 2, parameters: {minptime: 10, usedtx: 1, useinbandfec: 1}}} and {payload_type: 111, codec: {mime_type: audio/opus, clock_rate: 48000, num_channels: 2, parameters: {minptime: 10, useinbandfec: 1}}}. All codecs must share the same type, encoding name, clock rate and parameters. (INVALID_PARAMETER)
[154:49:0902/195757.910457:ERROR:third_party/webrtc/pc/sdp_offer_answer.cc:4170] Bundled payload type collision: A BUNDLE group contains a codec collision between {payload_type: 111, codec: {mime_type: audio/opus, clock_rate: 48000, num_channels: 2, parameters: {minptime: 10, usedtx: 1, useinbandfec: 1}}} and {payload_type: 111, codec: {mime_type: audio/opus, clock_rate: 48000, num_channels: 2, parameters: {minptime: 10, useinbandfec: 1}}}. All codecs must share the same type, encoding name, clock rate and parameters.
[154:49:0902/195757.910812:ERROR:third_party/webrtc/pc/sdp_offer_answer.cc:5511] Warning: Inconsistent congestion control feedback types, ignoring all.
[43:43:0902/195800.438698:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 3 times!
[2026-09-02][22:58:06][tauri_runtime_cef::policy][INFO] granted [ScreenCapture] to tauri://localhost/ in webview "main"
[154:49:0902/195806.554807:ERROR:third_party/webrtc/pc/sdp_offer_answer.cc:575] A BUNDLE group contains a codec collision between {payload_type: 111, codec: {mime_type: audio/opus, clock_rate: 48000, num_channels: 2, parameters: {minptime: 10, usedtx: 1, useinbandfec: 1}}} and {payload_type: 111, codec: {mime_type: audio/opus, clock_rate: 48000, num_channels: 2, parameters: {minptime: 10, useinbandfec: 1}}}. All codecs must share the same type, encoding name, clock rate and parameters. (INVALID_PARAMETER)
[154:49:0902/195806.554920:ERROR:third_party/webrtc/pc/sdp_offer_answer.cc:4170] Bundled payload type collision: A BUNDLE group contains a codec collision between {payload_type: 111, codec: {mime_type: audio/opus, clock_rate: 48000, num_channels: 2, parameters: {minptime: 10, usedtx: 1, useinbandfec: 1}}} and {payload_type: 111, codec: {mime_type: audio/opus, clock_rate: 48000, num_channels: 2, parameters: {minptime: 10, useinbandfec: 1}}}. All codecs must share the same type, encoding name, clock rate and parameters.
[154:49:0902/195806.555204:ERROR:third_party/webrtc/pc/sdp_offer_answer.cc:5511] Warning: Inconsistent congestion control feedback types, ignoring all.
 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions