I have done this<br><br>One bin called outputbin with this elements<br>tee ! queue ! audioconvert ! rgvolume ! level ! equalizer-10bands ! limiter ! volume ! audioconvert ! autoaudiosink<br><br>I attached this outputbin as &quot;audio-sink&quot; of a playbin<br>
<br>so i have <br>playbin ! outputbin<br><br>I then do the recordbin on demand of the user with this elements<br>queue ! audioconvert ! lame ! filesink<br><br>I add this recordbin to the outputbin and link the tee with the queue of the recordbin<br>
<br>the recording works correctly but while I im listening an online stream and recording I usually get this message (when running with --gst-debug=2)<br><br>0:02:58.811503553 32083      0x38845c0 WARN                   pulse pulsesink.c:523:gst_pulsering_stream_underflow_cb:&lt;autoaudiosink2-actual-sink-pulse&gt; Got underflow<br>
<br>and playback stops.<br><br>When its at this point the only way to restore is to restart the playback from start but I get some ref_count &gt; 0 warnings.<br><br>I control when I receive BUFFERING messages and if so playback is restored fine. What Am I doing wrong?<br>
<br>Also when I receive tags I want to change the output file of the filesink so I need to do this<br><br>gst_element_set_state( recordbin, GST_STATE_NULL );<br>g_object_set( filesink, &quot;location&quot;, uristr, NULL );<br>
gst_element_set_state( recording, GST_STATE_PLAYING );<br>
<br>Its usually at this point when I get the underflow message but not always.<br><br>Thanks in advance for your help<br><br>J.Rios<br><br><br><br><br><div class="gmail_quote">On Mon, Apr 5, 2010 at 12:42 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;">Am 03.04.2010 17:16, schrieb J. Rios:<br>
<div class="im">&gt; Hello,<br>
&gt;   I have right now this pipeline.<br>
&gt;<br>
&gt; playbin2 | audioconvert | rgvolume | level | equalizer-10bands |<br>
&gt; rglimiter | volume | autoaudiosink<br>
&gt;<br>
&gt; I want to attach this so I can record to a file all the output.<br>
&gt;        audioconvert | vorbisenc | gnomevfssink<br>
<br>
</div>It does not work like you do it above. playbin2 does not have any outputs you<br>
can link to. two options:<br>
1.) Use decodebin2 / uridecodebin<br>
2.) use playbin2, but set audiosink to a bin that containes tee name=t ! queue !<br>
autoaudiosink t. ! queue ! audioconvert | vorbisenc | gnomevfssink<br>
<font color="#888888"><br>
Stefan<br>
</font><div class="im"><br>
&gt;<br>
&gt; I think the best is attach it just after the playbin2 using a tee. But I<br>
&gt; tried to do it and failed. How could this be done ? any example of<br>
&gt; something similar to this ?<br>
&gt;<br>
&gt; Thanks in advance<br>
&gt; J.Rios<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div><div><div></div><div class="h5">&gt; ------------------------------------------------------------------------------<br>
&gt; Download Intel&amp;#174; Parallel Studio Eval<br>
&gt; Try the new software tools for yourself. Speed compiling, find bugs<br>
&gt; proactively, and fine-tune applications for parallel performance.<br>
&gt; See why Intel Parallel Studio got high marks during beta.<br>
&gt; <a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<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>
<br>
</div></div></blockquote></div><br>