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

Stream loses audio after network hiccup #493

Open
kentyman23 opened this issue Jan 7, 2025 · 9 comments
Open

Stream loses audio after network hiccup #493

kentyman23 opened this issue Jan 7, 2025 · 9 comments
Labels
audio Issues related to audio playback bug Something isn't working

Comments

@kentyman23
Copy link

Moonlight Version

1.6.25

Device Type

webOS TV

Device Model

LC C2

Device OS

webOS 8.3.0

Host OS

Windows

Host Software

Sunshine

Host Setup

  • AMD Ryzen 5 5600X
  • NVIDIA GeForce RTX 4070
  • 32 GB of RAM
  • Windows 11 Pro

Bug Description

When using the experimental 5.1 surround sound, I semi-regularly hit a problem where sound cuts out on the stream entirely. This often coincides with a network hiccup (over wireless) where it mentions Unstable Network in the top right. However, sometimes it goes away when that message isn't shown, and I've also seen that message be shown where audio does not cut out. Suspending the stream and rejoining does not seem to fix it, so I usually quit the game+stream and just relaunch it.

I believe I have seen this since one of the first versions that added 5.1 surround. I do not remember ever seeing this without surround enabled, though I'm not positive this is true.

Is there any other information I can add to this bug report to make it easier to fix such as logging? I do not have a rooted device.

Reproduction Steps

  1. Stream using 5.1 surround sound.
  2. Have wireless network hiccup that is bad enough to mention Unstable Network in the top right.
  3. Audio no longer comes through on the stream.

Expected Behavior

Audio continues to work.

@kentyman23 kentyman23 added the bug Something isn't working label Jan 7, 2025
@mariotaku mariotaku added the audio Issues related to audio playback label Jan 8, 2025
@mariotaku
Copy link
Owner

Since there are new updates, would you like to try that first? Somehow I can't reproduce on my webOS 5 TV with 15% packet loss.

@CraftWorksMC
Copy link

Can confirm it happens too on my TV: LG 55UN70006LA, WebOS 5.5
Connected via wifi. Audio cuts out after a few seconds or minutes of playing.

Not sure if it's connected to this issue, Sunshine with debug logs also prints out:

[2025:01:09:15:44:25]: Debug: type [Unknown] { 5502 }
---data---
01002801000E0006000F00060087768D765A080000
---end data---

around the same time the stream loses audio.

I recorded a video of it happening:
https://github.com/user-attachments/assets/f81183ba-3526-45c8-ab0e-fb9ae57a15eb

@mariotaku
Copy link
Owner

Hi @CraftWorksMC, do you experience it when you stream desktop too?

@CraftWorksMC
Copy link

Yes, it lasted a bit longer this time but it still cut out.

@mariotaku
Copy link
Owner

@CraftWorksMC What about stereo? Does it stop and you have to restart streaming?

@CraftWorksMC
Copy link

With it set to stereo, using the NDL-WebOS5 backend it works flawlessly, rarely the audio stutters a bit, probably because of the connection, but the sound continues to work. Uses the PCM-S16LE codec.

@CraftWorksMC
Copy link

Seems like using Apollo instead of Sunshine made it work, even after major network hiccups and frame drops, 5.1 audio still worked after hours of playing.

I will do more testing tomorrow to make sure it is actually Apollo that fixes this problem.

@mariotaku
Copy link
Owner

Hi, does the latest release solve this problem? @kentyman23 @CraftWorksMC

@kentyman23
Copy link
Author

I still need to try it out and will do that now. But I wanted to drop my Sunshine logs from when it just reproduced for me. I hadn't used it since 2025:02:04 so today starts at 2025:02:11. I believe the sound drop occurred right around whatever it started logging at 2025:02:11:16:51:59:

[2025:02:04:21:26:45]: Info: CLIENT DISCONNECTED
[2025:02:11:16:17:33]: Info: Encoder reenumeration is required
[2025:02:11:16:17:33]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025:02:11:16:17:33]: Info: Trying encoder [nvenc]
[2025:02:11:16:17:34]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12012 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16341 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x495
Virtual Desktop    : 9120x2560
[2025:02:11:16:17:34]: Info: Active GPU has HAGS enabled
[2025:02:11:16:17:34]: Info: Using realtime GPU priority
[2025:02:11:16:17:34]: Info: Desktop resolution [2560x1440]
[2025:02:11:16:17:34]: Info: Desktop format [DXGI_FORMAT_R16G16B16A16_FLOAT]
[2025:02:11:16:17:34]: Info: Display refresh rate [60Hz]
[2025:02:11:16:17:34]: Info: Requested frame rate [60fps]
[2025:02:11:16:17:34]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020
Bits Per Color     : 8
Red Primary        : [0.639648,0.339844]
Green Primary      : [0.299805,0.69043]
Blue Primary       : [0.137695,0.0380859]
White Point        : [0.282227,0.296875]
Min Luminance      : 0.01 nits
Max Luminance      : 1499 nits
Max Full Luminance : 799 nits
[2025:02:11:16:17:34]: Info: SDR color coding [Rec. 601]
[2025:02:11:16:17:34]: Info: Color depth: 8-bit
[2025:02:11:16:17:34]: Info: Color range: [JPEG]
[2025:02:11:16:17:34]: Info: NvEnc: created encoder P4 two-pass rfi
[2025:02:11:16:17:34]: Info: SDR color coding [Rec. 601]
[2025:02:11:16:17:34]: Info: Color depth: 8-bit
[2025:02:11:16:17:34]: Info: Color range: [JPEG]
[2025:02:11:16:17:34]: Info: NvEnc: created encoder P4 two-pass rfi
[2025:02:11:16:17:34]: Info: SDR color coding [Rec. 601]
[2025:02:11:16:17:34]: Info: Color depth: 8-bit
[2025:02:11:16:17:34]: Info: Color range: [JPEG]
[2025:02:11:16:17:34]: Info: NvEnc: created encoder P4 two-pass rfi
[2025:02:11:16:17:34]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12012 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16341 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x495
Virtual Desktop    : 9120x2560
[2025:02:11:16:17:34]: Info: Active GPU has HAGS enabled
[2025:02:11:16:17:34]: Info: Using realtime GPU priority
[2025:02:11:16:17:34]: Info: Desktop resolution [2560x1440]
[2025:02:11:16:17:34]: Info: Desktop format [DXGI_FORMAT_R16G16B16A16_FLOAT]
[2025:02:11:16:17:34]: Info: Display refresh rate [60Hz]
[2025:02:11:16:17:34]: Info: Requested frame rate [60fps]
[2025:02:11:16:17:34]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020
Bits Per Color     : 8
Red Primary        : [0.639648,0.339844]
Green Primary      : [0.299805,0.69043]
Blue Primary       : [0.137695,0.0380859]
White Point        : [0.282227,0.296875]
Min Luminance      : 0.01 nits
Max Luminance      : 1499 nits
Max Full Luminance : 799 nits
[2025:02:11:16:17:34]: Info: HDR color coding [Rec. 2020 + SMPTE 2084 PQ]
[2025:02:11:16:17:34]: Info: Color depth: 10-bit
[2025:02:11:16:17:34]: Info: Color range: [JPEG]
[2025:02:11:16:17:34]: Info: NvEnc: created encoder P4 10-bit two-pass rfi
[2025:02:11:16:17:34]: Info: HDR color coding [Rec. 2020 + SMPTE 2084 PQ]
[2025:02:11:16:17:34]: Info: Color depth: 10-bit
[2025:02:11:16:17:34]: Info: Color range: [JPEG]
[2025:02:11:16:17:34]: Info: NvEnc: created encoder P4 10-bit two-pass rfi
[2025:02:11:16:17:34]: Info: 
[2025:02:11:16:17:34]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025:02:11:16:17:34]: Info: 
[2025:02:11:16:17:34]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2025:02:11:16:17:34]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2025:02:11:16:17:34]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2025:02:11:16:17:34]: Info: Spawning [steam steam://rungameid/377160] in ["C:\Program Files (x86)\Steam"]
[2025:02:11:16:17:34]: Info: steam steam://rungameid/377160 running with PID 20060
[2025:02:11:16:17:34]: Info: Executing [Desktop]
[2025:02:11:16:17:35]: Info: nvprefs: No need to modify application profile settings
[2025:02:11:16:17:35]: Info: nvprefs: No need to modify global profile settings
[2025:02:11:16:17:35]: Info: WLAN interface 1 is now in low latency mode
[2025:02:11:16:17:36]: Info: CLIENT CONNECTED
[2025:02:11:16:17:37]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12012 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16341 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x495
Virtual Desktop    : 9120x2560
[2025:02:11:16:17:37]: Info: Active GPU has HAGS enabled
[2025:02:11:16:17:37]: Info: Using realtime GPU priority
[2025:02:11:16:17:37]: Info: Desktop resolution [2560x1440]
[2025:02:11:16:17:37]: Info: Desktop format [DXGI_FORMAT_R16G16B16A16_FLOAT]
[2025:02:11:16:17:37]: Info: Display refresh rate [60Hz]
[2025:02:11:16:17:37]: Info: Requested frame rate [60fps]
[2025:02:11:16:17:37]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020
Bits Per Color     : 8
Red Primary        : [0.639648,0.339844]
Green Primary      : [0.299805,0.69043]
Blue Primary       : [0.137695,0.0380859]
White Point        : [0.282227,0.296875]
Min Luminance      : 0.01 nits
Max Luminance      : 1499 nits
Max Full Luminance : 799 nits
[2025:02:11:16:17:37]: Info: Capture format [DXGI_FORMAT_R16G16B16A16_FLOAT]
[2025:02:11:16:17:37]: Info: HDR color coding [Rec. 2020 + SMPTE 2084 PQ]
[2025:02:11:16:17:37]: Info: Color depth: 10-bit
[2025:02:11:16:17:37]: Info: Color range: [MPEG]
[2025:02:11:16:17:37]: Info: NvEnc: created encoder P4 10-bit two-pass rfi
[2025:02:11:16:17:42]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12012 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16341 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x495
Virtual Desktop    : 9120x2560
[2025:02:11:16:17:42]: Info: Active GPU has HAGS enabled
[2025:02:11:16:17:42]: Info: Using realtime GPU priority
[2025:02:11:16:17:42]: Info: Desktop resolution [2560x1440]
[2025:02:11:16:17:42]: Info: Desktop format [DXGI_FORMAT_R16G16B16A16_FLOAT]
[2025:02:11:16:17:42]: Info: Display refresh rate [60Hz]
[2025:02:11:16:17:42]: Info: Requested frame rate [60fps]
[2025:02:11:16:17:42]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020
Bits Per Color     : 8
Red Primary        : [0.639648,0.339844]
Green Primary      : [0.299805,0.69043]
Blue Primary       : [0.137695,0.0380859]
White Point        : [0.282227,0.296875]
Min Luminance      : 0.01 nits
Max Luminance      : 1499 nits
Max Full Luminance : 799 nits
[2025:02:11:16:17:42]: Info: HDR color coding [Rec. 2020 + SMPTE 2084 PQ]
[2025:02:11:16:17:42]: Info: Color depth: 10-bit
[2025:02:11:16:17:42]: Info: Color range: [MPEG]
[2025:02:11:16:17:42]: Info: Capture format [DXGI_FORMAT_R16G16B16A16_FLOAT]
[2025:02:11:16:17:42]: Info: NvEnc: created encoder P4 10-bit two-pass rfi
[2025:02:11:16:17:57]: Info: Gamepad 0 will be Xbox 360 controller (default)
[2025:02:11:16:51:59]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12012 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16341 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x495
Virtual Desktop    : 9120x2560
[2025:02:11:16:51:59]: Info: Active GPU has HAGS enabled
[2025:02:11:16:51:59]: Info: Using realtime GPU priority
[2025:02:11:16:51:59]: Info: Desktop resolution [2560x1440]
[2025:02:11:16:51:59]: Info: Desktop format [DXGI_FORMAT_R16G16B16A16_FLOAT]
[2025:02:11:16:51:59]: Info: Display refresh rate [60Hz]
[2025:02:11:16:51:59]: Info: Requested frame rate [60fps]
[2025:02:11:16:51:59]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020
Bits Per Color     : 8
Red Primary        : [0.639648,0.339844]
Green Primary      : [0.299805,0.69043]
Blue Primary       : [0.137695,0.0380859]
White Point        : [0.282227,0.296875]
Min Luminance      : 0.01 nits
Max Luminance      : 1499 nits
Max Full Luminance : 799 nits
[2025:02:11:16:51:59]: Info: Capture format [DXGI_FORMAT_R16G16B16A16_FLOAT]
[2025:02:11:16:51:59]: Info: HDR color coding [Rec. 2020 + SMPTE 2084 PQ]
[2025:02:11:16:51:59]: Info: Color depth: 10-bit
[2025:02:11:16:51:59]: Info: Color range: [MPEG]
[2025:02:11:16:51:59]: Info: NvEnc: created encoder P4 10-bit two-pass rfi
[2025:02:11:16:52:03]: Info: Opening UI from system tray
[2025:02:11:16:52:03]: Info: Resolved user-provided command 'https://localhost:47990' to '"C:\Program Files\Google\Chrome\Application\chrome.exe" --single-argument https://localhost:47990'
[2025:02:11:16:52:03]: Info: https://localhost:47990 running with PID 25044
[2025:02:11:16:52:03]: Info: Opened url [https://localhost:47990]
[2025:02:11:16:52:08]: Info: Web UI: [127.0.0.1] -- not authorized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio Issues related to audio playback bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants