[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
** Changed in: pygobject Status: Confirmed => Expired -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
Could fix be backported? Something abnormal is that we can not use python+gtk3+gstreamer on our pixel-perfect release... -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
Oleg, As far as I know, this fix can't be backported. I don't think it's possible to properly support GstMiniObject because it wasn't designed with introspection in mind (remember, the GStreamer 0.10 API is almost 7 years old now). I don't believe it's possible to fix this without breaking the 0.10 API. And this is just one of many issues that make it impossible to fully use GStreamer 0.10 from PyGI. However, I imagine that GStreamer 1.0 will be made available through at least precise-backports. As it's parallel installable with GStreamer 0.10, it's quite safe to backport as it wont effect any existing 0.10 using applications. I think a case could be made for even backporting GStreamer 1.0 packages into Universe, but I don't know what the policy is there. Anyway, I agree it's a bummer that Python + Gtk3 + GStreamer isn't usable in Precise. But g-i and PyGI are big transitions, and these things just take time. If you want to start porting your app, there are GStreamer 1.0 packages in Quantal and there are packages for Precise in the GStreamer dev PPA (also in the Novacut stable PPA now): https://wiki.ubuntu.com/Novacut/GStreamer1.0 Cheers! -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
Actually this issue with message::eos and other messages is fixed with Gstreamer 1.0 aka currently as Gstreamer 0.11.91-2 on Ubuntu 12.10 (note you need previously install gstreamer1.0 packages). You can verify this with this slightly modified code: #!/usr/bin/python3 from gi.repository import GObject GObject.threads_init() import gi try: gi.require_version('Gst', '1.0') except ValueError: print 'Could not find required Gstreamer 1.0 library.' sys.exit(1) from gi.repository import Gst Gst.init(None) mainloop = GObject.MainLoop() pipeline = Gst.Pipeline() def on_eos(bus, msg): print('eos: {!r}'.format(msg)) pipeline.set_state(Gst.State.NULL) mainloop.quit() def on_message(bus, msg): print('message: {!r}'.format(msg)) bus = pipeline.get_bus() bus.add_signal_watch() bus.connect('message::eos', on_eos) bus.connect('message', on_message) bus = pipeline.get_bus() bus.add_signal_watch() bus.connect('message::eos', on_eos) src = Gst.ElementFactory.make('videotestsrc', None) src.set_property('num-buffers', 10) sink = Gst.ElementFactory.make('fakesink', None) pipeline.add(src) pipeline.add(sink) src.link(sink) pipeline.set_state(Gst.State.PLAYING) mainloop.run() -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
Martin, Yeah, I haven't updated this bug for a while... I marked it as invalid for Ubuntu as this isn't an issue that gstreamer or python-gi can really fix anyway in 0.10. I've had great luck so far with gstreamer 0.11 and PyGI, and using Python3 to top it off. Thanks! ** Changed in: novacut Status: Triaged = Won't Fix ** Changed in: pygobject (Ubuntu) Status: Triaged = Invalid -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
** This bug is no longer a duplicate of bug 861663 Port to GStreamer 1.0 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
Just a note, gstreamer 0.10 works very poorly with GI. This has been worked on in gstreamer 0.11 git head, where it works reasonably well, but there is no chance that this will ever work in 0.10. Please use the static bindings in the python-gst0.10 package. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
** Changed in: novacut Milestone: 12.02 = 12.03 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
*** This bug is a duplicate of bug 861663 *** https://bugs.launchpad.net/bugs/861663 ** Changed in: novacut Milestone: 12.03 = None ** This bug has been marked a duplicate of bug 861663 Port to GStreamer 1.0 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
** Changed in: novacut Milestone: 12.01 = 12.02 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
** Changed in: novacut Milestone: 11.11 = 12.01 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
** Changed in: pygobject (Ubuntu) Status: Confirmed = Triaged -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
** Changed in: novacut Milestone: 11.10 = 11.11 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
Tried this in GStreamer 0.11 and apart from having to change gst.STATE_NULL to Gst.State.NULL, it seems to work fine there :) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: pygobject (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
** Also affects: novacut Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
I consider this a good test case for this bug. Same problem whether you use Python2 or Python3 (but for Novacut, we care about Python3). Currently this script will fail with: TypeError: unknown type GstMessage #!/usr/bin/python3 from gi.repository import GObject GObject.threads_init() from gi.repository import Gst Gst.init(None) mainloop = GObject.MainLoop() pipeline = Gst.Pipeline() def on_eos(bus, msg): print('eos: {!r}'.format(msg)) pipeline.set_state(gst.STATE_NULL) mainloop.quit() def on_message(bus, msg): print('message: {!r}'.format(msg)) bus = pipeline.get_bus() bus.add_signal_watch() bus.connect('message::eos', on_eos) bus.connect('message', on_message) bus = pipeline.get_bus() bus.add_signal_watch() bus.connect('message::eos', on_eos) src = Gst.ElementFactory.make('videotestsrc', None) src.set_property('num-buffers', 10) sink = Gst.ElementFactory.make('fakesink', None) pipeline.add(src) pipeline.add(sink) src.link(sink) pipeline.set_state(Gst.State.PLAYING) mainloop.run() ** Bug watch added: GNOME Bug Tracker #631901 https://bugzilla.gnome.org/show_bug.cgi?id=631901 ** Also affects: pygobject via https://bugzilla.gnome.org/show_bug.cgi?id=631901 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
-- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
** Changed in: pygobject Status: Unknown = Confirmed ** Changed in: pygobject Importance: Unknown = Medium -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 873712] Re: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal
** Changed in: novacut Importance: Undecided = High ** Changed in: novacut Status: New = Triaged ** Changed in: novacut Milestone: None = 11.10 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/873712 Title: Lack of GstMiniObject means Gst.Message is broken, can't get EOS signal To manage notifications about this bug go to: https://bugs.launchpad.net/novacut/+bug/873712/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs