<div dir="ltr"><font face="arial, sans-serif">Hi,</font><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Recently we tested using the "webrtcbin" and a WebRTC JS player (RTCPeerConnection) with a video (vp8 and h264 encoders) and audio (opus encoder). </font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">The video and audio streams worked without any noticeable packets discarded by the WebRTC player in Chrome. But we observed lots of packets were discarded from "chrome://webrtc-internals/", for example, </font></div><div>packetsDiscarded: 475  </div><div><br></div><div>The spec. says the packets are discarded (not lost) because they may be too late or early.</div><div><br></div><div>Working pipeline (pseudo code):</div><div><br></div><div>Local sound source (wav file or alsasrc do-timestamp=true) with "clocksync sync=true" => webrtc sound pipeline </div><div><br></div><div>Choppy pipeline (pseudo code):<span style="font-family:arial,sans-serif;color:rgb(29,28,29);font-size:15px;font-variant-ligatures:common-ligatures;background-color:rgb(248,248,248)"> </span><span style="font-family:arial,sans-serif;color:rgb(29,28,29);font-size:15px;font-variant-ligatures:common-ligatures;background-color:rgb(248,248,248)"> </span><span style="font-family:arial,sans-serif;color:rgb(29,28,29);font-size:15px;font-variant-ligatures:common-ligatures;background-color:rgb(248,248,248)"> </span><br></div><div><span style="background-color:rgb(248,248,248)"><font face="arial, sans-serif" style=""><font color="#1d1c1d"><span style="font-size:15px;font-variant-ligatures:common-ligatures">(same audio source)  ! </span></font></font></span>rtpmp4apay<span style="background-color:rgb(248,248,248)"><font face="arial, sans-serif" style=""><font color="#1d1c1d"><span style="font-size:15px;font-variant-ligatures:common-ligatures"> ! udpsink sync=true -> udrsrc ! rtpdepay ! => webrtc sound pipeline</span></font></font></span></div><div><font face="arial, sans-serif"> </font></div><div><font face="arial, sans-serif">I even tested with a "tee" element before the webrtcbin; and the audio sounds correctly. The pseudo code omitted details but all caps, convert elements, queue, e.g. are used. </font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">So the audio packet discarded on the web browser should be caused by the RTP/UDP part. No video-related packet discard was observed; and video stream is also transported over a separate RTP/UDP channel.  Audio and video streams are not synchronized.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Any idea how to find out the root cause of the choppy sound in the Browser?  Or should video and audio must be synchronized before linking to webrtcbin pads?</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Thanks for any ideas.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Regards,</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Yu</font></div></div>