Raspberry Pi 2 v4l2src 'lost frames detected' and high processor usage
Mandar Joshi
emailmandar at gmail.com
Fri Nov 4 10:43:47 UTC 2016
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
$ 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
-------------- next part --------------
$ GST_DEBUG=3 gst-launch-1.0 v4l2src ! video/x-raw,width=1280,height=720,format=I420 ! omxh264enc ! rtph264pay ! shmsink socket-path=/tmp/logitech
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:11.709714474 1728 0xfb7000 WARN v4l2bufferpool gstv4l2bufferpool.c:540:gst_v4l2_buffer_pool_set_config:<v4l2src0:pool:src> libv4l2 converter detected, disabling CREATE_BUFS
0:00:14.836457546 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:14.371393701
0:00:15.016506609 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:14.551377170
0:00:15.200391973 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:14.735333430
0:00:15.401191765 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:14.915358701
0:00:15.620363015 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 2 - ts: 0:00:15.155391701
0:00:15.800489525 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:15.335425649
0:00:15.980463483 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:15.515576972
0:00:16.160576973 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:15.695606180
0:00:16.342080202 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:15.875633858
0:00:16.524931920 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:16.055715066
0:00:16.704929212 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:16.235698388
0:00:16.885040097 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:16.415724222
0:00:17.065008379 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:16.595754805
0:00:17.245015983 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:16.775785961
0:00:17.425073274 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:16.955813066
0:00:17.605172701 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:17.135875128
0:00:17.785072389 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:17.315868274
0:00:17.969063899 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:17.499829910
0:00:18.144783951 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:17.679868753
0:00:18.324797753 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:17.859879388
0:00:18.505387545 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:18.039907232
0:00:18.684853899 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:18.219940441
0:00:18.864955461 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:18.399966336
0:00:19.044875930 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:18.579994493
0:00:19.229279367 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:18.760022920
0:00:19.409523117 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:18.940057013
0:00:19.589500253 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:19.120090232
0:00:19.769495461 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:19.300116221
0:00:19.949554940 1728 0xfb7000 WARN v4l2src gstv4l2src.c:849:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:19.480139816
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
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:19.856506191
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
$ 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
More information about the gstreamer-devel
mailing list