mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
70cfc6cb4d
Original commit message from CVS: * new parser that uses flex and bison - doesn't do dynamic pipelines yet... * added GErrors to the gst_parse_launch[v] api * added --gst-mask-help command line option * fixed -o option for gst-launch * GstElement api change: - gst_element_get_pad - gst_element_get_request_pad, gst_element_get_static_pad - gst_element_get_compatible_pad - gst_element_get_compatible_static_pad, gst_element_get_compatible_request_pad - gst_element_[dis]connect -> gst_element_[dis]connect_pads - gst_element_[dis]connect_elements -> gst_element_[dis]connect * manual update * example, tool, and doc updates for the api changes - no more plugin docs in the core docs, plugins require a more extensive doc system
79 lines
1.7 KiB
Text
79 lines
1.7 KiB
Text
<!-- ##### SECTION Title ##### -->
|
|
GstParse
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
Parses commandline syntax into a pipeline.
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
This method allows you to create a pipeline from a command
|
|
line syntax description. The following example creates a simple
|
|
mp3 player.
|
|
<programlisting>
|
|
GstElement *pipeline;
|
|
|
|
/* create a pipeline to hold our elements */
|
|
pipeline = gst_pipeline_new ("launch");
|
|
|
|
/* build a pipeline in the pipeline */
|
|
gst_parse_launch ("filesrc location=some.mp3 ! mad ! osssink", GST_BIN (pipeline));
|
|
|
|
/* play the thing */
|
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
|
|
|
while (gst_bin_iterate (GST_BIN (pipeline)));
|
|
|
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
|
|
|
</programlisting>
|
|
</para>
|
|
|
|
<para>
|
|
Elements are separated with a <option>!</option>, properties are set with
|
|
<replaceable>property</replaceable>=<replaceable>value</replaceable>, specific pads
|
|
of an element are selected by replacing the <option>!</option> with
|
|
<replaceable>padname</replaceable><option>!</option>.
|
|
</para>
|
|
<para>
|
|
Elements can be added to a bin by embracing them with <option>()</option>. Threads
|
|
can be made with <option>{}</option>.
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### ENUM GstParseError ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@GST_PARSE_ERROR_SYNTAX:
|
|
@GST_PARSE_ERROR_NO_SUCH_ELEMENT:
|
|
@GST_PARSE_ERROR_NO_SUCH_PROPERTY:
|
|
@GST_PARSE_ERROR_CONNECT:
|
|
|
|
<!-- ##### FUNCTION gst_parse_launch ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@pipeline_description:
|
|
@error:
|
|
@Returns:
|
|
<!-- # Unused Parameters # -->
|
|
@cmdline:
|
|
@parent:
|
|
|
|
|
|
<!-- ##### FUNCTION gst_parse_launchv ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@argv:
|
|
@error:
|
|
@Returns:
|
|
|
|
|