Hi,<br><br><div class="gmail_quote">On Mon, Oct 18, 2010 at 9:03 PM, Wes Miller <span dir="ltr"><<a href="mailto:wmiller@sdr.com">wmiller@sdr.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Marco et al,<br>
<br>
<br>
Ok, new pipelines with rtpbin. These work though I am not sure they are<br>
completely correct.<br>
<br>
SENDER <><><><><><><><><><><><><><><><><br>
<br>
gst-launch-0.10 -v gstrtpbin name=rtpbin \<br>
alsasrc do-timestamp=true \<br>
! queue \<br>
! audioresample \<br>
! audioconvert \<br>
<div class="im"> ! dmaienc_aac outputBufferSize=10000000 outputformat=2 \<br>
</div> ! rtpmp4apay \<br>
! rtpbin.send_rtp_sink_1 \<br>
rtpbin.send_rtp_src_1 \<br>
! udpsink port=5002 host=$1 ts-offset=0 name=artpsink \<br>
rtpbin.send_rtcp_src_1 \<br>
! udpsink port=5003 host=$1 sync=false async=false<br>
name=artcpsink \<br>
udpsrc port=5007 name=artpsrc \<br>
! rtpbin.recv_rtcp_sink_1<br>
<br>
<br>
RECEIVER <><><><><><><><><><><><><><><><br>
<br>
gst-launch-0.10 -v gstrtpbin name=rtpbin latency=2000 \<br>
udpsrc<br>
caps="application/x-rtp,media=audio,clock-rate=44100,encoding-name=MP4A-LATM,payload=96"<br>
port=5002 \<br>
! rtpbin.recv_rtp_sink_1 \<br>
rtpbin. \<br>
! rtpmp4adepay \<br>
! decodebin \<br>
! audioconvert \<br>
! audioresample \<br>
! alsasink sync=true \<br>
udpsrc port=5002 \<br>
! rtpbin.recv_rtcp_sink_1 \<br>
rtpbin.send_rtcp_src_1 \<br>
! udpsink port=5003 host=$1 sync=false async=false<br>
<br>
<br>
I am still getting playback that is too fast and choppy. Sounds like the<br>
receiver pipe is just playing each packet too fast. I don't think I'm<br>
loosing any of the music, it just plays each packet too fast and has a dead<br>
spot in between them. Imagine the Moody Blues sung by the Chipmunks with<br>
hiccups.<br></blockquote><div><br>Ok now I understand what's the issue. If it appears to be between elves or ogres either you're reading the Lord of Rings or the sample rate differs between encoder and decoder. You may try and explicitly set the RTP clock in the receiving pipeline with something lik: <pre class="programlisting">
caps<span class="symbol">=</span><span class="string">"application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)MPEG4"<br></span></pre>Even though these should already be the default values.<br>
Another (more likely) possibility is that the encoder you're using is working at a default sample rate different from the one of the decoder. You should thus checker whether any compile/run time options make it possible for you to use the same values.<br>
<br>Regards<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
So, first, do I haave the ports mapped correctly? Am I missing any<br>
connections between the rtpbin in's and out's?<br>
<br>
Secondly, is there a retimesynch trick I can use? Replacing alsasink with<br>
fakesink -v tells me that the packets are timestamped and that the durations<br>
match the time between timestamps.<br>
<br>
I really intend to replace the mp3 player I am using with a microphone. The<br>
Leopardboard only has linelevel input so I can't use a mic right now. If<br>
passing speech, would I be more likely to hear the speed=up and gaps? Will<br>
speex through an rtpxxxpayloader still cause me to need 4k of Caps?<br>
<br>
Thanks,<br>
<br>
Wes<br>
<font color="#888888"><br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Choppy-Audio-over-UDP-tp2997741p3000742.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Choppy-Audio-over-UDP-tp2997741p3000742.html</a><br>
</font><div><div></div><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<br>
------------------------------------------------------------------------------<br>
Download new Adobe(R) Flash(R) Builder(TM) 4<br>
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly<br>
Flex(R) Builder(TM)) enable the development of rich applications that run<br>
across multiple browsers and platforms. Download your free trials today!<br>
<a href="http://p.sf.net/sfu/adobe-dev2dev" target="_blank">http://p.sf.net/sfu/adobe-dev2dev</a><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>
</div></div></blockquote></div><br>