Skip to content

NVIDIA Video Codec SDK unreliability with variable bitrate (reconfigure encoder) #5

@yuv418

Description

@yuv418

When trying to update the encoder and change the bitrate based on congestion information, we get an "invalid version." (NV_ENC_ERR_INVALID_VERSION).

This used to not happen when we used Video Codec SDK 12.0. On 13.0 and 12.1.x, this persists.

Analysis:

  • Call NvEncReconfigureEncoder
  • NvEncReconfigureEncoder checks versioning info for NV_ENC_RECONFIGURE_PARAMS
  • A function is called from here, which checks NV_ENC_INTIALIZE_PARAMS's version.
  • A function is called from here, which checks NV_ENC_CONFIG's version. This version is wrong sometimes, leading to a failure.

The issue seems to be NV_ENC_CONFIG, which seems to have a different version number on every run. Very weird; this is almost certainly the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions