GLib.Error: gst_parse_error: no element "zbar"

GLib.Error: gst_parse_error: no element "zbar"

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", I found zbar is a part of gst-plugins-bad 的回答,但我已经安装了 gst-plugins-bad 1.4.5-1。那么为什么我仍然收到此错误?

如果有帮助,我正在使用 Arch Linux。

这是一个bug in gst-plugins-bad Arch package. Just add zbar to depends in PKGBUILD, build it and install