OneLiberty / moonlight-chrome-tizen

A WASM port of Moonlight for Samsung Smart TV's running Tizen OS (5.5 and up)
GNU General Public License v3.0
246 stars 18 forks source link

Freezing screen on resolution above 720 19+Mbps on a Samsung S90C and Sunshine #59

Open ailison opened 2 months ago

ailison commented 2 months ago

I am a web backend dev I can provide a proper description and logs. Please, point me the way senseis.

This is my first time with Moonlight (v1.2.1) and Sunshine (v.0.23.1), I am trying to make it run on my Samsung QN83S90CAEXZC Tizen v7.0. I read everything before posting this and it all checks btw.

The problem is not sunshine or hardware when streaming to phone and computer versions of Moonlight. Everything works smoothly and nicely for multiple connections with multiple resolutions and bitrates. I stream 100+Mb/s blue-rays with Jellyfin (no encoding/decoding) successfully.

My hardware:

AMD Ryzen 9 3900x Gen 3 (12-Core/24-Thread 3.8GHz/ 4.6Boost)
ASUS ROG Crosshair VIII Hero WI-FI 6
GIGABYTE GeForce RTX 2060 OC 6G
4x8Gb Thermaltake TOUGHRAM RGB DDR4 4400MHz (19-25-25-45)
1TB XPG Gammix s70 blade Nvme PCIe 4.0 M.2 2280
500GB Sabrent Rocket Nvme PCIe 4.0 M.2 2280
Corsair Modular 850w 80 Gold
Asus VG279Q 27" Full HD 1080p IPS 144Hz 1ms
2.5Gb port connected with a good cat7 cable
Shaw Canada modem/router (CGM4140COM) 1Gb ports

On the TV the stream works fine if in Desktop or Steam big picture mode if in 720p under 20mbps in any codec, the controller connected to the TV works fine as well. I tried forcing all encoders available to me Nvidia, AMD and Software and all work the same, perfect on phone/pc but freeze on TV.

Any resolution I choose above 720 19.9mbps will freeze the screen, the first frame renders and then freezes, sometimes it comes back and plays for a few seconds and then freezes, again. The audio goes through without any problem.

Where can I start to help you guys? Thank you so much.

OneLiberty commented 2 months ago

Is the tv connected via WiFi ?

ailison commented 2 months ago

Hi, no it is connected via cable, also a cat7 just like my machine.

OneLiberty commented 2 months ago

I'd suggest trying with the TV connected via WiFi

ailison commented 2 months ago

Quentin it did work. Even 4k 100mbps. That's so weird. How can I report this issue? Thank you so much.

OneLiberty commented 2 months ago

I already know about this issue, it's been going on for a while now. Don't know how to fix it tho ...

It's likely an app problem, but it's been consistent at failing with ethernet.

magne4000 commented 2 months ago

I have almost the same TV (S95C) and exactly the same issue. The weird thing is at one point, with a specific version of Sunshine + a specific version of Moonlight, I was streaming 40Mbps 1440p 60fps without any issue for a few weeks. I did not note which exact version though, and I'm not even sure if the issue comes from Sunshine or Moonlight.

@OneLiberty I'm willing to help debug this issue. Would there be a way to have a specific debug build that would dump enough info to give us some hint on where it's going wrong?

OneLiberty commented 2 months ago

@magne4000 Unfortunately i don't have another build, the problem has been here for a while now (i think you can find people having this issue on the KyroFrCode fork too) and affects all version.

This must come from the network handling in the app but where ? (since it works usually fine on WiFi...) Debug logs might tell you that it failed to setsockopt(TCP_MAXSEG, 536) failed: 50

magne4000 commented 1 week ago

I'm unable to compile anything because the SDK doesn't work on ARM...

As a side note, I started playing the latest Dragon Age game, and with this one the streaming works above 19.9 Mbps, so I'm really lost on what could cause the issue.

SerAlbi commented 2 days ago

I have the same issue on S85D, lan cable goes to 30mbps max and then black screen... Wifi instead goes fine to 100mbps, i would obviously prefer to use lan since it cause far less stuttering

OneLiberty commented 2 days ago

@magne4000 have you tried to use docker build with --platform=linux/amd64 ? I'm usually building on a M2 Pro and it works only with that option. It's quite slow tho I'd still suggest using a "proper" x86 PC (around 60sec to build vs 300/500 on a arm PC...)