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"><<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;">
hi,<br>
<br>
Am 10.04.2010 01:00, schrieb J. Rios:<br>
<div class="im">> I have done this<br>
><br>
> One bin called outputbin with this elements<br>
> tee ! queue ! audioconvert ! rgvolume ! level ! equalizer-10bands !<br>
> 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>
</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>
><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<br>
> the recordbin<br>
><br>
> the recording works correctly but while I im listening an online stream<br>
> and recording I usually get this message (when running with --gst-debug=2)<br>
><br>
> 0:02:58.811503553 32083 0x38845c0 WARN pulse<br>
> pulsesink.c:523:gst_pulsering_stream_underflow_cb:<autoaudiosink2-actual-sink-pulse><br>
> Got underflow<br>
><br>
> and playback stops.<br>
><br>
> When its at this point the only way to restore is to restart the<br>
> 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<br>
> restored fine. What Am I doing wrong?<br>
><br>
> Also when I receive tags I want to change the output file of the<br>
> 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>
> On Mon, Apr 5, 2010 at 12:42 PM, Stefan Kost <<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a><br>
</div><div><div></div><div class="h5">> <mailto:<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>>> wrote:<br>
><br>
> Am 03.04.2010 17:16, schrieb J. Rios:<br>
> > 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>
> It does not work like you do it above. playbin2 does not have any<br>
> 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<br>
> name=t ! queue !<br>
> autoaudiosink t. ! queue ! audioconvert | vorbisenc | gnomevfssink<br>
><br>
> Stefan<br>
><br>
> ><br>
> > I think the best is attach it just after the playbin2 using a tee.<br>
> 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>
> ><br>
> ------------------------------------------------------------------------------<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>
</div></div>> <mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
<div><div></div><div class="h5">> > <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
><br>
><br>
<br>
</div></div></blockquote></div><br>