Toybrick

无法使用 openccv 打开视频文件

程子

中级会员

积分
386
楼主
发表于 2019-2-16 11:36:12 | 显示全部楼层

  1. >>> vc = cv2.VideoCapture('test.mp4')
  2. Failed to query video capabilities: Inappropriate ioctl for device
  3. libv4l2: error getting capabilities: Inappropriate ioctl for device
  4. VIDEOIO ERROR: V4L: device test.mp4: Unable to query number of channels
  5. OpenCV(3.4.1) Error: Unspecified error (GStreamer: your gstreamer installation is missing a required plugin
  6. ) in handlemessage, file /builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp, line 1869
  7. VIDEOIO(cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE, filename)): raised OpenCV exception:

  8. 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
  9. in function handlemessage
复制代码


同样情况,opencv是通过dnf安装的:

  1. dnf install python3-opencv
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表