- >>> vc = cv2.VideoCapture('test.mp4')
- Failed to query video capabilities: Inappropriate ioctl for device
- libv4l2: error getting capabilities: Inappropriate ioctl for device
- VIDEOIO ERROR: V4L: device test.mp4: 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
复制代码
- dnf install python3-opencv
复制代码
chuyee 发表于 2019-2-18 04:10
dnf install gstreamer1-libav
这个问题我已经问过了哈,详见:http://t.rock-chips.com/forum.php?mod=vi ...
linuxsky 发表于 2019-2-18 21:24
提示找不到这个包啊?确认没敲错?
chuyee 发表于 2019-2-18 04:10
dnf install gstreamer1-libav
这个问题我已经问过了哈,详见:http://t.rock-chips.com/forum.php?mod=vi ...
- #rpm -Uvh <a href="http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm" target="_blank">http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm</a>
- #rpm -Uvh <a href="http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm" target="_blank">http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm</a>
复制代码
troy 发表于 2019-2-26 17:24
sudo dnf clean all
sudo dnf update
sudo dnf install gstreamer-rockchip
q5671229 发表于 2019-4-16 14:26
sudo dnf clean all
sudo dnf update
sudo dnf install gstreamer-rockchip
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |