Toybrick

无法使用 openccv 打开视频文件

linuxsky

注册会员

积分
151
楼主
发表于 2019-2-16 11:11:28    查看: 8201|回复: 8 | [复制链接]    打印 | 显示全部楼层
[toybrick@MiWiFi-R2D-srv Linux_rknn_api_sdk_new]$ ./a.out
Failed to query video capabilities: Inappropriate ioctl for device
libv4l2: error getting capabilities: Inappropriate ioctl for device
VIDEOIO ERROR: V4L: device ./1550279248737094.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

open mp4 file failed!
[toybrick@MiWiFi-R2D-srv Linux_rknn_api_sdk_new]$

回复

使用道具 举报

linuxsky

注册会员

积分
151
沙发
 楼主| 发表于 2019-2-18 21:24:15 | 显示全部楼层
chuyee 发表于 2019-2-18 04:10
dnf install gstreamer1-libav

这个问题我已经问过了哈,详见:http://t.rock-chips.com/forum.php?mod=vi ...

提示找不到这个包啊?确认没敲错?
回复

使用道具 举报

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

本版积分规则

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


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