Skip to content

‘ngx-vsr’ fails on NVEncC 9.01 with RTX 5060 Laptop #724

@WY-WY-W

Description

@WY-WY-W

Bug Description

When attempting to use --vpp-resize algo=ngx-vsr for video upscaling with NVEncC v9.01 on an RTX 5060 Laptop, the process fails. The same command and hardware setup work correctly with NVEncC v8.11. The failure seems related to the ngx-vsr feature handling in the newer version.

Steps to Reproduce

  1. Use a system with an NVIDIA RTX 5060 Laptop GPU.

  2. Run the following command with NVEncC v9.01:

    NVEncC64.exe --avhw --audio-copy -c hevc --output-res 2556x1080 --preset P7 --qvbr 22 --max-bitrate 160000 --output-depth 10 --multipass 2pass-full --lookahead 32 --lookahead-level 3 --ref 4 --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --master-display "G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,1)" --max-cll 0,0 --vpp-ngx-truehdr maxluminance=500 --vpp-resize algo=ngx-vsr,vsr-quality=4 -i "C:\target.mkv" -o "C:\destination.mkv"

Expected Behavior

The video should be upscaled successfully, and the output file C:\destination.mkv should be created, as was the case with NVEncC v8.11.

Actual Behavior

The encoding process fails shortly after starting, and no output file is written correctly. The log indicates an error with the ngx-vsr filter.

Log Output

ngx-vsr: Failed to process frame: NVSDK NGX ERR: Feature with provided handle does not exist.
resize: Error while running filter "ngx-vsr".
CUDA: Error while running filter "resize".
Break in task CUDA: NVSDK NGX ERR: Feature with provided handle does not exist.
NVDEC: in 0, out 1, outQeueue size: 0.
AUDIO: in 1, out 1, outQeueue size: 0.
CHECKPTS: in 1, out 1, outQeueue size: 0.
CUDA: in 0, out 0, outQeueue size: 0, frame release: 1.
NVENC: in 0, out 0, outQeueue size: 0.
avout: File header not written, unexpected error!
...
avout: failed to write header for output file: Invalid data found when processing input
encoded 0 frames, 0.00 fps, 0.00 kbps, 0.00 MB
encode time 0:00:01, CPULoad: 2.1%

Environment

  • NVEncC Version: 9.01
  • GPU: NVIDIA RTX 5060 Laptop
  • Operating System: Windows 11
  • Previous Working NVEncC Version: 8.11

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