GStreamer Daemon - Interacting with Pipelines: Difference between revisions

From RidgeRun Developer Wiki
(Created page with "This wiki describes the basics on how to interact with GStreamer pipelines. Specifically, how to create new pipelines, change their state, list existing pipelines and finally...")
 
No edit summary
Line 1: Line 1:
{{Gstd-1.0 Page|||
This wiki describes the basics on how to interact with GStreamer pipelines. Specifically, how to create new pipelines, change their state, list existing pipelines and finally destroy them. You'll find that the family of commands used to interact with pipelines are prefixed with '''pipeline_<action>'''.  
This wiki describes the basics on how to interact with GStreamer pipelines. Specifically, how to create new pipelines, change their state, list existing pipelines and finally destroy them. You'll find that the family of commands used to interact with pipelines are prefixed with '''pipeline_<action>'''.  


Line 9: Line 10:


For example:
For example:
 
{{msgnw:Gstd-1.0 Gstd Shell||
pipeline_create p1 videotestsrc ! autovideosink
pipeline_create p2 playbin
pipeline_create p3 mpegtsmux name=mux videotestsrc ! x264enc ! mux. audiotestsrc ! avenc_aac ! mux. mux. ! filesink location=test.ts
}}
would create respectively:
# A pipeline named ''p1'' consisting on a simple videotestsrc display
# A pipeline named ''p2'' consisting on a single element (playbin), which is enough to do playback of a file
# A pipeline named ''p3'' consisting on an audio+video transport stream video recording.




Line 22: Line 31:


== List Pipelines ==
== List Pipelines ==
}}

Revision as of 21:17, 19 May 2017



Home


This wiki describes the basics on how to interact with GStreamer pipelines. Specifically, how to create new pipelines, change their state, list existing pipelines and finally destroy them. You'll find that the family of commands used to interact with pipelines are prefixed with pipeline_<action>.

Create Pipelines

In order to create a pipeline use the following command:

 pipeline_create name description
     Creates a new pipeline named after name using the description gst-launch syntax.

For example: &rArr; ''Gstd Commands:'' <syntaxhighlight lang="bash" line="line" style="background-color:lavender"> {{{1}}} </syntaxhighlight> [[Category:GStreamer Daemon]] would create respectively:

  1. A pipeline named p1 consisting on a simple videotestsrc display
  2. A pipeline named p2 consisting on a single element (playbin), which is enough to do playback of a file
  3. A pipeline named p3 consisting on an audio+video transport stream video recording.


Play Pipelines

Pause Pipelines

Stop Pipelines

Delete Pipelines

List Pipelines




Home