Please re-read my previous email. I told you I attached the outputbin  as audio-sink of the playbin (playbin2) in this case. <br><br>Anyway
I think I have fixed the problem locking and unlocking the tee source
pad of the record bin when doing the location change of the filesink.<br>
<br>Thanks<br><br><div class="gmail_quote">On Sun, Apr 11, 2010 at 8:22 PM, Stefan Kost <span dir="ltr">&lt;<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</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;">
hi,<br>
<br>
Am 10.04.2010 01:00, schrieb J. Rios:<br>
<div class="im">&gt; I have done this<br>
&gt;<br>
&gt; One bin called outputbin with this elements<br>
&gt; tee ! queue ! audioconvert ! rgvolume ! level ! equalizer-10bands !<br>
&gt; limiter ! volume ! audioconvert ! autoaudiosink<br>
&gt;<br>
&gt; I attached this outputbin as &quot;audio-sink&quot; of a playbin<br>
&gt;<br>
&gt; so i have<br>
&gt; playbin ! outputbin<br>
<br>
</div>no no. Please re-read my previous email. Playbin/playbin2 are pipleines without<br>
pads, you cannot link to them. Please check the returns code of function calls<br>
in your code, you will see that the linke for playbin ! outputbin will fail.<br>
Pass outputbin to playbin (or better playbin2) by using the audio-sink property<br>
instead.<br>
<br>
Stefan<br>
<div class="im"><br>
&gt;<br>
&gt; I then do the recordbin on demand of the user with this elements<br>
&gt; queue ! audioconvert ! lame ! filesink<br>
&gt;<br>
&gt; I add this recordbin to the outputbin and link the tee with the queue of<br>
&gt; the recordbin<br>
&gt;<br>
&gt; the recording works correctly but while I im listening an online stream<br>
&gt; and recording I usually get this message (when running with --gst-debug=2)<br>
&gt;<br>
&gt; 0:02:58.811503553 32083      0x38845c0 WARN                   pulse<br>
&gt; pulsesink.c:523:gst_pulsering_stream_underflow_cb:&lt;autoaudiosink2-actual-sink-pulse&gt;<br>
&gt; Got underflow<br>
&gt;<br>
&gt; and playback stops.<br>
&gt;<br>
&gt; When its at this point the only way to restore is to restart the<br>
&gt; playback from start but I get some ref_count &gt; 0 warnings.<br>
&gt;<br>
&gt; I control when I receive BUFFERING messages and if so playback is<br>
&gt; restored fine. What Am I doing wrong?<br>
&gt;<br>
&gt; Also when I receive tags I want to change the output file of the<br>
&gt; filesink so I need to do this<br>
&gt;<br>
&gt; gst_element_set_state( recordbin, GST_STATE_NULL );<br>
&gt; g_object_set( filesink, &quot;location&quot;, uristr, NULL );<br>
&gt; gst_element_set_state( recording, GST_STATE_PLAYING );<br>
&gt;<br>
&gt; Its usually at this point when I get the underflow message but not always.<br>
&gt;<br>
&gt; Thanks in advance for your help<br>
&gt;<br>
&gt; J.Rios<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Apr 5, 2010 at 12:42 PM, Stefan Kost &lt;<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a><br>
</div><div><div></div><div class="h5">&gt; &lt;mailto:<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Am 03.04.2010 17:16, schrieb J. Rios:<br>
&gt;     &gt; Hello,<br>
&gt;     &gt;   I have right now this pipeline.<br>
&gt;     &gt;<br>
&gt;     &gt; playbin2 | audioconvert | rgvolume | level | equalizer-10bands |<br>
&gt;     &gt; rglimiter | volume | autoaudiosink<br>
&gt;     &gt;<br>
&gt;     &gt; I want to attach this so I can record to a file all the output.<br>
&gt;     &gt;        audioconvert | vorbisenc | gnomevfssink<br>
&gt;<br>
&gt;     It does not work like you do it above. playbin2 does not have any<br>
&gt;     outputs you<br>
&gt;     can link to. two options:<br>
&gt;     1.) Use decodebin2 / uridecodebin<br>
&gt;     2.) use playbin2, but set audiosink to a bin that containes tee<br>
&gt;     name=t ! queue !<br>
&gt;     autoaudiosink t. ! queue ! audioconvert | vorbisenc | gnomevfssink<br>
&gt;<br>
&gt;     Stefan<br>
&gt;<br>
&gt;     &gt;<br>
&gt;     &gt; I think the best is attach it just after the playbin2 using a tee.<br>
&gt;     But I<br>
&gt;     &gt; tried to do it and failed. How could this be done ? any example of<br>
&gt;     &gt; something similar to this ?<br>
&gt;     &gt;<br>
&gt;     &gt; Thanks in advance<br>
&gt;     &gt; J.Rios<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     ------------------------------------------------------------------------------<br>
&gt;     &gt; Download Intel&amp;#174; Parallel Studio Eval<br>
&gt;     &gt; Try the new software tools for yourself. Speed compiling, find bugs<br>
&gt;     &gt; proactively, and fine-tune applications for parallel performance.<br>
&gt;     &gt; See why Intel Parallel Studio got high marks during beta.<br>
&gt;     &gt; <a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<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>
</div></div>&gt;     &lt;mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>
<div><div></div><div class="h5">&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>
<br>
</div></div></blockquote></div><br>