Unable to use gstreamer plugins as user

Hi,

Have been banging my head against the wall for a couple hours now, so time to post :-&

We have a third party Jetson nano with Jetpack 4.6 installed out of the box.

When I run gst-inspect as user, it cannot find the some of the modules we need and keeps spitting out errors and the plugins get blacklisted. On the devkit it works fine.

I’ve deleted the .cache/gstreamer-1.0 directory many times and I cannot reinstall the SDK as the device is already in the field in another country.

Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
Error: Can’t initialize nvrm channel
Error: Can’t initialize nvrm channel
Couldn’t create ddkvic Session: Cannot allocate memory
nvbuf_utils: Could not create Default NvBufferSession
nveglstreamsrc: nveglstreamsrc: nVidia EGL Stream
nvvideocuda: videocuda: CUDA Post processor
nvegltransform: nvegltransform: NvEGLTransform
nvvideosink: nvvideosink: nVidia Video Sink
nveglglessink: nveglglessink: EGL/GLES vout Sink
nvtee: nvtee: NvTee
staticelements: bin: Generic bin
staticelements: pipeline: Pipeline object

Total count: 17 plugins (10 blacklist entries not shown), 8 features

gst-inspect-1.0 -b
Blacklisted files:
libgstnvvidconv.so
libgstnvdrmvideosink.so
libgstnvjpeg.so
libgstnvcompositor.so
libgstnvv4l2camerasrc.so
libgstnvvideosinks.so
libgstnvarguscamerasrc.so
libgstnvivafilter.so
libgstomx.so
libgstnvvideo4linux2.so

Total count: 10 blacklisted files

But when I run it as root everything is ok:

gst-inspect-1.0
nveglstreamsrc: nveglstreamsrc: nVidia EGL Stream
nvvidconv: nvvidconv: NvVidConv Plugin
nvdrmvideosink: nvdrmvideosink: Nvidia Drm Video Sink
nvjpeg: nvjpegenc: JPEG image encoder
nvjpeg: nvjpegdec: JPEG image decoder
nvvideocuda: videocuda: CUDA Post processor
nvcompositor: nvcompositor: NvCompositor
nvv4l2camerasrc: nvv4l2camerasrc: NvV4l2CameraSrc
nvvideosinks: nv3dsink: Nvidia 3D sink
nvegltransform: nvegltransform: NvEGLTransform
nvvideosink: nvvideosink: nVidia Video Sink
nvarguscamerasrc: nvarguscamerasrc: NvArgusCameraSrc
nvivafilter: nvivafilter: NvIVAFilter Plugin
omx: omxmpeg4videodec: OpenMAX MPEG4 Video Decoder
omx: omxh264dec: OpenMAX H.264 Video Decoder
omx: omxh265dec: OpenMAX H.265 Video Decoder
omx: omxvp8dec: OpenMAX VP8 Video Decoder
omx: omxvp9dec: OpenMAX VP9 Video Decoder
omx: omxmpeg2videodec: OpenMAX MPEG2 Video Decoder
omx: omxwmvdec: OpenMAX WMV Video Decoder
omx: omxh264enc: OpenMAX H.264 Video Encoder
omx: omxh265enc: OpenMAX H.265 Video Encoder
omx: omxvp8enc: OpenMAX VP8 Video Encoder
omx: omxvp9enc: OpenMAX VP9 Video Encoder
omx: nvoverlaysink: OpenMax Video Sink
nveglglessink: nveglglessink: EGL/GLES vout Sink
nvvideo4linux2: nvv4l2decoder: NVIDIA v4l2 video decoder
nvvideo4linux2: nvv4l2h264enc: V4L2 H.264 Encoder
nvvideo4linux2: nvv4l2h265enc: V4L2 H.265 Encoder
nvvideo4linux2: nvv4l2vp8enc: V4L2 VP8 Encoder
nvvideo4linux2: nvv4l2vp9enc: V4L2 VP9 Encoder
nvtee: nvtee: NvTee
staticelements: bin: Generic bin
staticelements: pipeline: Pipeline object

Total count: 17 plugins, 34 features

The application needs to run as a user

To answer my own question:

the user wasn’t in the group “video”, did a usermod and it works!

Glad to know you found the answer.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.