Jump to content

GstInterpipe: Difference between revisions

no edit summary
No edit summary
Line 1: Line 1:
= Introduction =
= Introduction =
== Overview ==


GstInterpipe is a Gstreamer plug-in that allows communication between two independent pipelines. The concept behind the Interpipes Project is to simplify the construction of GStreamer applications, which often has the complexity of requiring dynamic pipelines. It transforms the construction process from low level pad probe manipulation to the higher level setting an element's parameter value.  Application developers don't get mired down in stalled pipelines because one branch of a complex pipeline changed state.
GstInterpipe is a Gstreamer plug-in that allows communication between two independent pipelines. The plug-in consists of two elements:
* interpipesink
* interpipesrc
 
Generally speaking, the idea is that given a source pipeline:
<pre style="background:#d6e4f1">
v4l2src ! interpipesink name=video_src
</pre>
 
Various sink pipelines may listen to it by:
<pre style="background:#d6e4f1">
interpipesrc name=live_preview listen-to=video_src ! xvimagesink
interpipesrc name=snapshot listen-to-video_src num-buffers=1 ! jpegenc ! filesink location=snapshot.jpeg
</pre>
 
The state of each pipeline is independent, each one can manage events by their own and 
 
 
 
The concept behind the Interpipes Project is to simplify the construction of GStreamer applications, which often has the complexity of requiring dynamic pipelines. It transforms the construction process from low level pad probe manipulation to the higher level setting an element's parameter value.  Application developers don't get mired down in stalled pipelines because one branch of a complex pipeline changed state.


For example, take a look in a complex pipeline like the one in the figure 1:
For example, take a look in a complex pipeline like the one in the figure 1:


[[File:Complex_pipeline.png|thumb|center|800px|Figure 1: Complex Pipeline]]
[[File:Complex_pipeline.png|thumb|center|800px|Figure 1: Complex Pipeline]]


The complex pipeline of figure 1 can be constructed into smaller, independent pipelines using interpipe elements as it is illustrated in the figure 2:
The complex pipeline of figure 1 can be constructed into smaller, independent pipelines using interpipe elements as it is illustrated in the figure 2:


[[File:Interpipe_pipeline.png|thumb|center|800px|Figure 2: Pipeline using Interpipes]]
[[File:Interpipe_pipeline.png|thumb|center|800px|Figure 2: Pipeline using Interpipes]]
This way the stream flow in a complex pipeline is reduced to simply set the correct listeners in the interpipe elements taking away the complexity of re-configuring pads or some other complex and error-prone logic.




This way the stream flow in a complex pipeline is reduced to simply set the correct listeners in the interpipe elements taking away the complexity of re-configuring pads or some other complex and error-prone logic.


== GStreamer Plug-In ==
== GStreamer Plug-In ==
The Interpipe plug-in


= Getting the Software =
= Getting the Software =
Cookies help us deliver our services. By using our services, you agree to our use of cookies.