<p dir="ltr"></p>
<p dir="ltr">Le 4 nov. 2016 6:57 AM, "Mandar Joshi" <<a href="mailto:emailmandar@gmail.com">emailmandar@gmail.com</a>> a écrit :<br>
><br>
> Hello everyone,<br>
> I am facing lots of "lost frames detected" warnings and high processor<br>
> usage when trying to stream video using GStreamer 1.10.0 and<br>
> gst-omx-1.10.0 from a USB UVC webcam (Logitech C310) on a Raspberry Pi<br>
> 2.<br>
><br>
> All the warnings say:<br>
> 0:00:20.129632492  1728   0xfb7000 WARN                 v4l2src<br>
> gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected:<br>
> count = 1 - ts: 0:00:19.660174909<br>
><br>
> and the processor usage on the Raspberry Pi 2 spikes to 70% once I<br>
> start to view the stream from a Linux box on the local network.<br>
><br>
> The commands I use are:<br>
><br>
> $ GST_DEBUG=3 gst-launch-1.0 v4l2src !<br>
> video/x-raw,width=1280,height=720,format=I420 !  omxh264enc !<br>
> rtph264pay ! shmsink socket-path=/tmp/logitech</p>
<p dir="ltr">First, you should probably add a queue between the capture and the encoder, that will slightly reduce the contention.</p>
<p dir="ltr">The, you should try (not sure if that work on this platforms) to use on encoder buffer to save a copy. That can be tried with v4l2src property, io-mode=userptr<br>
(No guaranty).</p>
<p dir="ltr">><br>
> $ GST_DEBUG=3 ./test-launch "( shmsrc do-timestamp=true<br>
> socket-path=/tmp/logitech ! application/x-rtp,clock-rate=90000 !<br>
> rtph264depay ! rtph264pay config-interval=1 name=pay0 pt=96 )"<br>
> 192.168.1.202<br>
><br>
> $ GST_DEBUG=3 gst-launch-1.0 rtspsrc<br>
> location=rtsp://<a href="http://192.168.1.202:8556/test">192.168.1.202:8556/test</a> ! decodebin ! xvimagesink<br>
><br>
> I've attached the complete output of gst-launch-1.0 v4l2src in the<br>
> warnings.txt file attached with this email.<br>
><br>
> Any pointers on what might be going wrong?<br>
><br>
> Thanks<br>
> Mandar Joshi<br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
></p>