Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is is possible to use GStreamer without a GLib main loop?

Tags:

glib

gstreamer

I am trying to use GStreamer as a video backend for a softphone we are developing in house. Our softphone is not GLib based, has its own event loops. Is it possible to set up a gst pipeline and put into various states without having a GMainLoop?

like image 903
Atilla Filiz Avatar asked Oct 31 '12 12:10

Atilla Filiz


People also ask

What is GLib Mainloop?

The main event loop manages all the available sources of events for GLib and GTK applications. These events can come from any number of different types of sources such as file descriptors (plain files, pipes or sockets) and timeouts. New types of event sources can also be added using g_source_attach() .

What is bus in GStreamer?

A GStreamer bus takes care of forwarding messages from a pipeline.

How do I cancel GStreamer pipeline?

In order to stop a pipeline use the following command: pipeline_stop name Puts the pipeline named name in the NULL state.


1 Answers

Yes, the video streams work independetly, so even a "main loop" like sleep(10) will do the job. However, GLib is needed to capture any events or error messages from the gst pipeline.

like image 183
Atilla Filiz Avatar answered Sep 28 '22 00:09

Atilla Filiz