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

Hardware Decode (--avhw) fails when source is AV1 #445

Closed
Vrael0n opened this issue Dec 30, 2022 · 4 comments
Closed

Hardware Decode (--avhw) fails when source is AV1 #445

Vrael0n opened this issue Dec 30, 2022 · 4 comments

Comments

@Vrael0n
Copy link

Vrael0n commented Dec 30, 2022

Using the hardware decode flag on an AV1 video causes an error. Using software decode (--avsw) works.

Error:

cuvid: cuvidParseVideoData error
failed to init decoder.

Environment Info:
NVEncC (x64) 7.08 (r2398) by rigaya, Dec 29 2022 09:40:33 (VC 1929/Win) [NVENC API v12.0, CUDA 10.1]
OS : Windows 10 x64 (19044) [UTF-8]
CPU: 13th Gen Intel Core i5-13600K [5.12GHz] (6C/12T)
RAM: Used 9499 MB, Total 32532 MB

GPU Info:
Nvidia Driver Version 527.56
#0: NVIDIA GeForce RTX 4090 (16384 cores, 2520 MHz)[PCIe4x16][527.56]
Avaliable Codec(s)
H.264/AVC
H.265/HEVC
AV1

Command:
NVEncC64.exe --avhw --codec av1 --preset P7 --profile main --tier 1 --output-depth 10 --qvbr 20 --max-bitrate 800000 --aq --aq-temporal --mv-precision Q-pel --lookahead 32 --output-buf 32 --colorrange auto --colormatrix auto --colorprim auto --transfer auto --max-cll copy --master-display copy --audio-copy -i "E:\OBS Capture\2022-12-29 05-55-38 ffmpeg copy trim 3s.mkv" -o "E:\OBS Capture\2022-12-29 05-55-38 ffmpeg copy trim 3s NV-AV1.mkv"

Source video:
https://drive.google.com/file/d/1C0PK-6GOAWbyyo6TioZgmTdNUGGC2o_t/view?usp=share_link

Debug log:
log.txt

@Vrael0n
Copy link
Author

Vrael0n commented Dec 30, 2022

I have verified my GPU can hardware decode this video in MPV
image
Light level blowout because Windows screenshot does not support HDR

@rigaya
Copy link
Owner

rigaya commented Dec 31, 2022

Yes, we currently have this problem.

I currently not being able to fix this, I might need it switch back to --avsw for now, and check further in the future.

@rigaya
Copy link
Owner

rigaya commented Dec 31, 2022

I think I've now found the cause. I'll have it fixed in the next release.

@rigaya
Copy link
Owner

rigaya commented Jan 16, 2023

Thank you for sharing the error with me.

NVEnc 7.09 shall fix AV1 hw decode error.

@Vrael0n Vrael0n closed this as completed Jan 16, 2023
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

No branches or pull requests

2 participants