Jetson Xavier AGX open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1,

Jetson Xavier AGX [ WARN:0] global /home/lijinzhe/opencv/opencv-4.1.1/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
[ WARN:0] global /home/lijinzhe/opencv/opencv-4.1.1/modules/videoio/src/cap_gstreamer.cpp (1757) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Internal data stream error.
[ WARN:0] global /home/lijinzhe/opencv/opencv-4.1.1/modules/videoio/src/cap_gstreamer.cpp (515) startPipeline OpenCV | GStreamer warning: unable to start pipeline 问题)

Jetson Xavier,AGX 罗技C930C摄像头,opencv4.1, tensorflow2.4,JetPack4.5
首先可以查看一下摄像头是否在位,命令行输入

ls /dev/video*

我的虽然是外部的摄像头,但是显示的是video1

而其实问题并没有那么复杂,只是因为你的帧率设置的太高了而已,把它改为

capture.set(cv.CAP_PROP_FPS, 30)

或者更低的帧率即可

上一篇:关于流媒体的简介及技术梳理


下一篇:【JVM】上帝视角看JVM内存模型,分而治之论各模块详情