<div dir="ltr"><div><div><div>It seems that one or the other of the two elements has trouble correctly dealing with fragmented jpeg images. As the size of the images increase, one starts getting lots and lots of warnings and dropped frames from rtpjepgdepay:<br><br>0:00:14.129355327 19338      0x1b11370 WARN            rtpjpegdepay gstrtpjpegdepay.c:760:gst_rtp_jpeg_depay_process:<rtpjpegdepay0> discarding data packets received when we have no header<br><br></div>Here are our test pipelines. Please let us know if this is an actual bug, or if we are doing something wrong. We've found that with MTU=1400 and QUAL=75, we start dropping long (multi-second) sequences of frames. If we set MTU to 64000, we have almost no dropped frames, and if we set QUAL=5 we have no trouble with dropped frames (although the image is terrible).<br><br></div>SERVER:<br>#!/bin/bash<br><br>PATH="/home/sti/Videos/BBB"<br>FILE="bbb_sunflower_1080p_30fps_normal.mp4"<br>MTU=1400<br>QUAL=75<br>PATHNAME="$PATH/$FILE"<br><br>/usr/bin/gst-launch-1.0                             \<br>  rtpbin ntp-time-source=1 ntp-sync=true buffer-mode=synced name=sendbin \<br>  filesrc location="$PATHNAME" ! qtdemux ! h264parse ! avdec_h264     \<br>    ! videoconvert ! queue ! jpegenc quality=$QUAL ! rtpjpegpay mtu=$MTU \<br>    ! sendbin.send_rtp_sink_0                         \<br>  sendbin.send_rtp_src_0                         \<br>    ! udpsink port=25000 host="127.0.0.1"                 \<br>  sendbin.send_rtcp_src_0                         \<br>    ! udpsink port=25001 host="127.0.0.1" sync=false async=false      \<br>  udpsrc port=25005 ! sendbin.recv_rtcp_sink_0<br><br></div>--8<---CUT HERE--->8--<br clear="all"><div><div><div><div>CLIENT:<br><br></div><div>#!/bin/bash<br><br>/usr/bin/gst-launch-1.0   \<br>  rtpbin name=rtpbin                            \<br>  udpsrc port=25000                             \<br>    ! application/x-rtp,media=video,payload=26,encoding-name=JPEG    \<br>    ,clock-rate=90000 ! rtpbin.recv_rtp_sink_0                \<br>  rtpbin. ! rtpjpegdepay ! queue ! jpegparse ! jpegdec ! videoconvert     \<br>    ! ximagesink display=:0                        \<br>  udpsrc port=25001 ! rtpbin.recv_rtcp_sink_0                \<br>  rtpbin.send_rtcp_src_0                        \<br>    ! udpsink port=25005 host="127.0.0.1" sync=false async=false<br><br><br><br>-- <br><div class="gmail_signature">Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br><a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a></div>
</div></div></div></div></div>