I am trying to use hardware accelerated ffmpeg to encode videos with nvenc in a Docker container with cuda base image on Linux Distro. I see the nvenc unloaded without any error and encoding throws error.
Actually the Issue is with libnvidia-encode.so, WSL2 architecture doesn’t need NVidia drivers to be on host(WSL Linux Distro), but to be downloaded on Windows only. These encoders doesn’t come with the WSL supported NVidia drivers. So I have to install them separately on WSL Linux Distro and inside my docker container(cuda based image with video processing enabled), it mounts the libnvidia-encode.so file to container which uses it for building ffmpeg. It does detect the encoders .so files but unloads it, may be due to some conflict, which I assume can be WSL-CUDA specific error, since it works fine on my Linux VM.