【问题标题】:GLib.Error: gst_parse_error: no element "zbar"GLib.Error:gst_parse_error:没有元素“zbar”
【发布时间】: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


【解决方案1】:

这是gst-plugins-bad Arch package 中的bug。只需在PKGBUILDbuildinstall 中将zbar 添加到depends

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-21
    • 1970-01-01
    • 2013-02-04
    • 2014-08-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多