Raspberry Pi 2 v4l2src 'lost frames detected' and high processor usage
Nicolas Dufresne
nicolas at ndufresne.ca
Sat Nov 5 14:48:51 UTC 2016
Le 4 nov. 2016 6:57 AM, "Mandar Joshi" <emailmandar at gmail.com> a écrit :
>
> Hello everyone,
> I am facing lots of "lost frames detected" warnings and high processor
> usage when trying to stream video using GStreamer 1.10.0 and
> gst-omx-1.10.0 from a USB UVC webcam (Logitech C310) on a Raspberry Pi
> 2.
>
> All the warnings say:
> 0:00:20.129632492 1728 0xfb7000 WARN v4l2src
> gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected:
> count = 1 - ts: 0:00:19.660174909
>
> and the processor usage on the Raspberry Pi 2 spikes to 70% once I
> start to view the stream from a Linux box on the local network.
>
> The commands I use are:
>
> $ GST_DEBUG=3 gst-launch-1.0 v4l2src !
> video/x-raw,width=1280,height=720,format=I420 ! omxh264enc !
> rtph264pay ! shmsink socket-path=/tmp/logitech
First, you should probably add a queue between the capture and the encoder,
that will slightly reduce the contention.
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
(No guaranty).
>
> $ GST_DEBUG=3 ./test-launch "( shmsrc do-timestamp=true
> socket-path=/tmp/logitech ! application/x-rtp,clock-rate=90000 !
> rtph264depay ! rtph264pay config-interval=1 name=pay0 pt=96 )"
> 192.168.1.202
>
> $ GST_DEBUG=3 gst-launch-1.0 rtspsrc
> location=rtsp://192.168.1.202:8556/test ! decodebin ! xvimagesink
>
> I've attached the complete output of gst-launch-1.0 v4l2src in the
> warnings.txt file attached with this email.
>
> Any pointers on what might be going wrong?
>
> Thanks
> Mandar Joshi
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161105/3519c18e/attachment.html>
More information about the gstreamer-devel
mailing list