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

Sound is "craking" when streaming to Moonlight. #1541

Closed
3 tasks done
Gaeus opened this issue Aug 15, 2023 · 5 comments
Closed
3 tasks done

Sound is "craking" when streaming to Moonlight. #1541

Gaeus opened this issue Aug 15, 2023 · 5 comments
Labels
audio:windows Audio issue in Windows invalid:duplicate This appears to be a duplicate of a pre-existing issue.

Comments

@Gaeus
Copy link

Gaeus commented Aug 15, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the nightly release?

  • This issue is present in the nightly release

Describe the Bug

The audio is "crakling" as if it was amplified while streaming, the issue happens regardless of the audio output, and regardless of the audio settings (settings the sound quality @44.1mhz doesn't solve the "craking" sound.

Expected Behavior

Audio should be clear.

Additional Context

Have been using Sunshine/Moonlight for a year with no issue, the bug persists after a clean reinstallation and several reboots.

The issue persist on multiple clients : Android, Google TV, Ios, Windows (client).

The bug does not seem to be related to Moonlight, since it appears on older client whom I've not updated.

Host Operating System

Windows

Operating System Version

11 22H2 22621.2134

Architecture

64 bit

Sunshine commit or version

20

Package

Windows - installer

GPU Type

Nvidia

GPU Model

4070

GPU Driver/Mesa Version

599

Capture Method (Linux Only)

No response

Config

encoder = nvenc
resolutions = [
    352x240,
    480x360,
    858x480,
    1280x720,
    1920x1080,
    2560x1080,
    3440x1440,
    1920x1200,
    3840x2160,
    3840x1600,
    2176x1812,
    2560x1440
]
nv_preset = p1

Apps

No response

Relevant log output

[2023:08:15:14:07:13]: Info: Sunshine version: 0.20.0
[2023:08:15:14:07:13]: Info: Compiling shaders...
[2023:08:15:14:07:13]: Info: System tray created
[2023:08:15:14:07:13]: Info: Compiled shaders
[2023:08:15:14:07:13]: Info: Trying encoder [nvenc]
[2023:08:15:14:07:13]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2023:08:15:14:07:13]: Info: Set GPU preference: 1
[2023:08:15:14:07:14]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12026 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16344 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 2560x190
Virtual Desktop    : 4480x1440
[2023:08:15:14:07:14]: Info: Desktop resolution [1920x1080]
[2023:08:15:14:07:14]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:07:14]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:08:15:14:07:14]: Info: SDR color coding [Rec. 601]
[2023:08:15:14:07:14]: Info: Color range: [JPEG]
[2023:08:15:14:07:14]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12026 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16344 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 2560x190
Virtual Desktop    : 4480x1440
[2023:08:15:14:07:14]: Info: Desktop resolution [1920x1080]
[2023:08:15:14:07:14]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:07:14]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:08:15:14:07:14]: Info: SDR color coding [Rec. 601]
[2023:08:15:14:07:14]: Info: Color range: [JPEG]
[2023:08:15:14:07:15]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12026 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16344 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 2560x190
Virtual Desktop    : 4480x1440
[2023:08:15:14:07:15]: Info: Desktop resolution [1920x1080]
[2023:08:15:14:07:15]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:07:15]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:08:15:14:07:15]: Info: SDR color coding [Rec. 709]
[2023:08:15:14:07:15]: Info: Color range: [JPEG]
[2023:08:15:14:07:15]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:08:15:14:07:15]: Info: 
[2023:08:15:14:07:15]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:08:15:14:07:15]: Info: 
[2023:08:15:14:07:15]: Info: Found encoder nvenc: [h264_nvenc, hevc_nvenc]
[2023:08:15:14:07:15]: Info: Configuration UI available at [https://localhost:47990]
[2023:08:15:14:07:15]: Info: Registered Sunshine mDNS service
[2023:08:15:14:07:29]: Info: Trying encoder [nvenc]
[2023:08:15:14:07:29]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12026 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16344 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 2560x190
Virtual Desktop    : 4480x1440
[2023:08:15:14:07:29]: Info: Desktop resolution [1920x1080]
[2023:08:15:14:07:29]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:07:29]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:08:15:14:07:30]: Info: SDR color coding [Rec. 601]
[2023:08:15:14:07:30]: Info: Color range: [JPEG]
[2023:08:15:14:07:30]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12026 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16344 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 2560x190
Virtual Desktop    : 4480x1440
[2023:08:15:14:07:30]: Info: Desktop resolution [1920x1080]
[2023:08:15:14:07:30]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:07:30]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:08:15:14:07:30]: Info: SDR color coding [Rec. 601]
[2023:08:15:14:07:30]: Info: Color range: [JPEG]
[2023:08:15:14:07:30]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12026 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16344 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 2560x190
Virtual Desktop    : 4480x1440
[2023:08:15:14:07:30]: Info: Desktop resolution [1920x1080]
[2023:08:15:14:07:30]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:07:30]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:08:15:14:07:30]: Info: SDR color coding [Rec. 709]
[2023:08:15:14:07:30]: Info: Color range: [JPEG]
[2023:08:15:14:07:31]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:08:15:14:07:31]: Info: 
[2023:08:15:14:07:31]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:08:15:14:07:31]: Info: 
[2023:08:15:14:07:31]: Info: Found encoder nvenc: [h264_nvenc, hevc_nvenc]
[2023:08:15:14:07:31]: Info: Executing [Desktop]
[2023:08:15:14:07:31]: Info: CLIENT CONNECTED
[2023:08:15:14:07:31]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12026 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16344 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 4480x1440
[2023:08:15:14:07:31]: Info: Desktop resolution [2560x1440]
[2023:08:15:14:07:31]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:07:31]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.675781,0.313477]
Green Primary      : [0.279297,0.647461]
Blue Primary       : [0.151367,0.0722656]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5132 nits
Max Luminance      : 248.379 nits
Max Full Luminance : 248.379 nits
[2023:08:15:14:07:31]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:07:31]: Info: SDR color coding [Rec. 709]
[2023:08:15:14:07:31]: Info: Color range: [MPEG]
[2023:08:15:14:07:44]: Info: CLIENT DISCONNECTED
[2023:08:15:14:09:06]: Info: Trying encoder [nvenc]
[2023:08:15:14:09:06]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12026 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16344 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 2560x190
Virtual Desktop    : 4480x1440
[2023:08:15:14:09:06]: Info: Desktop resolution [1920x1080]
[2023:08:15:14:09:06]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:09:06]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:08:15:14:09:06]: Info: SDR color coding [Rec. 601]
[2023:08:15:14:09:06]: Info: Color range: [JPEG]
[2023:08:15:14:09:07]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12026 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16344 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 2560x190
Virtual Desktop    : 4480x1440
[2023:08:15:14:09:07]: Info: Desktop resolution [1920x1080]
[2023:08:15:14:09:07]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:09:07]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:08:15:14:09:07]: Info: SDR color coding [Rec. 601]
[2023:08:15:14:09:07]: Info: Color range: [JPEG]
[2023:08:15:14:09:08]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12026 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16344 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 2560x190
Virtual Desktop    : 4480x1440
[2023:08:15:14:09:08]: Info: Desktop resolution [1920x1080]
[2023:08:15:14:09:08]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:09:08]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.149414,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:08:15:14:09:08]: Info: SDR color coding [Rec. 709]
[2023:08:15:14:09:08]: Info: Color range: [JPEG]
[2023:08:15:14:09:08]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:08:15:14:09:08]: Info: 
[2023:08:15:14:09:08]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:08:15:14:09:08]: Info: 
[2023:08:15:14:09:08]: Info: Found encoder nvenc: [h264_nvenc, hevc_nvenc]
[2023:08:15:14:09:08]: Info: CLIENT CONNECTED
[2023:08:15:14:09:08]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12026 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16344 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 4480x1440
[2023:08:15:14:09:08]: Info: Desktop resolution [2560x1440]
[2023:08:15:14:09:08]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:09:08]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.675781,0.313477]
Green Primary      : [0.279297,0.647461]
Blue Primary       : [0.151367,0.0722656]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5132 nits
Max Luminance      : 248.379 nits
Max Full Luminance : 248.379 nits
[2023:08:15:14:09:08]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:15:14:09:08]: Info: SDR color coding [Rec. 709]
[2023:08:15:14:09:08]: Info: Color range: [MPEG]
[2023:08:15:14:09:19]: Info: CLIENT DISCONNECTED
@Gaeus
Copy link
Author

Gaeus commented Aug 15, 2023

FIX : The issue came from my internet solution, i'm using a wifi mesh network, and the satellite my Host was plugged into (An Orbi from Netgear) had been slightly moved while cleaning the house, after rebooting the satellite the "crakling" is gone...

It's still weird that it would only happen with sunshine and not Steam Link. But at least it's fixed.

@ZigZagT
Copy link

ZigZagT commented Aug 16, 2023

I think this happens when low latency streaming combined with unstable network connection.

at default settings Steam Link has a higher latency than sunshine therefore is less prone to this issue.

@snicmtl
Copy link

snicmtl commented Aug 29, 2023

Just checking in if anybody else has seen this? I had good sound up until 0.2 and now am getting crackling in games and even general strreaming from host. Two Win 10 machines on a gigabit wired network connected through gigabit switch. Not sure what else to check. Using iperf I'm getting solid stable throughput

@ReenigneArcher ReenigneArcher added the audio:windows Audio issue in Windows label Sep 2, 2023
@ReenigneArcher
Copy link
Member

Duplicate of #1389

@ReenigneArcher ReenigneArcher marked this as a duplicate of #1389 Sep 2, 2023
@ReenigneArcher ReenigneArcher added the invalid:duplicate This appears to be a duplicate of a pre-existing issue. label Sep 2, 2023
@LizardByte-bot
Copy link
Member

👋 @Gaeus, this appears to be a duplicate of a pre-existing issue.

@LizardByte LizardByte locked and limited conversation to collaborators Sep 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
audio:windows Audio issue in Windows invalid:duplicate This appears to be a duplicate of a pre-existing issue.
Projects
None yet
Development

No branches or pull requests

5 participants