Hi, Stefan!<br><br>Thanks for you reply. So here is the pipe with two streams that dont work together:<br><br>gst-launch -v udpsrc port=5000 caps="application/x-rtp,media=audio,payload=3,clock-rate=8000,channels=1,encoding-name=GSM" ! .recv_rtp_sink_0 gstrtpbin ! rtpgsmdepay ! gsmdec ! audioconvert ! pulsesink gstrtpbin name=rtpbin autoaudiosrc ! gsmenc ! rtpgsmpay ! rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! identity ! udpsink port=5000 host=127.0.0.1<br>
<br>I do not get any error when running that pipe! But I cant hear anything when running it. However, when I separate the streams, like below, and run then on different terminals, that works(but that is like two pipes and I dont want two pipes). The audio is captured and sent and I hear myself as I talk.<br>
<br>receiver stream:<br>gst-launch -v udpsrc port=5000 caps="application/x-rtp,media=audio,payload=3,clock-rate=8000,channels=1,encoding-name=GSM" ! .recv_rtp_sink_0 gstrtpbin ! rtpgsmdepay ! gsmdec ! audioconvert ! pulsesink<br>
<br>sender stream:<br>gst-launch -v gstrtpbin name=rtpbin autoaudiosrc ! gsmenc ! rtpgsmpay ! rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! identity ! udpsink port=5000 host=127.0.0.1<br><br>As I said before, I do not get any error when running those streams in one pipeline, but I cant hear any audio sent through udp...<br>
<br> <br><div class="gmail_quote">2009/10/30 Rajesh Marathe <span dir="ltr"><<a href="mailto:rmarathe@i-rode.com" target="_blank">rmarathe@i-rode.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Stefan,<br>
<br>
Sorry to diverge slightly from the topic, but, I do have a query on two<br>
streams. I tried doing this using gstreamer:<br>
- Create two different pipelines for two streams. (Create different<br>
elements for each pipeline but these elements refer to same hardware units).<br>
- Play stream1 while stream2 is in PAUSED state.<br>
- After few seconds, PAUSE stream1 and move stream2 to PLAY state.<br>
-<br>
I notice that stream1 plays and pauses but stream2 does not play actually.<br>
<br>
Will the above scenario work and if yes, do you see anything that needs<br>
done apart from the above ?<br>
<br>
thanks and regards,<br>
<font color="#888888">Rajesh Marathe.<br>
</font><div><div></div><div><br>
On 10/30/2009 12:58 AM, Stefan Kost wrote:<br>
> Marcelo de Sá Mendoza schrieb:<br>
><br>
>> Hi<br>
>><br>
>> Is possible to have two streams( 1 sender 1 receiver ) or more, of audio<br>
>> in one pipeline only? I'm trying to do that and I getting frustrated. I<br>
>> made two pipelines for each stream and worked cool, I hear the audio<br>
>> received from the host and the host hear what I talk. The thing is that<br>
>> I need to do that in ONE pipeline, but I can't. I know that two streams<br>
>> are possible in one pipeline, cause when I do the test below, it works:<br>
>><br>
>> gst-launch -v filesrc location=notice.html ! identity ! udpsink<br>
>> host=127.0.0.1 port=6000 udpsrc port=6000 ! identity ! filesink<br>
>> location=notice2.html<br>
>><br>
>> but when I change to pulsesrc/pulsesink that doesnt work. Works only in<br>
>> diferent pipelines. There's something else that I need to do?<br>
>><br>
> You can have as many streams in a pipe as you want. The above example is quite<br>
> uncomplete though. You probably want to use rtp for sending audio over the<br>
> network. Also if something does not work, tell us what errors you get. Otherwise<br>
> we can't help.<br>
><br>
> Stefan<br>
><br>
><br>
>> Thanks for the atention.<br>
>><br>
>><br>
>><br>
>> ------------------------------------------------------------------------<br>
>><br>
>> ------------------------------------------------------------------------------<br>
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA<br>
>> is the only developer event you need to attend this year. Jumpstart your<br>
>> developing skills, take BlackBerry mobile applications to market and stay<br>
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!<br>
>> <a href="http://p.sf.net/sfu/devconference" target="_blank">http://p.sf.net/sfu/devconference</a><br>
>><br>
>><br>
>> ------------------------------------------------------------------------<br>
>><br>
>> _______________________________________________<br>
>> gstreamer-devel mailing list<br>
>> <a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">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>
><br>
> ------------------------------------------------------------------------------<br>
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA<br>
> is the only developer event you need to attend this year. Jumpstart your<br>
> developing skills, take BlackBerry mobile applications to market and stay<br>
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!<br>
> <a href="http://p.sf.net/sfu/devconference" target="_blank">http://p.sf.net/sfu/devconference</a><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">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>
><br>
<br>
<br>
------------------------------------------------------------------------------<br>
Come build with us! The BlackBerry(R) Developer Conference in SF, CA<br>
is the only developer event you need to attend this year. Jumpstart your<br>
developing skills, take BlackBerry mobile applications to market and stay<br>
ahead of the curve. Join us from November 9 - 12, 2009. Register now!<br>
<a href="http://p.sf.net/sfu/devconference" target="_blank">http://p.sf.net/sfu/devconference</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">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>