<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
Hi</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<br>
</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
I am facing some streaming problem with avenc_aac encoding with compulab board (sender) and stream to PC running windows</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<br>
</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
Sender (embedded system, running on Arch Linux, Gstreamer 1.14)</p>
<pre style="margin-top:0px;margin-bottom:calc(var(--s-prose-spacing) + 0.4em);padding:12px;line-height:1.30769;font-family:var(--ff-mono);font-size:13px;width:auto;max-height:600px;overflow:auto;background-color:var(--highlight-bg);border-radius:5px;color:var(--highlight-color);text-align:left"><code style="margin:0px;color:var(--black-800);border-radius:0px">gst-launch-1.0    audiotestsrc wave=9 \
        ! audioconvert \
        ! audioresample \
        ! audio/x-raw,rate=48000,channels=2,depth=16,format=F32LE \
        ! queue \
        ! avenc_aac  \
        ! rtpmp4apay \
        ! udpsink host=192.168.60.5 port=2345
</code></pre>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
Receiver (PC system, running on Windows, Gstreamer 1.18)</p>
<pre style="margin-top:0px;margin-bottom:calc(var(--s-prose-spacing) + 0.4em);padding:12px;line-height:1.30769;font-family:var(--ff-mono);font-size:13px;width:auto;max-height:600px;overflow:auto;background-color:var(--highlight-bg);border-radius:5px;color:var(--highlight-color);text-align:left"><code style="margin:0px;color:var(--black-800);border-radius:0px">gst-launch-1.0 udpsrc port=2345 caps="application/x-rtp,media=audio,payload=96,encoding-name=MP4A-LATM" \
     ! rtpmp4adepay \
     ! queue \
     ! decodebin \
     ! queue \
     !  audioconvert \
     ! autoaudiosink async-handling=true
</code></pre>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
However no sound (white noise) is outputted from the speaker.</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<br>
</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
Steps taken to diagnose</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
             1. I have checked the result on Wireshark. From the filtered result, the packet send to the reciever is in KNet protocol. I wonder if this is correct?                   2. Also I have replaced the autovideosink with fakesink, there is buffer going
 through the pipeline.. so the recieving is correct. Just I am not too sure      whether the format recieved is correct?</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
             3. I also tested the sender pipeline up till avenc_aac stage and append it with  avdec_aac ! audioconvert ! autoaudiosink.  White noise could be heard from system.</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<br>
</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
Would like help on</p>
<ol style="margin-top:0px;margin-bottom:var(--s-prose-spacing);margin-left:30px;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;list-style:decimal;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<li style="margin-top:0px;margin-bottom:var(--s-prose-spacing-condensed);overflow-wrap:break-word">
<p style="margin:0px;clear:both">Is the packet in the correct protocol. Wondering is there additional settings i must give to the rtmp4apay?</p>
</li><li style="margin:0px;overflow-wrap:break-word">
<p style="margin:0px;clear:both">How to adjust the reciever pipeline. I actually fashion it similar to the video pipeline that I did earlier, except accounting for the difference between video and audio</p>
</li><li style="margin:0px;overflow-wrap:break-word;display:block">
<p style="margin:0px;clear:both"><br>
</p>
</li></ol>
<p style="margin:0px;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
Thanks in advance</p>
<br>
</div>
</body>
</html>