Skip to content
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

Unable to decode AV1 stream generated by NVENC on sunshine linux in capable hardware #3331

Closed
ghost opened this issue Oct 27, 2024 · 3 comments · Fixed by #3336
Closed

Unable to decode AV1 stream generated by NVENC on sunshine linux in capable hardware #3331

ghost opened this issue Oct 27, 2024 · 3 comments · Fixed by #3336

Comments

@ghost
Copy link

ghost commented Oct 27, 2024

No description provided.

@cgutman
Copy link
Collaborator

cgutman commented Oct 28, 2024

I think I narrowed down the problem to the presence of Padding OBUs. It seems like Qualcomm did not test their decoder with AV1 bitstreams containing padding OBUs (common for CBR encoding, but not otherwise).

We don't have control of padding OBUs for all encoders (notably not FFmpeg NVENC or VAAPI), but we might be able to strip them off after each encoded frame.

@cgutman
Copy link
Collaborator

cgutman commented Oct 28, 2024

Does padding obus are also present when a stream is created in the windows app?

No, because our standalone NVENC implementation used on Windows disables padding OBUs. The bitstream produced in both cases is completely valid, but Qualcomm's decoder does not properly implement the AV1 specification and fails to decode a valid bitstream if it contains padding OBUs.

I confirmed the issue was only the padding OBUs by patching FFmpeg to avoid setting NV_ENC_CONFIG_AV1::enableBitstreamPadding = 1. This was enough to enable my Fold 6 to decode the stream successfully.

@ReenigneArcher
Copy link
Member

Great!, should i add something to the sunshine.conf file?

There's no config option for this. It will be fixed in a future release.

@ghost ghost changed the title Unable to decode AV1 stream generated by NVENC on sunshine linux in capable hardware - Nov 23, 2024
@ReenigneArcher ReenigneArcher changed the title - Unable to decode AV1 stream generated by NVENC on sunshine linux in capable hardware Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants