Hello, tanks for your response, I&#39;m aware of GstParse, but I need a &#39;customization&#39; of this pipeline actually, and doing it by code, that&#39;s why I asked. I need to add subtitles and other time-based elements to an avi file.<br>
<br>This is my actual pipeline,<br><br>                               mad ---- ffdec_mpeg4 ----queue-----alsasink  //audio part<br><br>filescr---avidemux ----<br><br>                               queue---autovideosink  //video part<br>
<br><br>Thanks<br><br>Rossana<br><br><div class="gmail_quote">2011/11/26 Sean McNamara <span dir="ltr">&lt;<a href="mailto:smcnam@gmail.com">smcnam@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<div><div class="h5"><br>
On Sat, Nov 26, 2011 at 8:13 PM, Rossana Guerra<br>
&lt;<a href="mailto:guerra.rossana@gmail.com">guerra.rossana@gmail.com</a>&gt; wrote:<br>
&gt; Hello everyone, I need to pass this command line with some nuances, to code<br>
&gt; (c/c++):<br>
&gt; gst-launch textoverlay name=overlay ! ffmpegcolorspace ! videoscale !<br>
&gt; autovideosink filesrc location=movie.avi ! decodebin2 ! ffmpegcolorspace !<br>
&gt; overlay.video_sink filesrc location=movie.srt ! subparse ! overlay.text_sink<br>
&gt;<br>
&gt; How it could be? the linking issues mainly, I can&#39;t get how to to with 2<br>
&gt; filescr, one for the avi and the other one for the .srt.<br>
<br>
</div></div>If this pipeline does what you want in gst-launch, just take the<br>
pipeline description text and pass it to one of the GstParse functions<br>
(depending on how much control you need):<br>
<br>
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstParse.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstParse.html</a><br>

<br>
Unless you need to dynamically add/remove elements from the pipeline<br>
at runtime, you should never have to do any manual element<br>
linking/unlinking if you use GstParse. You just get a Bin or a<br>
Pipeline, set properties as needed, and control the state (paused,<br>
playing, etc) depending on what your app is supposed to do.<br>
<br>
HTH,<br>
<br>
Sean<br>
<br>
&gt; Thanks<br>
&gt;<br>
&gt; Rossana<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>