<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>Hi,</div><div><br></div><div>To debug this, I would check a couple things:</div><div><br></div><div>1. If you look at the SDP, are all the payload types unique across all media?</div><div>2. Using Wireshark, can you use audio RTP packets (you should be able to identify them by their payload type).</div><div>3. If GStreamer is actually not sending anything, can you check with GST_DEBUG=*SCHED*:9 how far down the audio packets go? Ie where are they dropped? Or maybe some thread is blocked?</div><div><br></div><div>Olivier</div><div><br></div><div>On Mon, 2020-07-20 at 15:15 -0500, Trey Hutcheson wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div>Gstreamer 1.16.2; arch linux.</div><div><br></div>Ok, this one is really weird. I've got a media server (written in rust, if that matters) <div>that juggles multiple gstreamer pipelines, with webrtc being the central use case. Occasionally when a browser based peer (google chrome) joins, it receives no audio.<div><br></div><div>The pipeline is pretty basic; an audiotestsrc emits a test tone, encoding as opus, to webrtcbin. The browser side should simply pipe the audio to the local speaker. About 50% of the time, after signalling and ice connectivity has been established, there is no audio. In the cases when there is no audio, I've looked at chrome://webrtc-internals, and the audio track for the browser peer is not receiving any samples; no audio level, audio energy, etc. </div><div><br></div><div>So I've tested a variety of scenarios. If I restart the browser between each test, there is no change. If I restart my media server between each iteration, then I receive audio 100% of the time. I added an identity element after `rtpopuspay` to dump the data to the console, and the data is definitely there. I monitored udp traffic with wireshark; the number and size of packets to the browser is roughly the same when there is audio and when there is not. </div></div><div><br></div><div>So then I turned up gstreamer logging to see if it gave me any insight, and viola! I now have audio 100% of the time. When I set GST_DEBUG to 4 or higher, I get audio on every test iteration. Anything below 3, and the browser emits audio only occasionally. </div><div><br></div><div>Does anyone have insight on what might be going on here?</div></div>
<pre>_______________________________________________</pre><pre>gstreamer-devel mailing list</pre><a href="mailto:gstreamer-devel@lists.freedesktop.org"><pre>gstreamer-devel@lists.freedesktop.org</pre></a><pre><br></pre><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"><pre>https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</pre></a><pre><br></pre></blockquote><div><span><pre><pre>-- <br></pre>Olivier CrĂȘte
olivier.crete@collabora.com
</pre></span></div></body></html>