Skip to content

Audio latency when using Android TV clients on some TVs #1161

@safijari

Description

@safijari

Describe the bug
So first off I don't know if this is a moonlight bug, but I'm also not sure where else to post this. There is an AV sync problem that appears to be different when using the same client device (I've tried on Chromecast, FireTV, and Nvidia Shield) on various displays. Specifically, the output audio is delayed when playing from the TV. At first I thought this was an issue with a new TV that I had bought but that doesn't seem to be the case. Lemme try to describe what happens as best as I can:

Say I'm using a CCWGTV (4K) and running moonlight on it. If I connect it to my monitor, I notice little to no issues with audio latency. If I connect it to my old TV (some old Samsung LCD TV) I notice a slight audio latency. If I connect it to my LG C1 or Hisense U7H, I notice what sounds like 100ms ish audio latency (i.e the audio is lagging behind the video). On both these TVs, if I connect my Steam Deck instead I see no noticeable latency when using moonlight (which in my mind at least rules out the TV). The latency issue exists in all 3 Android TVs I've tried, with it being slightly less on the Nvidia Shield.

The funny thing is that if I plug in USB headphones directly to the Android TV device, there's no noticeable latency in the audio, so whatever is happening is happening in some HDMI related audio processing. Note that game mode is on on all TVs, and I've tried my best to disable 5.1 audio and any audio processing in all the TVs as well as Android TV devices.

Steps to reproduce
Plug a chromecast or firetv into an LG C1 or Hisense U7H TV and stream your computer to it using moonlight.

Affected games
The issue does not appear to be game specific.

Other Moonlight clients
No, when using moonlight on my Steam Deck and connecting it to the same TVs, there's no audio latency. It appears to be Android TV specific.

Moonlight settings (please complete the following information)
The problem exists with default settings as well.

Device details (please complete the following information)

  • Android version: Android 12 or Android 11, depending on device
  • Device model: Chromecast 4k, Fire TV 4k max, Nvidia Shield TV Pro (2019)

Server PC details (please complete the following information)

  • OS: Windows 10
  • GeForce Experience version: unsure, latest at time of filing
  • Nvidia GPU driver: latest at time of filing
  • Antivirus and firewall software: Windows Defender and Firewall are both on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions