Re: [pygtk] PyObject fails with Gst on signal sync-message::element

2011-11-01 Thread Angel Guzman Maeso
2011/10/29 Pietro Battiston m...@pietrobattiston.it

 Il giorno sab, 29/10/2011 alle 10.57 +0200, Angel Guzman Maeso ha
 scritto:
  Please, anybody can help me? I search on pygstreamer and GIR files
  code and changelog and there is not reference for changes related with
  syn-message::element.

 Nothing to do with the This signal will not be emitted by default, you
 have to set up gst_bus_sync_signal_handler() as a sync handler if you
 want this signal to be emitted when a message is posted on the bus, like
 this: I read in the documentation?
 (just a guess, I'm not an expert about gstreamer)

 Pietro


Hi Pietro,

Thanks for your response.

Your response seems to be right, but it doesn't work on GTK3 with PyGi

This line should enable the signal for the emission.

bus.enable_sync_message_emission()

The Gnome Bug #631901 shows that there is a problem with the signals
emitted:

https://bugzilla.gnome.org/show_bug.cgi?id=631901

message::eos, message::error and sync-message::element are not emitted,
just message and sync-message without members.

Maybe it is a problem with MiniObject support through GI.

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMessage.html
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMiniObject.html#GstMiniObject

Using bus.connect('message', self.on_message)

and
def on_message(self, bus, message):
print('message: {!r}'.format(message))

it show this traceback on close:

Traceback (most recent call last):
  File test.py, line 62, in on_message
print('message: {!r}'.format(message))
TypeError: unknown type GstMessage

Also I found:

gst_bus_create_watch, since GSource aren't wrapped in pygtk
gst_bus_sync_signal_handler and gst_bus_async_signal_func since
these functions are used by the default bus handler anyway.

http://ftp.tuwien.ac.at/hci/freedesktop.org/gstreamer/gst-python/gst/gstbus.override,v
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] PyObject fails with Gst on signal sync-message::element

2011-11-01 Thread Tomeu Vizoso
Hi,

what version of GStreamer are you using? I think only 0.11 (future
1.0) can be used through introspection. There are other programs that
are being ported to introspection and that use GStreamer, such as
Pitivi, I would look at them for ideas.

Regards,

Tomeu

On Tue, Nov 1, 2011 at 12:05, Angel Guzman Maeso shaka...@gmail.com wrote:
 2011/10/29 Pietro Battiston m...@pietrobattiston.it

 Il giorno sab, 29/10/2011 alle 10.57 +0200, Angel Guzman Maeso ha
 scritto:
  Please, anybody can help me? I search on pygstreamer and GIR files
  code and changelog and there is not reference for changes related with
  syn-message::element.

 Nothing to do with the This signal will not be emitted by default, you
 have to set up gst_bus_sync_signal_handler() as a sync handler if you
 want this signal to be emitted when a message is posted on the bus, like
 this: I read in the documentation?
 (just a guess, I'm not an expert about gstreamer)

 Pietro


 Hi Pietro,

 Thanks for your response.

 Your response seems to be right, but it doesn't work on GTK3 with PyGi

 This line should enable the signal for the emission.

 bus.enable_sync_message_emission()

 The Gnome Bug #631901 shows that there is a problem with the signals
 emitted:

 https://bugzilla.gnome.org/show_bug.cgi?id=631901

 message::eos, message::error and sync-message::element are not emitted, just
 message and sync-message without members.

 Maybe it is a problem with MiniObject support through GI.

 http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMessage.html
 http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMiniObject.html#GstMiniObject

 Using bus.connect('message', self.on_message)

 and
 def on_message(self, bus, message):
     print('message: {!r}'.format(message))

 it show this traceback on close:

 Traceback (most recent call last):
   File test.py, line 62, in on_message
     print('message: {!r}'.format(message))
 TypeError: unknown type GstMessage

 Also I found:

 gst_bus_create_watch, since GSource aren't wrapped in pygtk
 gst_bus_sync_signal_handler and gst_bus_async_signal_func since
 these functions are used by the default bus handler anyway.

 http://ftp.tuwien.ac.at/hci/freedesktop.org/gstreamer/gst-python/gst/gstbus.override,v


 ___
 pygtk mailing list   pygtk@daa.com.au
 http://www.daa.com.au/mailman/listinfo/pygtk
 Read the PyGTK FAQ: http://faq.pygtk.org/

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] PyObject fails with Gst on signal sync-message::element

2011-11-01 Thread Angel Guzman Maeso
2011/11/1 Tomeu Vizoso to...@sugarlabs.org

 Hi,

 what version of GStreamer are you using? I think only 0.11 (future
 1.0) can be used through introspection. There are other programs that
 are being ported to introspection and that use GStreamer, such as
 Pitivi, I would look at them for ideas.

 Regards,

 Tomeu


Hi, I am using Ubuntu 10.10 Oneiric. The default version of GStreamer seems
to be 0.10

$ ls /usr/share/gir-1.0/ | grep Gst
Gst-0.10.gir
GstApp-0.10.gir
GstAudio-0.10.gir
GstBase-0.10.gir
GstCheck-0.10.gir
GstController-0.10.gir
GstFft-0.10.gir
GstInterfaces-0.10.gir
GstNet-0.10.gir
GstNetbuffer-0.10.gir
GstPbutils-0.10.gir
GstRiff-0.10.gir
GstRtp-0.10.gir
GstRtsp-0.10.gir
GstSdp-0.10.gir
GstTag-0.10.gir
GstVideo-0.10.gir

Where I can find 0.11 (1.0) for download and compile on Ubuntu? I need to
fix this ASAP (I am doing a app for my dissertation).
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] PyObject fails with Gst on signal sync-message::element

2011-11-01 Thread Tomeu Vizoso
On Tue, Nov 1, 2011 at 19:37, Angel Guzman Maeso shaka...@gmail.com wrote:
 Where I can find 0.11 (1.0) for download and compile on Ubuntu? I need to
 fix this ASAP (I am doing a app for my dissertation).

If you are in such a hurry, may be better to stay with the old static bindings.

Regards,

Tomeu
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] PyObject fails with Gst on signal sync-message::element

2011-11-01 Thread Angel Guzman Maeso
2011/11/1 Tomeu Vizoso to...@sugarlabs.org

 On Tue, Nov 1, 2011 at 19:37, Angel Guzman Maeso shaka...@gmail.com
 wrote:
  Where I can find 0.11 (1.0) for download and compile on Ubuntu? I need to
  fix this ASAP (I am doing a app for my dissertation).

 If you are in such a hurry, may be better to stay with the old static
 bindings.

 Regards,

 Tomeu


But all my app already works with Gtk3 (it took me a week) and I want use
GTK3, so if it is needed compile new sources no problem for me, just I need
the info.

Could you provide me more info about 0.11?

I clone this repo:

git clone git://anongit.freedesktop.org/gstreamer/gst-python
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/