moonlight-stream / moonlight-android

GameStream client for Android
GNU General Public License v3.0
3.16k stars 503 forks source link

[Issue]: High Decode Time Issue with OMX.amlogic.hevc.decoder.awesome on Amlogic SoC #1355

Open g3binp5yz opened 1 month ago

g3binp5yz commented 1 month ago

Describe the bug

Description: When using Moonlight-Android on devices equipped with the Amlogic T982 SoC and utilizing the OMX.amlogic.hevc.decoder.awesome decoder, there's a significant discrepancy in decode times. While optimal decode time ideally ranges between 5-15 milliseconds, it consistently registers between 25-35 milliseconds on these projector devices, leading to stuttering, delays, and compromised video quality.

Additional Details:

Impact: This issue significantly hampers the usability of Moonlight-Android on projectors or TVs utilizing the Amlogic T982 SoC, like TCL V8G, FFALCON S365C etc. potentially affecting other devices with Amlogic SoCs

Workaround: Consider using a device with a different System on Chip (SoC) instead of the Amlogic T982, or any Amlogic SoC. This may alleviate the decoding issues experienced on these TVs / projectors with Moonlight-Android. Exploring devices with alternative SoCs compatible with Moonlight-Android could provide a smoother streaming experience until a resolution is implemented for Amlogic SoC devices.

Steps to reproduce

  1. Open Moonlight-Android on a device with Amlogic T982 SoC.
  2. Connect to the same network as the host machine running Sunshine 0.23.0.
  3. Start a streaming session from the host machine to the device.
  4. Monitor the decode times during streaming.
  5. Note the consistent decode time range between 25-35 milliseconds.

Affected games

All games and applications streamed via Moonlight-Android on devices with Amlogic T982 SoC are affected by this issue.

Other Moonlight clients

PC

Moonlight adjusted settings

Yes

Moonlight adjusted settings (please complete the following information)

Despite attempting different FPS, bitrate and different decoder configurations, the issue persists without improvement on devices with Amlogic T982 SoC.

Moonlight default settings

Yes

Gamepad-related connection issue

Yes

Gamepad-related input issue

Yes

Gamepad-related streaming issue

Yes

Android version

Android 9

Device model

XiaoMing V1

Server PC OS version

Windows 11 23H2

Server PC GeForce Experience version

Sunshine

Server PC Nvidia GPU driver version

AMD GPU With Driver: 31.0.23013.1023

Server PC antivirus and firewall software

Windows Defender and Windows Firewall

Screenshots

No response

Relevant log output

No response

Additional context

No response