1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Parses commandline syntax into a pipeline.
7 <!-- ##### SECTION Long_Description ##### -->
9 This method allows you to create a pipeline from a command
10 line syntax description. The following example creates a simple
15 /* create a pipeline to hold our elements */
16 pipeline = gst_pipeline_new ("launch");
18 /* build a pipeline in the pipeline */
19 gst_parse_launch ("disksrc location=some.mp3 ! mad ! osssink", GST_BIN (pipeline));
22 gst_element_set_state (pipeline, GST_STATE_PLAYING);
24 while (gst_bin_iterate (GST_BIN (pipeline)));
26 gst_element_set_state (pipeline, GST_STATE_NULL);
32 Elements are separated with a <option>!</option>, properties are set with
33 <replaceable>property</replaceable>=<replaceable>value</replaceable>, specific pads
34 of an element are selected by replacing the <option>!</option> with
35 <replaceable>padname</replaceable><option>!</option>.
38 Elements can be added to a bin by embracing them with <option>()</option>. Threads
39 can be made with <option>{}</option>.
42 <!-- ##### SECTION See_Also ##### -->
47 <!-- ##### ENUM GstParseErrors ##### -->
52 @GST_PARSE_ERROR_SYNTAX:
53 @GST_PARSE_ERROR_CREATING_ELEMENT:
54 @GST_PARSE_ERROR_NOSUCH_ELEMENT:
56 <!-- ##### FUNCTION gst_parse_launch ##### -->