Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

No sound during stream using pipewire

Open Matthew-Beckett opened this issue 1 year ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your issue described in the documentation?

  • [X] I have read the documentation

Is your issue present in the nightly release?

  • [X] This issue is present in the nightly release

Describe the Bug

When opening a stream, no audio recording device is created in pavucontrol and there is no sound transmitted to the client.

There is also no entry into the log, even in verbose mode which suggest that sound is broken or a permission error is being encountered.

Expected Behavior

Working sound on stream, basic stereo, not 2.1 or 5.1.

Additional Context

pipewire 1:0.3.79-2 pipewire-alsa 1:0.3.79-2 pipewire-audio 1:0.3.79-2 pipewire-jack 1:0.3.79-2 pipewire-pulse 1:0.3.79-2

Host Operating System

Linux

Operating System Version

EndeavourOS Rolling (Kernel Version: 6.1.52-1-lts)

Architecture

64 bit

Sunshine commit or version

0.20.0.31e8b79.dirty

Package

Linux - flatpak

GPU Type

AMD

GPU Model

Radeon RX7900XTX

GPU Driver/Mesa Version

Mesa Galium 23.1.6

Capture Method (Linux Only)

X11

Config

min_log_level = 1
encoder = vaapi
capture = x11
ping_timeout = 86400000
audio_sink = alsa_output.usb-SteelSeries_SteelSeries_Arctis_7-00.stereo-game.monitor

Apps

No response

Relevant log output

[2023:09:11:13:04:51]: Info: Sunshine version: 0.20.0.31e8b79.dirty
[2023:09:11:13:04:51]: Info: Detecting monitors
[2023:09:11:13:04:51]: Info: Detected monitor 0: DisplayPort-0, connected: true
[2023:09:11:13:04:51]: Info: Detected monitor 1: DisplayPort-1, connected: false
[2023:09:11:13:04:51]: Info: Detected monitor 2: DisplayPort-2, connected: true
[2023:09:11:13:04:51]: Info: Detected monitor 3: HDMI-A-0, connected: true
[2023:09:11:13:04:51]: Info: Detected monitor 4: HDMI-A-1-1, connected: false
[2023:09:11:13:04:51]: Info: Detected monitor 5: DisplayPort-1-3, connected: false
[2023:09:11:13:04:51]: Info: Trying encoder [vaapi]
[2023:09:11:13:04:51]: Info: Screencasting with X11
[2023:09:11:13:04:51]: Debug: EGL: [Mesa Project]: version [1.5]
[2023:09:11:13:04:51]: Debug: API's supported: [OpenGL OpenGL_ES ]
[2023:09:11:13:04:51]: Debug: GL: vendor: AMD
[2023:09:11:13:04:51]: Debug: GL: renderer: AMD Radeon RX 7900 XTX (gfx1100, LLVM 15.0.7, DRM 3.49, 6.1.52-1-lts)
[2023:09:11:13:04:51]: Debug: GL: version: 4.6 (Compatibility Profile) Mesa 23.1.6 (git-0697ac0d75)
[2023:09:11:13:04:51]: Debug: GL: shader: 4.60
[2023:09:11:13:04:51]: Info: SDR color coding [Rec. 601]
[2023:09:11:13:04:51]: Info: Color range: [JPEG]
[2023:09:11:13:04:51]: Debug: vaapi vendor: Mesa Gallium driver 23.1.6 for AMD Radeon RX 7900 XTX (gfx1100, LLVM 15.0.7, DRM 3.49, 6.1.52-1-lts)
[2023:09:11:13:04:51]: Info: Screencasting with X11
[2023:09:11:13:04:51]: Info: System tray created
[2023:09:11:13:04:51]: Debug: System tray loop
[2023:09:11:13:04:51]: Debug: System tray loop
[2023:09:11:13:04:51]: Debug: System tray loop
[2023:09:11:13:04:51]: Debug: System tray loop
[2023:09:11:13:04:51]: Debug: System tray loop
[2023:09:11:13:04:51]: Debug: System tray loop
[2023:09:11:13:04:51]: Debug: System tray loop
[2023:09:11:13:04:51]: Debug: System tray loop
[2023:09:11:13:04:51]: Debug: System tray loop
[2023:09:11:13:04:51]: Debug: System tray loop
[2023:09:11:13:04:51]: Debug: System tray loop
[2023:09:11:13:04:51]: Debug: EGL: [Mesa Project]: version [1.5]
[2023:09:11:13:04:51]: Debug: API's supported: [OpenGL OpenGL_ES ]
[2023:09:11:13:04:51]: Debug: GL: vendor: AMD
[2023:09:11:13:04:51]: Debug: GL: renderer: AMD Radeon RX 7900 XTX (gfx1100, LLVM 15.0.7, DRM 3.49, 6.1.52-1-lts)
[2023:09:11:13:04:51]: Debug: GL: version: 4.6 (Compatibility Profile) Mesa 23.1.6 (git-0697ac0d75)
[2023:09:11:13:04:51]: Debug: GL: shader: 4.60
[2023:09:11:13:04:51]: Info: SDR color coding [Rec. 601]
[2023:09:11:13:04:51]: Info: Color range: [JPEG]
[2023:09:11:13:04:51]: Debug: vaapi vendor: Mesa Gallium driver 23.1.6 for AMD Radeon RX 7900 XTX (gfx1100, LLVM 15.0.7, DRM 3.49, 6.1.52-1-lts)
[2023:09:11:13:04:51]: Info: Screencasting with X11
[2023:09:11:13:04:51]: Debug: EGL: [Mesa Project]: version [1.5]
[2023:09:11:13:04:51]: Debug: API's supported: [OpenGL OpenGL_ES ]
[2023:09:11:13:04:51]: Debug: GL: vendor: AMD
[2023:09:11:13:04:51]: Debug: GL: renderer: AMD Radeon RX 7900 XTX (gfx1100, LLVM 15.0.7, DRM 3.49, 6.1.52-1-lts)
[2023:09:11:13:04:51]: Debug: GL: version: 4.6 (Compatibility Profile) Mesa 23.1.6 (git-0697ac0d75)
[2023:09:11:13:04:51]: Debug: GL: shader: 4.60
[2023:09:11:13:04:51]: Info: SDR color coding [Rec. 709]
[2023:09:11:13:04:51]: Info: Color range: [JPEG]
[2023:09:11:13:04:51]: Debug: vaapi vendor: Mesa Gallium driver 23.1.6 for AMD Radeon RX 7900 XTX (gfx1100, LLVM 15.0.7, DRM 3.49, 6.1.52-1-lts)
[2023:09:11:13:04:51]: Warning: vaapi: hevc missing sps->vui parameters
[2023:09:11:13:04:51]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:09:11:13:04:51]: Info: 
[2023:09:11:13:04:51]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:09:11:13:04:51]: Info: 
[2023:09:11:13:04:51]: Debug: ------  h264 ------
[2023:09:11:13:04:51]: Debug: PASSED: supported
[2023:09:11:13:04:51]: Debug: REF_FRAMES_RESTRICT: supported
[2023:09:11:13:04:51]: Debug: CBR: supported
[2023:09:11:13:04:51]: Debug: DYNAMIC_RANGE: unsupported
[2023:09:11:13:04:51]: Debug: VUI_PARAMETERS: supported
[2023:09:11:13:04:51]: Debug: -------------------
[2023:09:11:13:04:51]: Debug: ------  hevc ------
[2023:09:11:13:04:51]: Debug: PASSED: supported
[2023:09:11:13:04:51]: Debug: REF_FRAMES_RESTRICT: supported
[2023:09:11:13:04:51]: Debug: CBR: supported
[2023:09:11:13:04:51]: Debug: DYNAMIC_RANGE: unsupported
[2023:09:11:13:04:51]: Debug: VUI_PARAMETERS: unsupported
[2023:09:11:13:04:51]: Debug: -------------------
[2023:09:11:13:04:51]: Info: Found encoder vaapi: [h264_vaapi, hevc_vaapi]
[2023:09:11:13:04:51]: Info: Adding avahi service Sunshine
[2023:09:11:13:04:51]: Info: Configuration UI available at [https://localhost:47990]

Matthew-Beckett avatar Sep 11 '23 12:09 Matthew-Beckett

Same problem on Ubuntu 23.10 on Wayland.

Soupolait avatar Oct 27 '23 12:10 Soupolait

Happens to me on Arch Linux as well. Wayland session (sway). Tried changing to Pulseaudio and that didnt work either. Does pulse work for you? I have the same issue when downgrading Sunshine (tried 19 and 20 as well as the newest 21). Those older versions definitely worked before, so what has changed?...

bernharl avatar Dec 17 '23 19:12 bernharl

Also, here are my verbose logs. As far as I can see there is no mention of audio at all....

sunshine.log EDIT: NEVERMIND, I fixed it by actually remembering to forward the correct ports...... port 48000 was missing, which is the audio port....

bernharl avatar Dec 19 '23 08:12 bernharl

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

LizardByte-bot avatar Mar 18 '24 10:03 LizardByte-bot

This issue was closed because it has been stalled for 10 days with no activity.

LizardByte-bot avatar Mar 29 '24 10:03 LizardByte-bot