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

set b_ref_mode=0 for ffmpeg NVENC encoder #2074

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

Xaphiosis
Copy link
Contributor

Older NVIDIA cards (e.g. GTX 1650) don't support this feature, and
ffmpeg somehow force-enabled it, despite docs saying it should be set to
"auto", and --help saying the default is "disabled". Setting it to
"disabled" in the encoder works around this issue.

ALVR does not currently use multiple B frames, so there should be no
difference and no obvious difference was visible when testing.

The feature is documented as:
"Using B frame as a reference improves subjective and objective encoded
quality with no performance impact. Hence the users enabling multiple B
frames are strongly recommended to enable this feature."


Wise man @nowrep said: "just disable it, it's ffmpeg or nvenc bug (it shouldn't explode on this not being supported when b-frames are not used)"

See #2064 for someone saying this workaround does work for them on an older card. I didn't notice anything different on a 3090 with 550 drivers and cuda 12.4.

Older NVIDIA cards (e.g. GTX 1650) don't support this feature, and
ffmpeg somehow force-enabled it, despite docs saying it should be set to
"auto", and --help saying the default is "disabled". Setting it to
"disabled" in the encoder works around this issue.

ALVR does not currently use multiple B frames, so there should be no
difference and no obvious difference was visible when testing.

The feature is documented as:
"Using B frame as a reference improves subjective and objective encoded
quality with no performance impact. Hence the users enabling multiple B
frames are strongly recommended to enable this feature."

Co-Authored-By: David Rosca <[email protected]>
@Vixea Vixea merged commit 109f394 into alvr-org:master Apr 20, 2024
6 checks passed
@zmerp zmerp mentioned this pull request May 4, 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 this pull request may close these issues.

3 participants