Hello NVIDIA Developers,
I’m currently working on installing DeepStream 6.3 on my local Ubuntu system. My pipeline is set up as follows:
gst-launch-1.0 -e -vvv videotestsrc ! nvvideoconvert ! \
nvv4l2h264enc ! h264parse ! \
rtph264pay config-interval=1 pt=96 ! \
udpsink host=192.168.55.100 port=1234 sync=false
This pipeline operates as expected on a Jetson device and within the DeepStream 6.3 Triton container. However, while running on my machine, GStreamer produces this error:
Failed to query video capabilities: Invalid argument
libv4l2: error getting capabilities: Invalid argument
ERROR: from element /GstPipeline:pipeline0/nvv4l2h264enc:nvv4l2h264enc0:
Error getting capabilities for device '/dev/v4l2-nvenc':
It isn't a v4l2 driver. Check if it is a v4l1 driver.
Additional debug info:
v4l2_calls.c(94): gst_v4l2_get_capabilities (): /GstPipeline:pipeline0/nvv4l2h264enc:nvv4l2h264enc0:
I’ve used strace
, which indicates that the ioctl call on /dev/nvidia0
is failing (Notice the difference between the device name in the error and in the trace):
openat(AT_FDCWD, "/dev/nvidia0", O_RDWR) = 23
ioctl(23, VIDIOC_QUERYCAP, 0x7ffffffcf190) = -1 EINVAL (Invalid argument)
I’ve noticed that within the docker container, VIDIOC_QUERYCAP
is not being utilized at all. So, I’m left wondering, how should I configure nvv4l2h264enc
on a native system in order to use the correct v4l device?
I’d greatly appreciate any guidance or recommendations.
Best regards,
Serafin
Edit: My local setup
Hp Laptop with a A4500 in discrete only mode and ubunut 22.04
nvidia-smi
Mon Apr 15 14:12:43 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06 Driver Version: 545.29.06 CUDA Version: 12.3 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA RTX A4500 Laptop GPU Off | 00000000:01:00.0 On | Off |
| N/A 45C P8 21W / 80W | 1477MiB / 16384MiB | 9% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 3324 G /usr/lib/xorg/Xorg 363MiB |
| 0 N/A N/A 3538 G /usr/bin/gnome-shell 229MiB |
| 0 N/A N/A 44608 G ...irefox/4090/usr/lib/firefox/firefox 596MiB |
| 0 N/A N/A 386609 G ...yOnDemand --variations-seed-version 137MiB |
+---------------------------------------------------------------------------------------+