nvcodec: features are not detected by user but are detected by root
Hi there. I was using GStreamer nvcodec without problems on Ubuntu 23. I upgraded to Ubuntu 24.04 and the problems started.
It seems that GStreamer NVCODEC works on root user only but not on standard one...
this is the output of the command from root user:
root@DeskStarLinux:/usr/lib/x86_64-linux-gnu/gstreamer-1.0# GST_DEBUG=nvdec*:6,nvenc*:6 gst-inspect-1.0 --plugin nvcodec
Plugin Details:
Name nvcodec
Description GStreamer NVCODEC plugin
Filename /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnvcodec.so
Version 1.24.2
License LGPL
Source module gst-plugins-bad
Documentation https://gstreamer.freedesktop.org/documentation/nvcodec/
Source release date 2024-04-09
Binary package GStreamer Bad Plugins (Ubuntu)
Origin URL https://launchpad.net/ubuntu/+source/gst-plugins-bad1.0
cudaconvert: CUDA colorspace converter
cudaconvertscale: CUDA colorspace converter and scaler
cudadownload: CUDA downloader
cudaipcsink: CUDA IPC Sink
cudaipcsrc: CUDA IPC Src
cudascale: CUDA video scaler
cudaupload: CUDA uploader
nvautogpuh264enc: NVENC H.264 Video Encoder Auto GPU select Mode
nvautogpuh265enc: NVENC H.265 Video Encoder Auto GPU select Mode
nvav1dec: NVDEC AV1 Decoder
nvcudah264enc: NVENC H.264 Video Encoder CUDA Mode
nvcudah265enc: NVENC H.265 Video Encoder CUDA Mode
nvh264dec: NVDEC H.264 Decoder
nvh264enc: NVENC H.264 Video Encoder
nvh265dec: NVDEC H.265 Decoder
nvh265enc: NVENC HEVC Video Encoder
nvjpegdec: NVDEC jpeg Video Decoder
nvjpegenc: NVIDIA JPEG Encoder
nvmpeg2videodec: NVDEC mpeg2video Video Decoder
nvmpeg4videodec: NVDEC mpeg4video Video Decoder
nvmpegvideodec: NVDEC mpegvideo Video Decoder
nvvp8dec: NVDEC VP8 Decoder
nvvp9dec: NVDEC VP9 Decoder
23 features:
+-- 23 elements
and same command from normal user:
sblantipodi@DeskStarLinux:/usr/lib/x86_64-linux-gnu/gstreamer-1.0$ GST_DEBUG=nvdec*:6,nvenc*:6 gst-inspect-1.0 --plugin nvcodec
Plugin Details:
Name nvcodec
Description GStreamer NVCODEC plugin
Filename /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnvcodec.so
Version 1.24.2
License LGPL
Source module gst-plugins-bad
Documentation https://gstreamer.freedesktop.org/documentation/nvcodec/
Source release date 2024-04-09
Binary package GStreamer Bad Plugins (Ubuntu)
Origin URL https://launchpad.net/ubuntu/+source/gst-plugins-bad1.0
Error: Unable to initialize CUDA library.
0 features:
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnvcodec.so is present in that directory and so other libs...
Any idea on how to solve this? Is this a new issue related to Ubuntu 24.04 LTS?