moonlight-stream / moonlight-android

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

[Issue]: Freezen screen on chromecast with google tv #1418

Open longphamdev opened 2 months ago

longphamdev commented 2 months ago

Describe the bug

After 4-5 minutes of use, the screen freezes, but the audio continues to work. It seems like the video is stuck

Steps to reproduce

Install moonlight from google play

enter to the host from moonlight

wait for 4-5 minutes

Affected games

Deathdoor Chrome

Other Moonlight clients

PC

Moonlight adjusted settings

No

Moonlight adjusted settings (please complete the following information)

Nothing

Moonlight default settings

Yes

Gamepad-related connection issue

Yes

Gamepad-related input issue

No

Gamepad-related streaming issue

No

Android version

12

Device model

Chromecast with google TV

Server PC OS version

Windows 10 pro build version 19045

Server PC GeForce Experience version

Nothing

Server PC Nvidia GPU driver version

466.11 - WHQL

Server PC antivirus and firewall software

Nothing

Screenshots

No response

Relevant log output

No response

Additional context

No response

RyantHults commented 3 days ago

can confirm I am seeing the same issue. Client is a Onn 4k Pro Google TV Media box running latest moonlight installed through playstore. Server is sunshine v0.23.1 running on Pop!_OS 22.04 LTS. There are no logs that show up in the server when this happens, even with log level set to debug. The same issue is not there in clients on other platforms that I've tried (i.e. steam link, windows, linux).

DSEG7 commented 2 days ago

Same issue.

While troubleshooting, I have found that the decoder stops converting the data. You can see this by turning on the performance preview in settings.

Running Sunshine, switched between NVIDIA GPU and Intel APU, switched between HEVC and H264, adjusting nitrates to no avail.

If changing the decoding codec is possible, I would be able to get confirmation.

DSEG7 commented 1 day ago

More troubleshooting: Switching out settings; HAGS on and off. 2 minutes and 15 minutes respectively. Tested another PC with another Card, same issue. 50 seconds before crash. Tested Tab 8A and pixel 8. No issues. Got to 30 minutes before cancelling. Definitely an issue with 12.1 or the codec. I never extensively used Moonlight but on the Chromecast but I believe a earlier version may work better.

Interestingly after an uninstall and reinstall, it ran for 50 minutes before crashing.

DSEG7 commented 1 day ago

Ok, I managed to get the software encoder working with HEVC.

Despite client settings, default setup of sunshine will use h264.

In Sunshine settings, force the software encoder under advanced, and under HEVC make sure to turn on offer HEVC (not depending on encoder)