<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello everybody,<br>
</p>
<p><br>
</p>
<p>Some update, actually when I use the above pipelines I get some warnings if I set --gst-debug-level=4<br>
</p>
<p><br>
</p>
<div>0:00:08.188353677 10704   031FBAB8 ERROR                  libav :0:: Input buffer exhausted before END element found</div>
<div>0:00:08.188447229 10704   031FBAB8 WARN                   libav gstavauddec.c:635:gst_ffmpegauddec_frame:<avdec_aac0> avdec_aac: decoding error (len: -1094995529, have_data: 0)<br>
</div>
<div><br>
</div>
<div>Any idea why is that error and how it can be handled? I've tried to play with the parameters of the encoding and payloading elements, but no luck so far<br>
</div>
<div><br>
</div>
<div>On a side note... I noticed that under Windows 10/Gstreamer 1.12.2, the pipelines which use the default property host="localhost" for udpsink, won't  work.<br>
</div>
<div>The reason is that "localhost" in Windows 10 with IPv6 is treated as the IPv6 ::1 address rather than the 127.0.0.1,</div>
<div>and udpsrc bounds to 0.0.0.0 (which bounds only to the IPv4 addresses <span style="font-size: 12pt;">of the system). Hope that saves some time if anyone is working with udpsink/src and Win10</span></div>
<div>​<br>
</div>
<div>Cheers<br>
</div>
<div>Martin<br>
</div>
<div><br>
<br>
</div>
<p><br>
</p>
<p><br>
</p>
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Martin Vachovski<br>
<b>Sent:</b> Tuesday, September 26, 2017 12:05 PM<br>
<b>To:</b> gstreamer-devel@lists.freedesktop.org<br>
<b>Subject:</b> AAC/RTP streaming</font>
<div> </div>
</div>
<div>
<p>Hello everybody,<br>
</p>
<p><br>
</p>
<p>I am trying to implement AAC streaming overt RTP, but the receiving pipeline doesn't play any audio (although it says it goes to PLAYING state). <br>
</p>
<p>​I am using the following pipelines with gstreamer 1.12.2:<br>
</p>
<p><br>
</p>
<p>TX:</p>
<p>gst-launch-1.0.exe -v audiotestsrc ! audioconvert ! avenc_aac ! rtpmp4apay ! udpsink<br>
</p>
<p><br>
</p>
<p>RX:<br>
</p>
<p>gst-launch-1.0.exe -v udpsrc ! application/x-rtp,clock-rate=44100 ! rtpjitterbuffer ! rtpmp4adepay ! avdec_aac ! audioconvert ! autoaudiosink<br>
</p>
<p><br>
</p>
<p>(I have also tried replacing the "<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; background-color:rgb(255,255,255)">avdec_aa</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; background-color:rgb(255,255,255)">c</span>"
 element with a "decodebin").<br>
</p>
<p>The pipelines don't report any errors, but the second one doesn't play any sound.<br>
</p>
<p>I wonder if there is any other setting, caps I need to specify? I know that the Vorbis codec,<br>
</p>
<p>for instance, needs the DCT coefficients of the transform as extra data when streaming over the network?<br>
</p>
<p><br>
</p>
<p>Also, if I merge the two pipelines together (omitting the udpsink/udpsrc pair), the pipeline works:<br>
</p>
<p>audiotestsrc volume=0.1 ! audioconvert ! avenc_aac ! rtpmp4apay ! application/x-rtp,clock-rate=44100 ! rtpjitterbuffer ! rtpmp4adepay ! avdec_aac ! audioconvert ! wavescope ! videoconvert ! autovideosink<br>
</p>
<p><br>
</p>
<p>I have also tried to supply all the CAPS as reported by the SRC pad of "<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; background-color:rgb(255,255,255)">rtpmp4apay </span>" before the "rtpjitterbuffer", still no luck<br>
</p>
<p>/GstPipeline:pipeline0/GstRtpMP4APay:rtpmp4apay0.GstPad:src: caps = application/x-rtp, media=(string)audio, clock-rate=(int)44100, encoding-name=(string)MP4A-LATM, cpresent=(string)0, config=(string)40002410adca00, payload=(int)96, ssrc=(uint)3854776221,
 timestamp-offset=(uint)466007625, seqnum-offset=(uint)12210<br>
</p>
<p><br>
</p>
<p>Many thanks!<br>
</p>
<p>Martin<br>
</p>
<p><br>
</p>
</div>
</div>
</body>
</html>