Parth
Parth

Reputation: 759

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)

Error:

    self.a = a = Gst.parse_launch(p)
GLib.Error: gst_parse_error: no element "zbar" (1)

Following the answer to python gstreamer script error message no element "h264parse", I found zbar is a part of gst-plugins-bad, but I've already installed gst-plugins-bad 1.4.5-1. So why am I still getting this error?

I'm using Arch Linux, if it helps.

Upvotes: 0

Views: 997

Answers (1)

Parth
Parth

Reputation: 759

It's a bug in gst-plugins-bad Arch package. Just add zbar to depends in PKGBUILD, build it and install.

Upvotes: 1

Related Questions