0
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是 的一部分gst-plugins-bad,但我已经安装了gst-plugins-bad 1.4.5-1。那么为什么我仍然收到此错误?

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

4

1 回答 1

1

这是Arch 包中的一个错误。只需添加,构建安装 _gst-plugins-badzbardependsPKGBUILD

于 2015-03-04T22:47:02.083 回答