<div dir="ltr"><div>Hello,</div><div><br></div><div>Can't say that I have tried such high resolutions, but try the following <a href="https://github.com/WebRTSP/ReStreamer">https://github.com/WebRTSP/ReStreamer</a></div><div>You can build it from source or install directly via snap. </div><div><br></div><div>I found no issues with it on Ubuntu 20.04.2 LTS and Gstreamer 1.16.2 (installed via apt package manager) on H264 720p @25FPS</div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best Regards,<br>Eslam Ahmed</div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 11, 2021 at 11:00 AM Rob Agar via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Hi David</p>
    <p>We're also struggling to get h264 video to work reliably via
      webrtc, but here on Ubuntu (18.04 & 20.04), even at lower
      resolutions & bit rate.</p>
    <p>It does sound like a similar situation though - when it
      occasionally works, the video is stuttery with packet loss
      reported in chrome://webrtc-internals</p>
    <p>Rob<br>
    </p>
    <div>On 11/10/2021 06:09, David Ely via
      gstreamer-devel wrote:<br>
    </div>
    <blockquote type="cite">
      
      
      
      
      <div>
        <p class="MsoNormal"><span>We are having issues
            sending a 4K, H264 stream through WebRTC on Windows
            (3840x2160, 30hz, 8Mbs). Playback of the video stream
            stutters or may get stuck. Our application captures the
            desktop, encodes it to H264 and streams it to Chrome or
            another of our applications, both of which exhibit the
            problem. This issue only happens on Windows, CentOS7 and
            Ubuntu20.04 work (using the same hardware). Lower
            resolutions (1080P) work across all 3 operations systems.
            Chrome's webrtc-internals shows the packetsLost or
            freezeCount increase when the stutter occurs.<u></u><u></u></span></p>
        <p class="MsoNormal"><span>Points of note:<u></u><u></u></span></p>
        <ul type="disc">
          <li class="MsoNormal">
            <span>Our GStreamer
              version is 1.19.1.<u></u><u></u></span></li>
          <li class="MsoNormal">
            <span>This was reproduced
              with two PCs on a local network. The problem won't occur
              if the sender and receiver are on the same computer.<u></u><u></u></span></li>
          <li class="MsoNormal">
            <span>We did some
              Wireshark captures on the sending PC and it showed some
              packets aren't making it to the NIC. It appears
              occasionally a NAL is being truncated.<u></u><u></u></span></li>
          <li class="MsoNormal">
            <span>In attempt reduced
              the scope of the problem, I reproduced the issue in one of
              the gst-examples
              (webrtc\sendonly\webrtc-unidirectional-h264.c) by
              modifying the pipeline to stream from a file (I only
              tested this on Windows). The file is 30hz, 4K H264 video
              with a birate of 8 Mbs. The pipeline looks like this
              <u></u><u></u></span></li>
          <ul type="circle">
            <li class="MsoNormal">
              <i><span>filesrc
                  location=C:\tmp\test.mkv ! queue ! matroskademux !
                  queue ! h264parse !
                  video/x-h264,alignment=au,stream-format=byte-stream !
                  rtph264pay config-interval=1 aggregate-mode !
                  application/x-rtp,media=video,encoding-name=H264,encoding-payload=96
                  ! webrtcbin</span></i><span><u></u><u></u></span></li>
          </ul>
          <li class="MsoNormal">
            <span>Reducing the
              bitrate alleviates the problem.<u></u><u></u></span></li>
          <li class="MsoNormal">
            <span>For reference this
              is our application's pipeline on Windows
              <u></u><u></u></span></li>
          <ul type="circle">
            <li class="MsoNormal">
              <i><span>dxgiscreencapsrc
                  cursor=true ! video/x-raw,format=BGRA,framerate=30/1 !
                  videoconvert ! queue ! video/x-raw,format=I420 !
                  nvh264enc preset=low-latency-hp bitrate=8192
                  rc-mode=cbr gop-size=90 zerolatency=true !
                  video/x-h264,framerate=30/1,alignment=au,stream-format=byte-stream
                  ! rtph264pay !
                  application/x-rtp,media=video,encoding-name=H264,payload=96
                  ! webrtcbin</span></i><span><u></u><u></u></span></li>
          </ul>
        </ul>
        <p class="MsoNormal"><span>As I was able to
            reproduce the issue in the modified example it points to
            webrtcbin as the problem.<u></u><u></u></span></p>
        <p class="MsoNormal"><span>Any help/suggestions to
            resolve the problem would be greatly appreciated.<u></u><u></u></span></p>
        <p class="MsoNormal"><span>Thanks<u></u><u></u></span></p>
        <table style="width:100%" width="100%" cellspacing="0" cellpadding="0" border="0">
          <tbody>
            <tr>
              <td style="padding:1.5pt">
                <p class="MsoNormal"><b><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(26,53,94)">David
                      Ely</span></b><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(26,53,94)"><br>
                  </span><span style="font-size:8.5pt;font-family:Verdana,sans-serif;color:rgb(26,53,94)">Software
                    Architect</span><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(26,53,94)"></span><span><u></u><u></u></span></p>
              </td>
            </tr>
            <tr>
              <td style="padding:4.5pt 1.5pt 3pt">
                <p class="MsoNormal"><span><img style="width: 2.0833in; height: 0.302in;" id="gmail-m_-5036421398414876901_x0000_i1025" src="https://gallery.mailchimp.com/73a7af9caf823e17148efa426/images/399deeaf-a8bb-4b99-a868-deb57d655bb6.png" alt="ImmersaView" width="200" height="29"></span><span><u></u><u></u></span></p>
              </td>
            </tr>
            <tr>
              <td style="padding:1.5pt">
                <table style="width:100%" width="100%" cellspacing="0" cellpadding="0" border="0">
                  <tbody>
                    <tr>
                      <td style="width:3.75pt;padding:0.75pt" width="5">
                        <p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:Verdana,sans-serif;color:rgb(31,155,222)">T</span></b><span><u></u><u></u></span></p>
                      </td>
                      <td style="padding:0.75pt">
                        <p class="MsoNormal"><span style="font-size:8.5pt;font-family:Verdana,sans-serif;color:rgb(26,53,94)"> +61
                            7 3123 7133</span><span><u></u><u></u></span></p>
                      </td>
                    </tr>
                    <tr>
                      <td style="width:3.75pt;padding:0.75pt" width="5">
                        <p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:Verdana,sans-serif;color:rgb(31,155,222)">E</span></b><span><u></u><u></u></span></p>
                      </td>
                      <td style="padding:0.75pt">
                        <p class="MsoNormal"><span style="font-size:8.5pt;font-family:Verdana,sans-serif;color:rgb(26,53,94)"> <a href="mailto:david.ely@immersaview.com" target="_blank"><span style="color:rgb(31,155,222)">david.ely@immersaview.com</span></a></span><span><u></u><u></u></span></p>
                      </td>
                    </tr>
                    <tr>
                      <td style="width:3.75pt;padding:0.75pt" width="5">
                        <p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:Verdana,sans-serif;color:rgb(31,155,222)">W</span></b><span><u></u><u></u></span></p>
                      </td>
                      <td style="padding:0.75pt">
                        <p class="MsoNormal"><span style="font-size:8.5pt;font-family:Verdana,sans-serif;color:rgb(26,53,94)"> <a href="http://www.immersaview.com/" target="_blank"><span style="color:rgb(31,155,222)">www.immersaview.com</span></a></span><span><u></u><u></u></span></p>
                      </td>
                    </tr>
                    <tr>
                      <td style="width:3.75pt;padding:0.75pt" width="5">
                        <p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:Verdana,sans-serif;color:rgb(31,155,222)">A</span></b><span><u></u><u></u></span></p>
                      </td>
                      <td style="padding:0.75pt">
                        <p class="MsoNormal"><span style="font-size:8.5pt;font-family:Verdana,sans-serif;color:rgb(26,53,94)"> 13/67
                            Depot St, Banyo, QLD 4014</span><span><u></u><u></u></span></p>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </td>
            </tr>
            <tr>
              <td style="padding:1.5pt">
                <p class="MsoNormal"><span style="font-size:7pt;font-family:Verdana,sans-serif;color:rgb(26,53,94)">This
                    electronic mail transmission is confidential and is
                    intended only for the review of the party to whom it
                    is addressed.
                  </span><span><u></u><u></u></span></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><span><u></u> <u></u></span></p>
        <p class="MsoNormal"><u></u> <u></u></p>
      </div>
    </blockquote>
  </div>

</blockquote></div>