Python command line application.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Python command line application.

Andre Caldas
Hello!

What is the recommended way to use GStreamer + python without a GUI?

In special, I guess
self.pipeline.set_state(gst.STATE_PLAYING)
should only be called after the "main loop" has initiated, and not
from the __init__() function on the main class.


André Caldas.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Python command line application.

saepia
Andre, tell honestly, have you tried by yourself what is the effect of
trying to call self.pipeline.set_state(gst.STATE_PLAYING) after
mainloop has been started?

m.

2012/10/10 Andre Caldas <[hidden email]>:

> Hello!
>
> What is the recommended way to use GStreamer + python without a GUI?
>
> In special, I guess
> self.pipeline.set_state(gst.STATE_PLAYING)
> should only be called after the "main loop" has initiated, and not
> from the __init__() function on the main class.
>
>
> André Caldas.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Python command line application.

Andre Caldas
> Andre, tell honestly, have you tried by yourself what is the effect of
> trying to call self.pipeline.set_state(gst.STATE_PLAYING) after
> mainloop has been started?

Nope. I don't know how to do that! For that reason I asked!!! :-P

My problem is solved now. It had NOTHING TO DO with the main loop. I
had a "segmentation fault" and suspected about the main loop. Since I
didn't know about the relationship between gst and gtk, I decided to
ask. By the way, the "segumentation fault" was due to a "gnlfilesource
location=file_that_doesnt_exist.ogv". I would never suspect this could
cause a segmentation fault...

My question still makes sense to me, though:
"What is the recommended way to use GStreamer + python without a GUI?"

My "GUESS" that the main loop could cause problems when "playing" the
pipeline was wrong. But it was just a guess... :-P


Cheers,
André Caldas.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel