moonlight-android icon indicating copy to clipboard operation
moonlight-android copied to clipboard

[Issue]: Freezen screen on chromecast with google tv

Open longphamdev opened this issue 1 year ago • 6 comments

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

longphamdev avatar Sep 13 '24 04:09 longphamdev

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).

RyantHults avatar Nov 09 '24 02:11 RyantHults

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 avatar Nov 10 '24 17:11 DSEG7

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 avatar Nov 11 '24 12:11 DSEG7

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)

DSEG7 avatar Nov 11 '24 16:11 DSEG7

tried the above, but now my audio cuts out for a second every 5-10 seconds which isn't great. I tried setting just the HEVC support setting but leaving the encoder setting alone, and that lasted longer than normal before it froze up again.

RyantHults avatar Nov 13 '24 01:11 RyantHults

Same problem here.

Switching to the software encoder seems to fix the freezing, but the performance has gone from 60 fps down to 10 fps in demanding games.

LuisHerrero92 avatar Mar 18 '25 11:03 LuisHerrero92