AnsweredAssumed Answered

Gstreamer dropping frames (opencv videocapture)

Question asked by Tyler Ward on Mar 10, 2020
Latest reply on May 6, 2020 by albanxiii

I am using opencv to get fames from the CSI camera module on the IMX8M-mini dev kit. however every third frame is being dropped. Diging into the issue the issue is coming from the gstreamer backend and generates the filowing warnings when run with GST_DEBUG=2 .

 

0:00:14.053397814 4355 0x179c000 WARN v4l2src gstv4l2src.c:976:gst_v4l2src_create: lost frames detected: count = 1 - ts: 0:00:08.265484580

Testing in gstreamer directly the folowing commands show different results.

 

This looks to run fine

gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-raw, width=320, height=240, framerate=(fraction)30/1" ! fpsdisplaysink sync=false video-sink="fakesink"

This drops frames

gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-raw, width=320, height=240, framerate=(fraction)30/1" ! fpsdisplaysink sync=false video-sink="appsink"

Are other people having this issue as well? If so has anyone found a fix?

Outcomes