Hello,
I am experiencing a persistent issue when using Moonlight as a client and Sunshine as the server to stream and play games from my PC over my local LAN network.
My device is a GT King PRO running the original firmware 927P0, and both client and server are connected to the router with an Ethernet cable (no WiFi on this setup).
The problem is that h264 streaming always eventually fails (visual corruption followed by the decoder stopping). This always happens not long after starting a session.

I have tested multiple Moonlight clients (forks of the original, more updated versions with enhancements) and two different PC servers, and the behavior is always the same.
If HEVC codec is selected for decoding the stream on the Moonlight cliente, the stream does not fail, but it introduces higher latency, which is why I would prefer to use h264 instead of HEVC.
When I boot the same device using EmuELEC (Linux) the issue does not occur. However, EmuELEC can only use an older Moonlight client, and that setup has audio issues, so it is not a viable long-term solution. But the important thing of this test is that the video decoding problem itself does not appear in that environment.
The decoder reported by the Android client is: OMX.amlogic.avc.decoder.awesome
When the failure occurs, the client continues receiving network data from the server, however the decoder stops producing frames. Rendering FPS drops to 0 FPS and decoding time becomes 0 ms.
Since the issue occurs across different clients and servers but does not appear when running Linux/EmuELEC on the same hardware, I suspect the issue may be related to the Android MediaCodec implementation or the Amlogic h264 decoder. I don’t know what else to think or where the problem may be if not in the h264 decoder.
Has anyone experienced similar behaviour with this decoder or this firmware? Is this a bug? Can it be fixed?
Any help or insight would be greatly appreciated.
Thanks.