-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(nvenc): Enable opt-in client refresh by client #3415
fix(nvenc): Enable opt-in client refresh by client #3415
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3415 +/- ##
=========================================
- Coverage 11.17% 7.88% -3.29%
=========================================
Files 100 90 -10
Lines 17310 15803 -1507
Branches 8069 7487 -582
=========================================
- Hits 1934 1246 -688
+ Misses 12671 12131 -540
+ Partials 2705 2426 -279
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Do we need to wait for the moonlight-common-c PR to be merged for this? |
Not really. The SDP attribute looks fine and that's the only part of the network protocol that's affected by this change. If we wanted to do this for real, I would suggest allowing the client to specify the parameters of the intra-refresh period, but since this is basically a hack, I'm fine just having a single flag to indicate it. I'm pretty convinced we (or FFmpeg) probably have a bug here though because I've seen this "artifacting on mostly static images" pop up on other clients too. It's just really tricky to catch in a way that can actually be analyzed. We would need to write the whole video stream to disk, so we could run it through a bitstream analyzer it after the fact. Maybe it's feasible to do on Xbox where it occurs relatively soon, but in other cases it can take hours of streaming for it to happen. |
98e2462
to
115aa6b
Compare
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
@cgutman @ns6089 Could it be enough to save the last 300 NAL units onto a flash drive when the user presses an hotkey so that they can upload it to us and can analyse this further? |
In my opinion, no. |
Description
Context in TheElixZammuto/moonlight-xbox#117
This type of degradation can be fixed on nvidia cards by implementing intra-refresh.
I do not have an nvidia card so I wasn't be able to test, but this change has been validated by the commenters in the issue above using a custom Sunshine build made by me and by other forks of Sunshine made by other people, and it seems to fix the issue.
This change is completely opt-in by the client, so this change should only apply to the Xbox/UWP Client
Related to:
moonlight-xbox: TheElixZammuto/moonlight-xbox#155
moonlight-common-c: moonlight-stream/moonlight-common-c#97
Screenshot
Issues Fixed or Closed
TheElixZammuto/moonlight-xbox#117
Type of Change
.github/...
)Checklist