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 "audio-sink" 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:<autoaudiosink2-actual-sink-pulse> 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 > 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, "location", 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"><<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>></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">> Hello,<br>
> I have right now this pipeline.<br>
><br>
> playbin2 | audioconvert | rgvolume | level | equalizer-10bands |<br>
> rglimiter | volume | autoaudiosink<br>
><br>
> I want to attach this so I can record to a file all the output.<br>
> 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>
><br>
> I think the best is attach it just after the playbin2 using a tee. But I<br>
> tried to do it and failed. How could this be done ? any example of<br>
> something similar to this ?<br>
><br>
> Thanks in advance<br>
> J.Rios<br>
><br>
><br>
><br>
><br>
</div><div><div></div><div class="h5">> ------------------------------------------------------------------------------<br>
> Download Intel&#174; Parallel Studio Eval<br>
> Try the new software tools for yourself. Speed compiling, find bugs<br>
> proactively, and fine-tune applications for parallel performance.<br>
> See why Intel Parallel Studio got high marks during beta.<br>
> <a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
><br>
><br>
><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>
<br>
</div></div></blockquote></div><br>