Hello, tanks for your response, I'm aware of GstParse, but I need a 'customization' of this pipeline actually, and doing it by code, that'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"><<a href="mailto:smcnam@gmail.com">smcnam@gmail.com</a>></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>
<<a href="mailto:guerra.rossana@gmail.com">guerra.rossana@gmail.com</a>> wrote:<br>
> Hello everyone, I need to pass this command line with some nuances, to code<br>
> (c/c++):<br>
> gst-launch textoverlay name=overlay ! ffmpegcolorspace ! videoscale !<br>
> autovideosink filesrc location=movie.avi ! decodebin2 ! ffmpegcolorspace !<br>
> overlay.video_sink filesrc location=movie.srt ! subparse ! overlay.text_sink<br>
><br>
> How it could be? the linking issues mainly, I can't get how to to with 2<br>
> 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>
> Thanks<br>
><br>
> Rossana<br>
><br>
><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>
><br>
><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>