<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><tt><b>Hi everyone,<br>
          <br>
          I am currently helping implement redistribution of live feeds
          from RTC streams that are coming out of janus-gateway.<br>
          A user can share both its webcam, screen and audio and i end
          up with 2 pipelines to handle the re-encoding/merging and
          sending to a rtmp server.<br>
          Janus is configured to forward everyting on RTC so i just use
          those as source.<br>
          <br>
          The webcam feed is working just fine, no big delay and the
          stream is stable.<br>
          Problem arise with the screen feed and i can't really figure
          out why.<br>
          It can take several minutes for the stream to display anything
          and when it does, i have lots of warnings and the stream is
          not in sync.<br>
          It gets desync more and more as time goes by.<br>
          The gstreamer is the same for the webcam and screen but only
          the screen have this behavior.<br>
          <br>
          This is the command for video only, there's also a command
          combining 2 RTP with rtpbin but the same problem occurs.<br>
          <br>
              gst-launch-1.0 udpsrc name=udpsrcvideo port=10055
caps=application/x-rtp,media=video,encoding-name=VP8,clock-rate=90000,payload=96
          ! \<br>
                  rtpjitterbuffer ! rtpvp8depay ! avdec_vp8 ! queue !
          videoconvert ! x264enc tune=zerolatency speed-preset=faster
          bitrate=1000 ! \<br>
                  flvmux streamable=true latency=1000000000 ! rtmpsink
          location=<a class="moz-txt-link-freetext" href="rtmp://">rtmp://</a>...<br>
          <br>
          I attach a level 4 log. What most confuses me is the warnings
          that appears after the pipe is set PLAYING.<br>
          Really can't find much information about it.<br>
          Since i have no problem with the webcam stream i fear it is a
          problem with the screen stream which i don't have much control
          over.<br>
          <br>
          Notable errors :<br>
          <br>
              x264enc :0::<x264enc0> non-strictly-monotonic PTS<br>
              libav
          gstavviddec.c:1864:gst_ffmpegviddec_handle_frame:<avdec_vp8-0>
          Failed to send data for decoding<br>
              rtpjitterbuffer rtpjitterbuffer.c:573:calculate_skew:
          delta - skew: 0:00:01.033519437 too big, reset skew<br>
              rtpjitterbuffer
          rtpjitterbuffer.c:749:rtp_jitter_buffer_calculate_pts:
          backward timestamps at server, schedule resync<br>
              rtpjitterbuffer
          rtpjitterbuffer.c:781:rtp_jitter_buffer_calculate_pts: resync
          to time 0:09:29.899406323, rtptime 0:09:38.611000000<br>
              x264enc :0::<x264enc0> VBV underflow (frame 1251,
          -349320 bits)<br>
              videodecoder
gstvideodecoder.c:2762:gst_video_decoder_prepare_finish_frame:<avdec_vp8-0>
          decreasing timestamp (0:17:59.517851383 <
          0:18:00.273661763)<br>
          <br>
          I have messed around with buffers, latencies ... but i does
          not really improves anything.<br>
          <br>
          Thanks for the help!<br>
          <br>
          <br>
        </b></tt><tt><br>
      </tt></p>
  </body>
</html>