Driver does not support the required nvenc API version. Required: 8.0 Found: 7.1
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
i have downloaded and installed cuda_8.0.61_375.26_linux.run also if it’s matter i have nvidia gtx 960 and my os is ubuntu 16.04
this is the output from nvcc
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
I have the same error here! The driver version is 375.66, for a Tesla M60 card (the lastest driver available right now). Cuda Toolkit 8 is installed.
[h264_nvenc @ 0x43b7da0] Driver does not support the required nvenc API version. Required: 8.0 Found: 7.1
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
nvidia-smi
Thu May 18 21:52:23 2017
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.66 Driver Version: 375.66 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla M60 Off | A2CC:00:00.0 Off | Off |
| N/A 40C P0 39W / 150W | 0MiB / 8123MiB | 7% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
The reason for the posting (not stated clearly) is that currently, there is no newer driver posted for that particular GPU.
The options are to wait until NVIDIA gets around to posting a newer driver for that particular GPU (M60), or else use a different GPU that currently has a NVENC 8.0 compatible driver posted.
Hi Robert, I hope you are doing great. I am running one of the samples in Nvidia SDK 8.2.15 for encoding. I get the following error
" LoadNvEncApi : NvEncodeAPIGetMaxSupportedVersion(&version) returned error 24957824 at …/Video_Codec_SDK_8.2.15/Samples/NvCodec/NvEncoder/NvEncoder.cpp:92"
I have Nvidia 396.26 drivers installed. My GPU is Nvidia 1050 Ti. can you help me with this issue? Thank you.
Mizbauddin, can you please check if the version you mentioned is correct: 396.26? If it is, can you please point out where you might have installed this from?
Also, is this Windows or Linux?
I cannot see this version in drivers posted for either OS.
I know that this thread is pretty old, but I got the same issue when trying to get ffmpeg + CUDA working on cloud with docker container, so decided to share what worked for me.
Make sure that your CUDA, driver and ffmpeg versions are compatible.
The official guide for Using FFmpeg with NVIDIA GPU Hardware Acceleration from NVIDIA uses the latest nv-codec-headers, which at this time (version 13.0.19.0) requires drivers with version 570.0 or newer. So, if you have older driver version, you will need to work on earlier nv-codec-headers release. For me it was driver 550, so needed to go with version n12.2.72.0. To do this just specify release when cloning nv-codec-headers from official tutorial:
Also, if that doesnt help, and you are working with docker, make sure that you use correct NVIDIA CUDA docker base image. For the version 550 of the driver, nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04 worked for me