我有一个HikVision MV-CA050-20UC USB 相机(USB 3.0)。我想使用gstreamer在Ubuntu的Nvidia Jetson Nano上捕获视频。安装驱动 后,连接摄像头后出现(断开摄像头后也会消失)。/dev/video0
gst-launch-1.0 v4l2src device="/dev/video0" name=e ! 'video/x-raw, width=640, height=480' ! videoconvert ! 'video/x-raw, width=640, height=480, format=(string)YUY2' ! xvimagesink
或使用此命令
gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,framerate=30/1,width=1280,height=720 ! xvimagesink
它向我显示了这条消息,没有任何视频:
Setting pipeline to PAUSED ...
ERROR: Pipeline doesnt want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Error getting capabilities for device /dev/video0: It isnt a v4l2 driver. Check if it is a v4l1 driver.
Additional debug info:
v4l2_calls.c(94): gst_v4l2_get_capabilities (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: No such file or directory
Setting pipeline to NULL ...
Freeing pipeline ...
我确信v4l2安装正确。但它无法检测到插入的 USB 摄像头。
v4l2-ctl --all
VIDIOC_QUERYCAP: failed: No such file or directory
/dev/video0: not a v4l2 node
或者 1050Ti 系统(另一个系统)的这个结果:
Failed to query video capabilities: No such file or directory
libv4l2: error getting capabilities: No such file or directory
VIDIOC_QUERYCAP: failed: No such file or directory
/dev/video0: not a v4l2 node
也通过运行v4l2-ctl -d /dev/video0 --list-formats-ext
我得到了同样的信息。
Gstreamer 版本
gst-inspect-1.0 --version
gst-inspect-1.0 version 1.14.2
GStreamer 1.14.2
Unknown package origin
我该如何解决这个问题。提前致谢。