<div dir="ltr">I got that after some time. Sorry to bother you. <br>I am using a data probe now. <br><br>Thanks &amp; regards,<br>Nikhil.<br><br><div class="gmail_quote">On Wed, Apr 22, 2009 at 1:54 PM, vikram kf <span dir="ltr">&lt;<a href="mailto:ved.kpl@gmail.com">ved.kpl@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You can&#39;t link the tee with plain gst_element_link().<br>
Tee has request src pads, i.e the pads arent there at the element creation.<br>
do gst-inspect tee for more details.<br>
<br>
Use gst_element_get_request_pad() followed by gst_pad_link().<br>
<br>
<br>
On Wed, Apr 22, 2009 at 12:48 PM, nikhil almalkar<br>
<div><div></div><div class="h5">&lt;<a href="mailto:nikhil.almalkar@gmail.com">nikhil.almalkar@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; I need some help with using tee element.<br>
&gt;<br>
&gt; The code is as follows, I&#39;m not sure about the linking part.<br>
&gt;             gst_element_link (source, id) //// id = identity element.<br>
&gt;             gst_element_link (id,flt1);<br>
&gt;             gst_element_link (flt1,encoder);<br>
&gt;<br>
&gt;             gst_element_link_many (encoder, te,sink,NULL);<br>
&gt;             gst_element_link (te,decoder);<br>
&gt;             gst_element_link_many (decoder,ffmpegcolorcon,scale,<br>
&gt; videosink,NULL);<br>
&gt;<br>
&gt;<br>
&gt; the pipelines when executed without the tee, (pointed by &#39;te&#39;) work fine<br>
&gt; with either sink or videosink... I am not sure abt the tee usage...<br>
&gt;<br>
&gt;<br>
&gt; Thanks &amp; Regards,<br>
&gt; Nikhil.<br>
&gt;<br>
&gt; On Tue, Apr 21, 2009 at 5:17 PM, vikram kf &lt;<a href="mailto:ved.kpl@gmail.com">ved.kpl@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; You will have to put the encoder after the tee.<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Apr 21, 2009 at 4:54 PM, nikhil almalkar<br>
&gt;&gt; &lt;<a href="mailto:nikhil.almalkar@gmail.com">nikhil.almalkar@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; The pointer was getting corrupted somehow. Thanks for the help.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; There is one particular problem that I need some help with. I want to<br>
&gt;&gt; &gt; put<br>
&gt;&gt; &gt; the encoded yuv stream into a file sink and display it using ximagesink.<br>
&gt;&gt; &gt; I<br>
&gt;&gt; &gt; guess I need to use a tee here.. If someone who has already done this<br>
&gt;&gt; &gt; can<br>
&gt;&gt; &gt; help me with the pipeline, that will be great.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Right now, I have kept the pipeline same before tee .... i.e. up to the<br>
&gt;&gt; &gt; encoder.. then the tee is linked to two seperate paths. This does not<br>
&gt;&gt; &gt; seem<br>
&gt;&gt; &gt; to work.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Any help will be appreciated.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks &amp; regards,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Nikhil.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Tue, Apr 21, 2009 at 3:33 PM, vikram kf &lt;<a href="mailto:ved.kpl@gmail.com">ved.kpl@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hi,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Try typcasting to gchar*<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; g_object_set(G_OBJECT(fsink), &quot;location&quot;, (gchar*)argv[1], NULL);<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Tue, Apr 21, 2009 at 2:45 PM, nikhil almalkar<br>
&gt;&gt; &gt;&gt; &lt;<a href="mailto:nikhil.almalkar@gmail.com">nikhil.almalkar@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt; Hi all,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; I am trying to set a char pointer to the location of sink file. I<br>
&gt;&gt; &gt;&gt; &gt; think<br>
&gt;&gt; &gt;&gt; &gt; there is some proble with the encoding, as the location that my sink<br>
&gt;&gt; &gt;&gt; &gt; refer&#39;s<br>
&gt;&gt; &gt;&gt; &gt; to is not what i insert. It actually is grbage..<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Gtk-Message: The filename &quot;\360\374O\t\230\375O\t&quot; couldn&#39;t be<br>
&gt;&gt; &gt;&gt; &gt; converted<br>
&gt;&gt; &gt;&gt; &gt; to<br>
&gt;&gt; &gt;&gt; &gt; UTF-8.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; This is when I set G_FILENAME_ENCODING = UTF-8<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Also G_FILENAME_ENCODING = ISO-8859-1 is not working.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; I am using fedora 10.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Thanks &amp; Regards,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Nikhil.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; ------------------------------------------------------------------------------<br>
&gt;&gt; &gt;&gt; &gt; Stay on top of everything new and different, both inside and<br>
&gt;&gt; &gt;&gt; &gt; around Java (TM) technology - register by April 22, and save<br>
&gt;&gt; &gt;&gt; &gt; $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.<br>
&gt;&gt; &gt;&gt; &gt; 300 plus technical and hands-on sessions. Register today.<br>
&gt;&gt; &gt;&gt; &gt; Use priority code J9JMT32. <a href="http://p.sf.net/sfu/p" target="_blank">http://p.sf.net/sfu/p</a><br>
&gt;&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt; gstreamer-devel mailing list<br>
&gt;&gt; &gt;&gt; &gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt;&gt; &gt;&gt; &gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; ------------------------------------------------------------------------------<br>
&gt;&gt; &gt;&gt; Stay on top of everything new and different, both inside and<br>
&gt;&gt; &gt;&gt; around Java (TM) technology - register by April 22, and save<br>
&gt;&gt; &gt;&gt; $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.<br>
&gt;&gt; &gt;&gt; 300 plus technical and hands-on sessions. Register today.<br>
&gt;&gt; &gt;&gt; Use priority code J9JMT32. <a href="http://p.sf.net/sfu/p" target="_blank">http://p.sf.net/sfu/p</a><br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; gstreamer-devel mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt;&gt; &gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ------------------------------------------------------------------------------<br>
&gt;&gt; &gt; Stay on top of everything new and different, both inside and<br>
&gt;&gt; &gt; around Java (TM) technology - register by April 22, and save<br>
&gt;&gt; &gt; $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.<br>
&gt;&gt; &gt; 300 plus technical and hands-on sessions. Register today.<br>
&gt;&gt; &gt; Use priority code J9JMT32. <a href="http://p.sf.net/sfu/p" target="_blank">http://p.sf.net/sfu/p</a><br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; gstreamer-devel mailing list<br>
&gt;&gt; &gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt;&gt; &gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------------------------------------------------------<br>
&gt;&gt; Stay on top of everything new and different, both inside and<br>
&gt;&gt; around Java (TM) technology - register by April 22, and save<br>
&gt;&gt; $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.<br>
&gt;&gt; 300 plus technical and hands-on sessions. Register today.<br>
&gt;&gt; Use priority code J9JMT32. <a href="http://p.sf.net/sfu/p" target="_blank">http://p.sf.net/sfu/p</a><br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; gstreamer-devel mailing list<br>
&gt;&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------------<br>
&gt; Stay on top of everything new and different, both inside and<br>
&gt; around Java (TM) technology - register by April 22, and save<br>
&gt; $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.<br>
&gt; 300 plus technical and hands-on sessions. Register today.<br>
&gt; Use priority code J9JMT32. <a href="http://p.sf.net/sfu/p" target="_blank">http://p.sf.net/sfu/p</a><br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<br>
<br>
------------------------------------------------------------------------------<br>
Stay on top of everything new and different, both inside and<br>
around Java (TM) technology - register by April 22, and save<br>
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.<br>
300 plus technical and hands-on sessions. Register today.<br>
Use priority code J9JMT32. <a href="http://p.sf.net/sfu/p" target="_blank">http://p.sf.net/sfu/p</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>