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。