【发布时间】:2015-03-05 06:47:02
【问题描述】:
from gi.repository import GdkX11, GstVideo
p = 'v4l2src ! tee name=t ! queue ! videoconvert ! zbar ! fakesink t. ! queue ! videoconvert ! xvimagesink'
self.a = a = Gst.parse_launch(p)
错误:
self.a = a = Gst.parse_launch(p)
GLib.Error: gst_parse_error: no element "zbar" (1)
按照python gstreamer script error message no element "h264parse"的答案,我找到了zbar is a part of gst-plugins-bad,但我已经安装了gst-plugins-bad 1.4.5-1。那么为什么我仍然收到此错误?
如果有帮助,我正在使用 Arch Linux。
【问题讨论】:
-
是c层出错吗?你需要从 pacman 或 aur 安装 zbar 包吗?
标签: python gstreamer archlinux python-gstreamer