Toybrick

标题: Opencv读取视频报错 [打印本页]

作者: qqqqqq    时间: 2019-11-19 17:12
标题: Opencv读取视频报错
Failed to query video capabilities: Inappropriate ioctl for device
libv4l2: error getting capabilities: Inappropriate ioctl for device
VIDEOIO ERROR: V4L: device video/20191111_1914_01.avi: Unable to query number of channels
OpenCV(3.4.1) Error: Unspecified error (GStreamer: your gstreamer installation is missing a required plugin
) in handlemessage, file /builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp, line 1869
VIDEOIO(cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE, filename)): raised OpenCV exception:

OpenCV(3.4.1) /builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp:1869: error: (-2) GStreamer: your gstreamer installation is missing a required plugin
in function handlemessage

这是什么问题呀?
我用一下命令装过插件:



作者: qqqqqq    时间: 2019-11-19 17:38
已解决,不能读avi,读mp4就没问题了...
作者: SodrSnne    时间: 2019-12-12 13:05
同样的问题,请问你解决了吗
作者: appleUncle    时间: 2019-12-27 10:19
你这个就是opencv没有装好,用dnf install安装会莫名其妙出各种错,也出现过你这种错,我用源码安装就没问题了,可以参考这篇博文https://blog.csdn.net/sac761/article/details/103726065




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3