GNOME Bugzilla – Bug 711456
Unable to access on_message msg values in gst-1.2
Last modified: 2013-11-08 06:24:11 UTC
After update to gstreamer-1.2, I am unable to access pmt, eit, tot and other message contents from python. I use this code: def on_message(self, bus, msg): msgs = msg.get_structure() msgn = msgs.get_name() if msgn=="pmt": print msgs.to_string() # process message In gst-1.0 result is: pmt, program-number=(uint)36, pcr-pid=(uint)561, version-number=(uint)11, streams=(structure){ "pid-511\,\ pid\=\(uint\)511\,\ stream-type\=\(uint\)3\,\ lang-code\=\(string\)CZE\,\ descriptors\=\(GValueArray\)NULL\;", "pid-521\,\ pid\=\(uint\)521\,\ stream-type\=\(uint\)6\,\ descriptors\=\(GValueArray\)NULL\;", "pid-561\,\ pid\=\(uint\)561\,\ stream-type\=\(uint\)2\,\ descriptors\=\(GValueArray\)NULL\;" }; In gst-1.2 result is: pmt, section=(GstMpegTsSection)NULL; In gst-1.0 I can parse this string and get required information (program number, description, time offsets, ... In gst-1.2 this ability is broken. Even if I am trying to use msgs.get_value("section") I get only an GstMpegTsSection object, which is an gobject.GBoxed object and has only ability to copy or free it. :-( I am not sure, if this is a gst-python problem but looks like this structure is NULL and there is nothing to get in any programming language.
You should be able to access the fields of that structure after importing the GstMpegts from gi.repository.
The structure is not really NULL, that's a bug/feature in the string serialisation code. I think you have to use the new mpegts library now to parse this info out.
Reopening due to missing typelib files after recompiling rpm from spec file. You should add this to buildrequires: BuildRequires: gobject-introspection-devel >= 1.31.1
We don't maintain the RPM files, that's something the distributions are doing.
There is a .spec file in gst-plugins-bad, which Christian maintains (and he's the only user I knkow of)
(In reply to comment #5) > There is a .spec file in gst-plugins-bad, which Christian maintains (and he's > the only user I knkow of) I tought this. I reported this in Fedora too. Fedora package has been updated.