<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Gstreamer dropping frames (opencv videocapture) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011956#M149868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you let me know which operating system build you are using? If it was built by yocto if you can let me know the repo branch and manifest i can build that and test with the same version if not is there a download for the version you are using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 May 2020 14:50:05 GMT</pubDate>
    <dc:creator>tyler_ward</dc:creator>
    <dc:date>2020-05-01T14:50:05Z</dc:date>
    <item>
      <title>Gstreamer dropping frames (opencv videocapture)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011948#M149860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P data-sourcepos="3:1-3:38"&gt;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&amp;nbsp;GST_DEBUG=2 .&lt;/P&gt;&lt;P data-sourcepos="3:1-3:38"&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P data-sourcepos="5:1-5:170"&gt;0:00:14.053397814 4355 0x179c000 WARN v4l2src gstv4l2src.c:976:gst_v4l2src_create: lost frames detected: count = 1 - ts: 0:00:08.265484580&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P data-sourcepos="5:1-5:170"&gt;Testing in gstreamer directly the folowing commands show different results.&lt;/P&gt;&lt;P data-sourcepos="5:1-5:170"&gt;&lt;/P&gt;&lt;P data-sourcepos="7:1-8:159"&gt;This&amp;nbsp;looks to run fine&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P data-sourcepos="7:1-8:159"&gt;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"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P data-sourcepos="10:1-11:173"&gt;This drops frames&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P data-sourcepos="10:1-11:173"&gt;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"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are other people having this issue as well? If so has anyone found a fix?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011948#M149860</guid>
      <dc:creator>tyler_ward</dc:creator>
      <dc:date>2020-03-10T14:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer dropping frames (opencv videocapture)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011949#M149861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tyler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please, give me more details on the application? It will be important to know the BSP release too.&lt;/P&gt;&lt;P&gt;May the use of fakesink instead of appsink does not consume any data (I need to see the application to confirm it), so you will not be able to see the issue only by changing the sink plugin.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any case, I will check if I can see this issue at some of our applications too.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 15:04:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011949#M149861</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-03-12T15:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer dropping frames (opencv videocapture)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011950#M149862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The camera is being used for face detection and position tracking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As well as in our application, the issue can be seen in a simple openCV application where the camera just captures frames in a&amp;nbsp; loop. A mimimal example is shown below.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;cstdio&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;iostream&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;chrono&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;numeric&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;opencv2/core/mat.hpp&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;opencv2/highgui/highgui.hpp&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;opencv2/videoio.hpp&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;



&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;main&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; argc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;char&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; argv&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;

    cv&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;VideoCapture &lt;SPAN class="token function"&gt;cap&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;cout &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; cap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getBackendName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;endl&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    cap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;set&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cv&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;CAP_PROP_BUFFERSIZE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    cap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;set&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cv&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;CAP_PROP_FRAME_WIDTH&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; static_cast&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;640&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    cap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;set&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cv&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;CAP_PROP_FRAME_HEIGHT&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; static_cast&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;480&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    cv&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;Mat img&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;//perform a few initial captures to ensure correct setup&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        cap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;read&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;img&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

    std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;cout &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Camera framerate"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;endl&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;//create time variables&lt;/SPAN&gt;
    std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;time_point&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;steady_clock&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; starttime&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;time_point&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;steady_clock&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; stoptime&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    starttime &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;steady_clock&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;now&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        cap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;read&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;img&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    stoptime &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;steady_clock&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;now&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;


    &lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; time &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;duration_cast&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;milliseconds&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;stoptime &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; starttime&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; fps &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;cout &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"FPS = "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; fps &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"("&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; time&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;200&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"s)"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;endl&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our build is based arround the&amp;nbsp;&lt;SPAN style="font-size: 10.5pt; color: black;"&gt;imx_4.14.98_2.0.0_ga manifest from the&amp;nbsp;&lt;A href="https://source.codeaurora.org/external/imx/imx-manifest/log/?h=imx-linux-sumo" rel="nofollow noopener noreferrer" style="color: black; background-color: #ffffff; text-decoration: none; font-size: 13.3333px;" target="_blank"&gt;imx-linux-sumo&lt;/A&gt;&amp;nbsp;branch.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: black;"&gt;The bsp is version: sumo-4.14.78-1.0.0_ga. The yocto status information for the nxp layers is shown below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Build Configuration:
BB_VERSION           = "1.38.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "imx8mmevk"
DISTRO               = "fsl-imx-xwayland"
DISTRO_VERSION       = "4.14-sumo"
TUNE_FEATURES        = "aarch64"
TARGET_FPU           = ""
meta
meta-poky            = "HEAD:c9bd4984f8f471ca2c43052714f4413ba99cf171"
meta-oe
meta-multimedia      = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-freescale       = "HEAD:27ca94f8a4336790ba117b4298566f6820e7e74c"
meta-freescale-3rdparty = "HEAD:82037216280a39957fb4272581637abec734ad50"
meta-freescale-distro = "HEAD:f7e2216e93aff14ac32728a13637a48df436b7f4"
meta-bsp
meta-sdk             = "sumo-4.14.78-1.0.0_ga:43dc308f943680a8ebdd7bd628190a2835ededc2"
meta-browser         = "HEAD:75640e14e325479c076b6272b646be7a239c18aa"
meta-gnome
meta-networking
meta-python
meta-filesystems     = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-qt5             = "HEAD:d4e7f73d04e8448d326b6f89908701e304e37d65"‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For info I have also tested on a clean build&amp;nbsp;running the fsl-image-validation-imx image and get the same results as detailed above.&lt;/P&gt;&lt;P&gt;It&amp;nbsp;was built using the imx-4.19.35-1.0.0.xml manifest from the imx-linux-thud branch&amp;nbsp;&lt;/P&gt;&lt;P&gt;The BSP is:&amp;nbsp;thud-4.19.35-1.0.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 12:14:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011950#M149862</guid>
      <dc:creator>tyler_ward</dc:creator>
      <dc:date>2020-03-13T12:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer dropping frames (opencv videocapture)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011951#M149863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to see this issues at OpenCV application, but without success.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I did the tests using GStreamer directly, and I am not seeing any dropped frame:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Waylandsink:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;root@imx8mmevk:~# gst-launch-1.0 -v v4l2src &lt;STRONG&gt;device=/dev/video0 num-buffers=120&lt;/STRONG&gt; ! "video/x-raw, width=320, height=240, framerate=(fraction)30/1" ! fpsdisplaysink sync=false &lt;STRONG&gt;video-sink="waylandsink"&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;Pipeline is live and does not need PREROLL ...&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstWaylandSink:waylandsink0: sync = false&lt;BR /&gt;Setting pipeline to PLAYING ...&lt;BR /&gt;New clock: GstSystemClock&lt;BR /&gt;/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)320, height=(int)240&lt;BR /&gt;, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt7&lt;BR /&gt;09, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)320, height=(i&lt;BR /&gt;nt)240, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(stri&lt;BR /&gt;ng)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = vi&lt;BR /&gt;deo/x-raw, width=(int)320, height=(int)240, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ra&lt;BR /&gt;tio=(fraction)1/1, colorimetry=(string)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:sr&lt;BR /&gt;c: caps = video/x-raw, width=(int)320, height=(int)240, format=(string)YUY2, framerate=(fraction)30/1, pix&lt;BR /&gt;el-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstWaylandSink:waylandsink0.GstPad:sink: caps = v&lt;BR /&gt;ideo/x-raw, width=(int)320, height=(int)240, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-r&lt;BR /&gt;atio=(fraction)1/1, colorimetry=(string)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:vi&lt;BR /&gt;deo_sink: caps = video/x-raw, width=(int)320, height=(int)240, format=(string)YUY2, framerate=(fraction)30&lt;BR /&gt;/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = video/x-raw, width=(int)&lt;BR /&gt;320, height=(int)240, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, col&lt;BR /&gt;orimetry=(string)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)320, height=(&lt;BR /&gt;int)240, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(str&lt;BR /&gt;ing)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstWaylandSink:waylandsink0: sync = false&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 17, dropped: 0, current: 31.74, average: 31.74&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 17, dropped: 0, current&lt;BR /&gt;: 31.74, average: 31.74&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 32, dropped: 0, current: 29.98, average: 30.89&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 32, dropped: 0, current&lt;BR /&gt;: 29.98, average: 30.89&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 47, dropped: 0, current: 30.00, average: 30.60&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 47, dropped: 0, current&lt;BR /&gt;: 30.00, average: 30.60&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 63, dropped: 0, current: 30.11, average: 30.47&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 63, dropped: 0, current&lt;BR /&gt;: 30.11, average: 30.47&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 78, dropped: 0, current: 30.00, average: 30.38&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 78, dropped: 0, current&lt;BR /&gt;: 30.00, average: 30.38&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 94, dropped: 0, current: 30.03, average: 30.32&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 94, dropped: 0, current&lt;BR /&gt;: 30.03, average: 30.32&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 109, dropped: 0, current: 30.00, average: 30.28&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 109, dropped: 0, curren&lt;BR /&gt;t: 30.00, average: 30.28&lt;BR /&gt;Got EOS from element "pipeline0".&lt;BR /&gt;Execution ended after 0:00:04.251347925&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;Setting pipeline to READY ...&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;&lt;STRONG&gt;Total showed frames (121), playing for (0:00:04.251560180), fps (28.460).&lt;/STRONG&gt;&lt;BR /&gt;Freeing pipeline ...&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appsink:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;root@imx8mmevk:~# gst-launch-1.0 -v v4l2src &lt;STRONG&gt;device=/dev/video0 num-buffers=120&lt;/STRONG&gt; ! "video/x-raw, width=320, height=240, framerate=(fraction)30/1" ! fpsdisplaysink sync=false &lt;STRONG&gt;video-sink="appsink"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;Pipeline is live and does not need PREROLL ...sync=false video-sink="wayland&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstAppSink:appsink0: sync = false&lt;BR /&gt;Setting pipeline to PLAYING ...&lt;BR /&gt;New clock: GstSystemClock&lt;BR /&gt;/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)320, height=(int)240&lt;BR /&gt;, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt7&lt;BR /&gt;09, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)320, height=(i&lt;BR /&gt;nt)240, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(stri&lt;BR /&gt;ng)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = vi&lt;BR /&gt;deo/x-raw, width=(int)320, height=(int)240, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ra&lt;BR /&gt;tio=(fraction)1/1, colorimetry=(string)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:sr&lt;BR /&gt;c: caps = video/x-raw(memory:SystemMemory, meta:GstVideoOverlayComposition), width=(int)320, height=(int)2&lt;BR /&gt;40, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)b&lt;BR /&gt;t709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstAppSink:appsink0.GstPad:sink: caps = video/x-r&lt;BR /&gt;aw(memory:SystemMemory, meta:GstVideoOverlayComposition), width=(int)320, height=(int)240, format=(string)&lt;BR /&gt;YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, interlace-mod&lt;BR /&gt;e=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:sr&lt;BR /&gt;c: caps = video/x-raw, width=(int)320, height=(int)240, format=(string)YUY2, framerate=(fraction)30/1, pix&lt;BR /&gt;el-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstAppSink:appsink0.GstPad:sink: caps = video/x-r&lt;BR /&gt;aw, width=(int)320, height=(int)240, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fr&lt;BR /&gt;action)1/1, colorimetry=(string)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:vi&lt;BR /&gt;deo_sink: caps = video/x-raw, width=(int)320, height=(int)240, format=(string)YUY2, framerate=(fraction)30&lt;BR /&gt;/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = video/x-raw, width=(int)&lt;BR /&gt;320, height=(int)240, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, col&lt;BR /&gt;orimetry=(string)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)320, height=(&lt;BR /&gt;int)240, format=(string)YUY2, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(str&lt;BR /&gt;ing)bt709, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstAppSink:appsink0: sync = false&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 16, dropped: 0, current: 31.99, average: 31.99&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 16, dropped: 0, current&lt;BR /&gt;: 31.99, average: 31.99&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 31, dropped: 0, current: 29.98, average: 30.98&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 31, dropped: 0, current&lt;BR /&gt;: 29.98, average: 30.98&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 46, dropped: 0, current: 29.99, average: 30.65&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 46, dropped: 0, current&lt;BR /&gt;: 29.99, average: 30.65&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 61, dropped: 0, current: 30.00, average: 30.49&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 61, dropped: 0, current&lt;BR /&gt;: 30.00, average: 30.49&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 77, dropped: 0, current: 30.07, average: 30.40&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 77, dropped: 0, current&lt;BR /&gt;: 30.07, average: 30.40&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 93, dropped: 0, current: 30.07, average: 30.34&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 93, dropped: 0, current&lt;BR /&gt;: 30.07, average: 30.34&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = r&lt;BR /&gt;endered: 108, dropped: 0, current: 30.00, average: 30.30&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 108, dropped: 0, curren&lt;BR /&gt;t: 30.00, average: 30.30&lt;BR /&gt;^Chandling interrupt. &lt;STRONG&gt;(IT DOES NOT STOP ALONE!)&lt;/STRONG&gt;&lt;BR /&gt;Interrupt: Stopping pipeline ...&lt;BR /&gt;Execution ended after 0:00:11.726109829&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;Setting pipeline to READY ...&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;Freeing pipeline ...&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We do not have the same results than waylandsink, but note that every fdpdisplaysink print contains: &lt;STRONG&gt;dropped: 0&lt;/STRONG&gt;.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So please, can you share the OpenCV application?&lt;/P&gt;&lt;P&gt;Plus, what is the camera used here? Note that 320x240 is a very low resolution, and it should not required the sync=false usage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2020 18:00:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011951#M149863</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-03-20T18:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer dropping frames (opencv videocapture)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011952#M149864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using the devkit camera module (&lt;A class="link-titled" href="https://www.nxp.com/part/MINISASTOCSI#/" rel="nofollow noopener noreferrer" title="https://www.nxp.com/part/MINISASTOCSI#/" target="_blank"&gt;MINISASTOCSI Product Information|NXP&lt;/A&gt;)&amp;nbsp;which uses an OV5640 module The camera information is shown below if that is usefull, does this match with yours?&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;root@imx8mmevk:~# v4l2-ctl -D --list-formats-ext
Driver Info:
        Driver name      : mx6s-csi
        Card type        : i.MX6S_CSI
        Bus info         : platform:32e20000.csi1_bridge
        Driver version   : 4.19.35
        Capabilities     : 0x84200001
                Video Capture
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04200001
                Video Capture
                Streaming
                Extended Pix Format
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'YUYV' (YUYV 4:2:2)
                Size: Discrete 640x480
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 320x240
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 720x480
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 1280x720
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 1920x1080
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 2592x1944
                        Interval: Discrete 0.067s (15.000 fps)
                Size: Discrete 0x0‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested without the&amp;nbsp;sync=false flag in the fpsdisplaysync and this makes no diference to the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sharing the full CV application will be tricky (will need to sort out an NDA and make some changes so it can be compiled outside of our build enviroment) and most likley not perticualy usefull as it doesent give much in the way of diagnostic data. Our tests where we have tested the camera framerate (seperate from the processing logic) on the imx development board&amp;nbsp;are carried out with the fps test program&amp;nbsp;included in the previous post or the original performance test program which is very similar the one &lt;SPAN&gt;previous post&lt;/SPAN&gt; but with some extra cpu performance tests added at the end (the&amp;nbsp;fps test tool shared above is derived from the larger performance test&amp;nbsp;program with the cpu tests deleted and the external functions contents moved inline). A new feature we added to the fps test tool since the original post is a per frame capture time, the test program posted before has now been expanded to include the delay in getting each frame to the output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;cstdio&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;iostream&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;chrono&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;numeric&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;opencv2/core/mat.hpp&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;opencv2/highgui/highgui.hpp&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;opencv2/videoio.hpp&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;



&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;main&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; argc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;char&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; argv&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;

    cv&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;VideoCapture &lt;SPAN class="token function"&gt;cap&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;cout &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; cap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getBackendName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;endl&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    cap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;set&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cv&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;CAP_PROP_BUFFERSIZE&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    cap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;set&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cv&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;CAP_PROP_FRAME_WIDTH&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; static_cast&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;640&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    cap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;set&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cv&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;CAP_PROP_FRAME_HEIGHT&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; static_cast&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;480&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    cv&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;Mat img&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;//perform a few initial captures to ensure correct setup&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        cap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;read&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;img&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

    std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;cout &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Camera framerate"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;endl&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;//create time variables&lt;/SPAN&gt;
    std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;time_point&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;steady_clock&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; starttime&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;time_point&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;steady_clock&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; stoptime&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    starttime &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;steady_clock&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;now&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;time_point&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;steady_clock&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; framestarttime &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;steady_clock&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;now&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        cap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;read&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;img&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;time_point&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;steady_clock&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; framestoptime &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;steady_clock&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;now&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; time &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;duration_cast&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;milliseconds&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;framestoptime &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; framestarttime&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;cout &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; time &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;endl&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    stoptime &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;steady_clock&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;now&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;


    &lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; time &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;duration_cast&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;chrono&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;milliseconds&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;stoptime &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; starttime&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; fps &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;cout &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"FPS = "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; fps &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"("&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; time&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;200&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"s)"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; std&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;endl&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cut down output from the program above running with GST_DEBUG=2 is shown below.&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;0:00:00.054341855  8739     0x2892c980 WARN                    v4l2 v4l2_calls.c:548:gst_v4l2_subscribe_event:&amp;lt;v4l2src0&amp;gt; Cannot subscribe V4L2_EVENT_SOURCE_CHANGE or V4L2_EVENT_EOS event for device '/dev/video0'.
0:00:00.911147891  8739     0x2893e800 WARN          v4l2bufferpool gstv4l2bufferpool.c:1223:gst_v4l2_buffer_pool_dqbuf:&amp;lt;v4l2src0:pool:src&amp;gt; Driver should never set v4l2_buffer.field to ANY
GSTREAMER
0:00:02.511571329  8739     0x2892c980 WARN                    v4l2 v4l2_calls.c:548:gst_v4l2_subscribe_event:&amp;lt;v4l2src0&amp;gt; Cannot subscribe V4L2_EVENT_SOURCE_CHANGE or V4L2_EVENT_EOS event for device '/dev/video0'.
0:00:03.445758476  8739     0x2893e800 WARN          v4l2bufferpool gstv4l2bufferpool.c:1223:gst_v4l2_buffer_pool_dqbuf:&amp;lt;v4l2src0:pool:src&amp;gt; Driver should never set v4l2_buffer.field to ANY
0:00:05.041278859  8739     0x2892c980 WARN                    v4l2 v4l2_calls.c:548:gst_v4l2_subscribe_event:&amp;lt;v4l2src0&amp;gt; Cannot subscribe V4L2_EVENT_SOURCE_CHANGE or V4L2_EVENT_EOS event for device '/dev/video0'.
0:00:05.918136869  8739     0x2893e800 WARN          v4l2bufferpool gstv4l2bufferpool.c:1223:gst_v4l2_buffer_pool_dqbuf:&amp;lt;v4l2src0:pool:src&amp;gt; Driver should never set v4l2_buffer.field to ANY
0:00:05.940245490  8739     0x2892c980 WARN                    v4l2 v4l2_calls.c:548:gst_v4l2_subscribe_event:&amp;lt;v4l2src0&amp;gt; Cannot subscribe V4L2_EVENT_SOURCE_CHANGE or V4L2_EVENT_EOS event for device '/dev/video0'.
0:00:06.744731819  8739     0x2893e800 WARN          v4l2bufferpool gstv4l2bufferpool.c:1223:gst_v4l2_buffer_pool_dqbuf:&amp;lt;v4l2src0:pool:src&amp;gt; Driver should never set v4l2_buffer.field to ANY
0:00:06.854458540  8739     0x2893e800 WARN                 v4l2src gstv4l2src.c:976:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:00.913512905
0:00:06.964166886  8739     0x2893e800 WARN                 v4l2src gstv4l2src.c:976:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.023223905
Camera framerate
0.036
0:00:07.073884982  8739     0x2893e800 WARN                 v4l2src gstv4l2src.c:976:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.132903405
0.072
0.037
0:00:07.183563578  8739     0x2893e800 WARN                 v4l2src gstv4l2src.c:976:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.242613655
0.072
0.036
0:00:07.293251548  8739     0x2893e800 WARN                 v4l2src gstv4l2src.c:976:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.352293405
0.073
0.037

The above repeats several hundred times

0:01:01.484238939  8739     0x2893e800 WARN                 v4l2src gstv4l2src.c:976:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:55.543283280
0.072
0.037
0:01:01.593947160  8739     0x2893e800 WARN                 v4l2src gstv4l2src.c:976:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:55.652993280
0.071
0.037
0:01:01.703659756  8739     0x2893e800 WARN                 v4l2src gstv4l2src.c:976:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:55.762703405
0.072
0.037
0:01:01.813340727  8739     0x2893e800 WARN                 v4l2src gstv4l2src.c:976:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:55.872383530
0.072
FPS = 18.2319(0.274245s)





‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If it is usefull I can send the Gstreamer debug log with a higher log level from running the application, just let me know where to send it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your not encountering the same issue could this be a defect in the development boards camera, is there a camera self test tool which can rule this in or out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2020 15:17:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011952#M149864</guid>
      <dc:creator>tyler_ward</dc:creator>
      <dc:date>2020-03-25T15:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer dropping frames (opencv videocapture)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011953#M149865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did all the tests once more and I confirm there is no dropped frame from our side:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;root@imx8mmevk:~# gst-launch-1.0 -v v4l2src &lt;STRONG&gt;device=/dev/video0 num-buffers=120&lt;/STRONG&gt; ! "video/x-raw, width=320, height=240, framerate=(fraction)30/1" ! fpsdisplaysink sync=false &lt;STRONG&gt;video-sink="waylandsink"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstWaylandSink:waylandsink0: sync = false&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setting pipeline to PLAYING ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;New clock: GstSystemClock&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)YUY2, pixel-aspect-ratio=(fraction)1/1, colorimetry=(se&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)YUY2, pixel-aspect-ratio=(fraction)1/1, colorimee&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)YUY2, pixel-e&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:src: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)e&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstWaylandSink:waylandsink0.GstPad:sink: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)YUY2, pixele&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:video_sink: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(e&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)YUY2, pixel-aspect-ratio=(fractione&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)YUY2, pixel-aspect-ratio=(fraction)1/1, colorime&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0:00:00.431138500&amp;nbsp; 4126&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xd2c7e30 WARN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; waylandsink wlwindow.c:333:gst_wl_window_new_internal: init surface_state fail, fallback to scale=1 fullscreen (1920x1048)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstWaylandSink:waylandsink0: sync = false&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 17, dropped: 0, current: 31.99, average: 31.99&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 17, dropped: 0, current: 31.99, average: 31.99&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 32, dropped: 0, current: 29.97, average: 31.01&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 32, dropped: 0, current: 29.97, average: 31.01&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 48, dropped: 0, current: 29.84, average: 30.61&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 48, dropped: 0, current: 29.84, average: 30.61&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 63, dropped: 0, current: 30.00, average: 30.46&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 63, dropped: 0, current: 30.00, average: 30.46&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 79, dropped: 0, current: 30.07, average: 30.38&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 79, dropped: 0, current: 30.07, average: 30.38&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 95, dropped: 0, current: 30.09, average: 30.33&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 95, dropped: 0, current: 30.09, average: 30.33&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 111, dropped: 0, current: 29.84, average: 30.26&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 111, dropped: 0, current: 29.84, average: 30.26&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Got EOS from element "pipeline0".&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Execution ended after 0:00:04.249358375&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setting pipeline to PAUSED ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setting pipeline to READY ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setting pipeline to NULL ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Total showed frames (121), playing for (0:00:04.249576375), fps (28.473).&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Freeing pipeline ...&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;root@imx8mmevk:~# gst-launch-1.0 -v v4l2src &lt;STRONG&gt;device=/dev/video0 num-buffers=120&lt;/STRONG&gt; ! "video/x-raw, width=320, height=240, framerate=(fraction)30/1" ! fpsdisplaysink sync=false &lt;STRONG&gt;video-sink="appsink"&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;sdisplaysink sync=false video-sink="appsink"rate=(fraction)30/1" ! fps&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setting pipeline to PAUSED ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0:00:00.148373875&amp;nbsp; 4132&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x3fdf150 WARN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v4l2 v4l2_calls.c:548:gst_v4l2_subscribe_event:&amp;lt;v4l2src0&amp;gt; Cannot subscribe V4L2_EVENT_SOURCE_CHANGE or V4L2_EVENT_EOS event for device '/dev.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Pipeline is live and does not need PREROLL ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstAppSink:appsink0: sync = false&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setting pipeline to PLAYING ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;New clock: GstSystemClock&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)YUY2, pixel-aspect-ratio=(fraction)1/1, colorimetry=(se&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)YUY2, pixel-aspect-ratio=(fraction)1/1, colorimee&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)YUY2, pixel-e&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:src: caps = video/x-raw(memory:SystemMemory, meta:GstVideoOverlayComposition), width=(int)320, heige&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstAppSink:appsink0.GstPad:sink: caps = video/x-raw(memory:SystemMemory, meta:GstVideoOverlayComposition), width=(int)320, height=(int)240, framere&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:src: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)e&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstAppSink:appsink0.GstPad:sink: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)YUY2, pixel-aspect-e&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay.GstPad:video_sink: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(e&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)YUY2, pixel-aspect-ratio=(fractione&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)YUY2, pixel-aspect-ratio=(fraction)1/1, colorime&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0:00:00.159548125&amp;nbsp; 4132&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x3f6ed90 WARN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v4l2bufferpool gstv4l2bufferpool.c:811:gst_v4l2_buffer_pool_start:&amp;lt;v4l2src0:pool:src&amp;gt; Uncertain or not enough buffers, enabling copy threshold&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstAppSink:appsink0: sync = false&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 16, dropped: 0, current: 31.99, average: 31.99&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 16, dropped: 0, current: 31.99, average: 31.99&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 31, dropped: 0, current: 29.98, average: 30.99&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 31, dropped: 0, current: 29.98, average: 30.99&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 46, dropped: 0, current: 29.91, average: 30.63&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 46, dropped: 0, current: 29.91, average: 30.63&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 62, dropped: 0, current: 30.14, average: 30.50&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 62, dropped: 0, current: 30.14, average: 30.50&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 78, dropped: 0, current: 30.07, average: 30.41&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 78, dropped: 0, current: 30.07, average: 30.41&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 94, dropped: 0, current: 29.86, average: 30.32&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 94, dropped: 0, current: 29.86, average: 30.32&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 110, dropped: 0, current: 30.07, average: 30.28&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 110, dropped: 0, current: 30.07, average: 30.28&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;^Chandling interrupt.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Interrupt: Stopping pipeline ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Execution ended after 0:00:06.059819750&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setting pipeline to PAUSED ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setting pipeline to READY ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setting pipeline to NULL ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Freeing pipeline ...&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was checking internally and we do not support the OpenCV application, but apparently there is no problem on it as well.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you could try to change the OpenCV.VideoCapture from v4l2 directly to a GStreamer pipeline and add some queues on it to avoid this kind of message, but as I said, there is no guarantee it will fix the issue, once we are not seeing it internally.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, let me know if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 13:34:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011953#M149865</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-04-22T13:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer dropping frames (opencv videocapture)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011954#M149866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BioTICFSL,&lt;/P&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please try tu run again this las command with GST_DEBUG set to 3, e.g.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GST_DEBUG=3&amp;nbsp;gst-launch-1.0 -v v4l2src device=/dev/video0 num-buffers=120 ! "video/x-raw, width=320, height=240, framerate=(fraction)30/1" ! fpsdisplaysink sync=false video-sink="appsink"&lt;BR /&gt;sdisplaysink sync=false video-sink="appsink"rate=(fraction)30/1" ! fps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my imx8mmevk + ov5640 board (MINISASTOCSI) I clearly see lost frames, but fpsdisplaysink does not seem to be aware of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An exerpt of the log :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstAppSink:appsink0: sync = false&lt;BR /&gt;0:00:01.155784521 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.064818513&lt;BR /&gt;0:00:01.265466476 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.174497138&lt;BR /&gt;0:00:01.375178307 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.284208138&lt;BR /&gt;0:00:01.484862263 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.393887513&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 11, dropped: 0, current: 21.45, average: 21.45&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 11, dropped: 0, current: 21.45, average: 21.45&lt;BR /&gt;0:00:01.594345091 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.503597638&lt;BR /&gt;0:00:01.704278924 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.613309262&lt;BR /&gt;0:00:01.813961380 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.722985513&lt;BR /&gt;0:00:01.923640960 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.832696263&lt;BR /&gt;0:00:02.032730409 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:01.941794388&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 21, dropped: 0, current: 18.25, average: 19.80&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 21, dropped: 0, current: 18.25, average: 19.80&lt;BR /&gt;0:00:02.142941620 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:02.052093763&lt;BR /&gt;0:00:02.252737702 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:02.161793513&lt;BR /&gt;0:00:02.362439533 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:02.271473263&lt;BR /&gt;0:00:02.472144864 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:02.381184388&lt;BR /&gt;0:00:02.581866695 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:02.490893513&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstTextOverlay:fps-display-text-overlay: text = rendered: 31, dropped: 0, current: 18.20, average: 19.25&lt;BR /&gt;/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 31, dropped: 0, current: 18.20, average: 19.25&lt;BR /&gt;0:00:02.691412274 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:02.600586638&lt;BR /&gt;0:00:02.801213106 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:02.710284388&lt;BR /&gt;0:00:02.911020313 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:02.819994638&lt;BR /&gt;0:00:03.020616017 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:02.929675513&lt;BR /&gt;0:00:03.130324473 4666 0x363e04f0 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:&amp;lt;v4l2src0&amp;gt; lost frames detected: count = 1 - ts: 0:00:03.039381763&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using GST_DEBUG=4 will show you that v4l2src capture only get 2/3 of total frames. On can see 2 frames OK, 3rd frame lost, 2 frames ok, 3rd frame lost, and so on. This is surely a driver problem, because it is too much steasy rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried many pipeline configurations and observed that&amp;nbsp;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;gst source = v4l2src +gst sink = fakesink does not lose frames&amp;nbsp;&lt;/P&gt;&lt;P&gt;gst source = videotestsrc +gst sink = appsink does not lose frames&amp;nbsp;&lt;/P&gt;&lt;P&gt;gst source = v4l2src + gst sink = appsink does lose frames !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously there is a problem with the combination of v4l2sr and appsink when both are used in gstreamer pipeline.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2020 06:18:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011954#M149866</guid>
      <dc:creator>albanxiii</dc:creator>
      <dc:date>2020-04-29T06:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer dropping frames (opencv videocapture)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011955#M149867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I an add kernel driver log showing that frames are missing at the driver level (mx6s_capture.c is compiled with DEBUG flag and debug is set to 2 in mxc_mipi_csi.c ) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[86463.357435 &amp;lt; 0.023764&amp;gt;] mx6s-csi 32e20000.csi1_bridge: csi v4l2 busfreq high request.&lt;BR /&gt;[86463.358585 &amp;lt; 0.001150&amp;gt;] mx6s-csi 32e20000.csi1_bridge: No more fmt&lt;BR /&gt;[86463.358598 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: VIDIOC_CROPCAP not implemented&lt;BR /&gt;[86463.360416 &amp;lt; 0.001818&amp;gt;] mx6s-csi 32e20000.csi1_bridge: set to pixelformat 'YUYV-1'&lt;BR /&gt;[86464.114007 &amp;lt; 0.753591&amp;gt;] mx6s-csi 32e20000.csi1_bridge: count=4, size=0&lt;BR /&gt;[86464.114016 &amp;lt; 0.000009&amp;gt;] size=153600&lt;BR /&gt;[86464.119463 &amp;lt; 0.005447&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000c16dd1b5) 0x00000000ef9986ff 0&lt;BR /&gt;[86464.119510 &amp;lt; 0.000047&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000ad9f461d) 0x00000000494d1555 0&lt;BR /&gt;[86464.119540 &amp;lt; 0.000030&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86464.119569 &amp;lt; 0.000029&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86464.119615 &amp;lt; 0.000046&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000c16dd1b5) 0x00000000ef9986ff 153600&lt;BR /&gt;[86464.119621 &amp;lt; 0.000006&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000ad9f461d) 0x00000000494d1555 153600&lt;BR /&gt;[86464.119629 &amp;lt; 0.000008&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.119635 &amp;lt; 0.000006&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.132024 &amp;lt; 0.012389&amp;gt;] mxc_mipi-csi.0: mipi_csis_s_stream: 1, state: 0x1&lt;BR /&gt;[86464.132047 &amp;lt; 0.000023&amp;gt;] mxc_mipi-csi.0: fmt: 0x2008, 320 x 240&lt;BR /&gt;[86464.132061 &amp;lt; 0.000014&amp;gt;] ov5640_mipi 2-003c: s_stream: 1&lt;BR /&gt;[86464.241132 &amp;lt; 0.109071&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000c16dd1b5) 0x00000000ef9986ff 153600&lt;BR /&gt;[86464.277937 &amp;lt; 0.036805&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000ad9f461d) 0x00000000494d1555 153600&lt;BR /&gt;[86464.314490 &amp;lt; 0.036553&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.315481 &amp;lt; 0.000991&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86464.315494 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.351050 &amp;lt; 0.035556&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.352113 &amp;lt; 0.001063&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86464.352127 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.424197 &amp;lt; 0.072070&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.425150 &amp;lt; 0.000953&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86464.425163 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.460759 &amp;lt; 0.035596&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.461744 &amp;lt; 0.000985&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86464.461757 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.533876 &amp;lt; 0.072119&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.534830 &amp;lt; 0.000954&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86464.534845 &amp;lt; 0.000015&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.570435 &amp;lt; 0.035590&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.571388 &amp;lt; 0.000953&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86464.571402 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.643585 &amp;lt; 0.072183&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.644546 &amp;lt; 0.000961&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86464.644559 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.680145 &amp;lt; 0.035586&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.681092 &amp;lt; 0.000947&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86464.681105 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.753262 &amp;lt; 0.072157&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.754225 &amp;lt; 0.000963&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86464.754239 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.789859 &amp;lt; 0.035620&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.790819 &amp;lt; 0.000960&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86464.790832 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.862970 &amp;lt; 0.072138&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.863732 &amp;lt; 0.000762&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86464.863742 &amp;lt; 0.000010&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.899535 &amp;lt; 0.035793&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.900469 &amp;lt; 0.000934&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86464.900483 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86464.972681 &amp;lt; 0.072198&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86464.973642 &amp;lt; 0.000961&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86464.973656 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.009241 &amp;lt; 0.035585&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.010161 &amp;lt; 0.000920&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86465.010174 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.082357 &amp;lt; 0.072183&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.083325 &amp;lt; 0.000968&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86465.083338 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.118951 &amp;lt; 0.035613&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.119904 &amp;lt; 0.000953&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86465.119918 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.192066 &amp;lt; 0.072148&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.192999 &amp;lt; 0.000933&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86465.193013 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.228627 &amp;lt; 0.035614&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.229569 &amp;lt; 0.000942&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86465.229581 &amp;lt; 0.000012&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.301163 &amp;lt; 0.071582&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.302088 &amp;lt; 0.000925&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86465.302102 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.338334 &amp;lt; 0.036232&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.339308 &amp;lt; 0.000974&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86465.339321 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.411460 &amp;lt; 0.072139&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.412304 &amp;lt; 0.000844&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86465.412316 &amp;lt; 0.000012&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.448012 &amp;lt; 0.035696&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.448929 &amp;lt; 0.000917&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86465.448943 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.521159 &amp;lt; 0.072216&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.522091 &amp;lt; 0.000932&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86465.522104 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.557722 &amp;lt; 0.035618&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.558673 &amp;lt; 0.000951&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86465.558686 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.630838 &amp;lt; 0.072152&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.631791 &amp;lt; 0.000953&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86465.631805 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.667430 &amp;lt; 0.035625&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.668382 &amp;lt; 0.000952&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86465.668396 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.740547 &amp;lt; 0.072151&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.741495 &amp;lt; 0.000948&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86465.741509 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.777110 &amp;lt; 0.035601&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.778062 &amp;lt; 0.000952&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86465.778076 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.850255 &amp;lt; 0.072179&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.851219 &amp;lt; 0.000964&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86465.851232 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.886822 &amp;lt; 0.035590&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.887772 &amp;lt; 0.000950&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86465.887786 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.959945 &amp;lt; 0.072159&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.960769 &amp;lt; 0.000824&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86465.960781 &amp;lt; 0.000012&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86465.996527 &amp;lt; 0.035746&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86465.997459 &amp;lt; 0.000932&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86465.997472 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86466.069643 &amp;lt; 0.072171&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86466.070559 &amp;lt; 0.000916&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86466.070573 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86466.106204 &amp;lt; 0.035631&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86466.107165 &amp;lt; 0.000961&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86466.107179 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86466.179352 &amp;lt; 0.072173&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86466.180362 &amp;lt; 0.001010&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86466.180377 &amp;lt; 0.000015&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86466.215913 &amp;lt; 0.035536&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86466.216873 &amp;lt; 0.000960&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86466.216887 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86466.289031 &amp;lt; 0.072144&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86466.289958 &amp;lt; 0.000927&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86466.289973 &amp;lt; 0.000015&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86466.325595 &amp;lt; 0.035622&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86466.326538 &amp;lt; 0.000943&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86466.326552 &amp;lt; 0.000014&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86466.398736 &amp;lt; 0.072184&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86466.399664 &amp;lt; 0.000928&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86466.399677 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86466.435304 &amp;lt; 0.035627&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86466.436271 &amp;lt; 0.000967&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86466.436284 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86466.508424 &amp;lt; 0.072140&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86466.509249 &amp;lt; 0.000825&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000963a3046) 0x000000006f2e31f8 0&lt;BR /&gt;[86466.509261 &amp;lt; 0.000012&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000963a3046) 0x000000006f2e31f8 153600&lt;BR /&gt;[86466.545006 &amp;lt; 0.035745&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_csi_frame_done (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86466.545953 &amp;lt; 0.000947&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000912735a2) 0x00000000dadf1f77 0&lt;BR /&gt;[86466.545966 &amp;lt; 0.000013&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000912735a2) 0x00000000dadf1f77 153600&lt;BR /&gt;[86466.585498 &amp;lt; 0.039532&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000c16dd1b5) 0x00000000ef9986ff 0&lt;BR /&gt;[86466.585514 &amp;lt; 0.000016&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000c16dd1b5) 0x00000000ef9986ff 153600&lt;BR /&gt;[86466.585534 &amp;lt; 0.000020&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_prepare (vb=0x00000000ad9f461d) 0x00000000494d1555 0&lt;BR /&gt;[86466.585541 &amp;lt; 0.000007&amp;gt;] mx6s-csi 32e20000.csi1_bridge: mx6s_videobuf_queue (vb=0x00000000ad9f461d) 0x00000000494d1555 153600&lt;BR /&gt;[86466.585581 &amp;lt; 0.000040&amp;gt;] mxc_mipi-csi.0: mipi_csis_s_stream: 0, state: 0x3&lt;BR /&gt;[86466.585589 &amp;lt; 0.000008&amp;gt;] ov5640_mipi 2-003c: s_stream: 0&lt;BR /&gt;[86466.591050 &amp;lt; 0.005461&amp;gt;] mxc_mipi-csi.0: Frame End events: 0&lt;BR /&gt;[86466.595585 &amp;lt; 0.004535&amp;gt;] mxc_mipi-csi.0: Frame Start events: 0&lt;BR /&gt;[86466.600289 &amp;lt; 0.004704&amp;gt;] mxc_mipi-csi.0: Non-image data after odd frame events: 0&lt;BR /&gt;[86466.606641 &amp;lt; 0.006352&amp;gt;] mxc_mipi-csi.0: Non-image data before odd frame events: 0&lt;BR /&gt;[86466.613078 &amp;lt; 0.006437&amp;gt;] mxc_mipi-csi.0: Non-image data after even frame events: 0&lt;BR /&gt;[86466.619518 &amp;lt; 0.006440&amp;gt;] mxc_mipi-csi.0: Non-image data before even frame events: 0&lt;BR /&gt;[86466.626043 &amp;lt; 0.006525&amp;gt;] mxc_mipi-csi.0: Unknown Error events: 0&lt;BR /&gt;[86466.630920 &amp;lt; 0.004877&amp;gt;] mxc_mipi-csi.0: CRC Error events: 0&lt;BR /&gt;[86466.635447 &amp;lt; 0.004527&amp;gt;] mxc_mipi-csi.0: ECC Error events: 0&lt;BR /&gt;[86466.639977 &amp;lt; 0.004530&amp;gt;] mxc_mipi-csi.0: FIFO Overflow Error events: 0&lt;BR /&gt;[86466.645375 &amp;lt; 0.005398&amp;gt;] mxc_mipi-csi.0: Lost Frame End Error events: 0&lt;BR /&gt;[86466.650858 &amp;lt; 0.005483&amp;gt;] mxc_mipi-csi.0: Lost Frame Start Error events: 0&lt;BR /&gt;[86466.656514 &amp;lt; 0.005656&amp;gt;] mxc_mipi-csi.0: SOT Error events: 0&lt;BR /&gt;[86466.662753 &amp;lt; 0.006239&amp;gt;] mx6s-csi 32e20000.csi1_bridge: csi v4l2 busfreq high release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just look at the time interval between successive mx6s_csi_frame_done and you'll see the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point I just pointed a part of the problem, still have no solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2020 15:26:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011955#M149867</guid>
      <dc:creator>albanxiii</dc:creator>
      <dc:date>2020-04-29T15:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer dropping frames (opencv videocapture)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011956#M149868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you let me know which operating system build you are using? If it was built by yocto if you can let me know the repo branch and manifest i can build that and test with the same version if not is there a download for the version you are using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2020 14:50:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011956#M149868</guid>
      <dc:creator>tyler_ward</dc:creator>
      <dc:date>2020-05-01T14:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer dropping frames (opencv videocapture)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011957#M149869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tyler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My build system is Ubuntu 19.04. I build yocto image based on NXP i.Mx release&amp;nbsp;4.19.35_1.1.0&lt;/P&gt;&lt;P&gt;I copy/paste the quick start guide for your convenience :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Quick Start Guide&lt;BR /&gt;-----------------&lt;BR /&gt;See the i.MX Yocto Project User's Guide for instructions on installing repo.&lt;/P&gt;&lt;P&gt;First install the i.MX Linux BSP repo&lt;BR /&gt;$: repo init -u git://source.codeaurora.org/external/imx/imx-manifest.git -b imx-linux-warrior -m imx-4.19.35-1.1.0.xml&lt;/P&gt;&lt;P&gt;Download the Yocto Project Layers:&lt;BR /&gt;$: repo sync&lt;/P&gt;&lt;P&gt;If errors on repo init, remove the .repo directory and try repo init again.&lt;/P&gt;&lt;P&gt;Run i.MX Linux Yocto Project Setup:&lt;BR /&gt;$: [MACHINE=&amp;lt;machine&amp;gt;] [DISTRO=fsl-imx-&amp;lt;backend&amp;gt;] source ./fsl-setup-release.sh -b &amp;lt;build folder&amp;gt;&lt;/P&gt;&lt;P&gt;where&lt;BR /&gt; &amp;lt;machine&amp;gt; defaults to imx6qsabresd&lt;BR /&gt; &amp;lt;build folder&amp;gt; specifies the build folder name&lt;/P&gt;&lt;P&gt;After this your system will be configured to start a Yocto Project build.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically image from which the log come from is buld according to this recipe (only relevant parts are showed here) :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;inherit extrausers&lt;BR /&gt;require recipes-fsl/images/fsl-image-multimedia-full.bb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CORE_IMAGE_EXTRA_INSTALL += " \&lt;BR /&gt; v4l-utils \&lt;BR /&gt; opencv-samples \&lt;BR /&gt; systemd \&lt;BR /&gt; systemd-conf \&lt;BR /&gt; openssh \&lt;BR /&gt; v4l2loopback \&lt;BR /&gt; imx-gst1.0-plugin \&lt;BR /&gt; gstreamer1.0-libav \&lt;BR /&gt; gstreamer1.0-libav-dev \&lt;BR /&gt; gstreamer1.0-dev \&lt;BR /&gt; libopencv-core-dev \&lt;BR /&gt; libopencv-highgui-dev \&lt;BR /&gt; libopencv-imgproc-dev \&lt;BR /&gt; libopencv-objdetect-dev \&lt;BR /&gt; libopencv-ml-dev \&lt;BR /&gt; opencv-apps \&lt;BR /&gt; opencv-dev \&lt;BR /&gt; python-modules \&lt;BR /&gt; "&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionnally as said it patched linux-imx (with a .bbappend) to enable low level CSI/MIPI debug :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;diff --git a/drivers/media/platform/mxc/capture/mx6s_capture.c b/drivers/media/platform/mxc/capture/mx6s_capture.c&lt;BR /&gt;index f57817ab2647..d65d0f15d62d 100644&lt;BR /&gt;--- a/drivers/media/platform/mxc/capture/mx6s_capture.c&lt;BR /&gt;+++ b/drivers/media/platform/mxc/capture/mx6s_capture.c&lt;BR /&gt;@@ -18,6 +18,9 @@&lt;BR /&gt; *&lt;BR /&gt; * @ingroup CSI&lt;BR /&gt; */&lt;BR /&gt;+&lt;BR /&gt;+#define DEBUG&lt;BR /&gt;+&lt;BR /&gt; #include &amp;lt;asm/dma.h&amp;gt;&lt;BR /&gt; #include &amp;lt;linux/busfreq-imx.h&amp;gt;&lt;BR /&gt; #include &amp;lt;linux/clk.h&amp;gt;&lt;BR /&gt;@@ -756,6 +759,8 @@ static int mx6s_csi_enable(struct mx6s_csi_dev *csi_dev)&lt;/P&gt;&lt;P&gt;if (pix-&amp;gt;field == V4L2_FIELD_INTERLACED)&lt;BR /&gt; csi_tvdec_enable(csi_dev, true);&lt;BR /&gt;+ else&lt;BR /&gt;+ csi_tvdec_enable(csi_dev, false);&lt;/P&gt;&lt;P&gt;/* For mipi csi input only */&lt;BR /&gt; if (csi_dev-&amp;gt;csi_mipi_mode == true) {&lt;BR /&gt;diff --git a/drivers/media/platform/mxc/capture/mxc_mipi_csi.c b/drivers/media/platform/mxc/capture/mxc_mipi_csi.c&lt;BR /&gt;index 0e133301a49f..154fb0c004c6 100644&lt;BR /&gt;--- a/drivers/media/platform/mxc/capture/mxc_mipi_csi.c&lt;BR /&gt;+++ b/drivers/media/platform/mxc/capture/mxc_mipi_csi.c&lt;BR /&gt;@@ -46,7 +46,7 @@&lt;BR /&gt; #include &amp;lt;media/v4l2-subdev.h&amp;gt;&lt;BR /&gt; #include &amp;lt;media/v4l2-device.h&amp;gt;&lt;/P&gt;&lt;P&gt;-static int debug;&lt;BR /&gt;+static int debug = 2;&lt;BR /&gt; module_param(debug, int, 0644);&lt;BR /&gt; MODULE_PARM_DESC(debug, "Debug level (0-2)");&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At th end I wonder if anyone uses iMX8M mini as a camera / video capture system...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2020 11:42:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011957#M149869</guid>
      <dc:creator>albanxiii</dc:creator>
      <dc:date>2020-05-06T11:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer dropping frames (opencv videocapture)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011958#M149870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update : look at&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1018843?commentID=1018843#comment-1018843" title="https://community.nxp.com/message/1018843?commentID=1018843#comment-1018843"&gt;https://community.nxp.com/message/1018843?commentID=1018843#comment-1018843&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solves my problem&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1018843?commentID=1018843#comment-1018718" title="https://community.nxp.com/message/1018843?commentID=1018843#comment-1018718"&gt;https://community.nxp.com/message/1018843?commentID=1018843#comment-1018718&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;- Please enlarge GST_V4L2_MIN_BUFFERS in the following file from 2 to 7&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;/gstreamer1.0-plugins-good/1.12.2-r0/git/sys/v4l2/gstv4l2object.h&amp;nbsp; :&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;#define GST_V4L2_MIN_BUFFERS 7&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1018843?commentID=1018843#comment-1018843" title="https://community.nxp.com/message/1018843?commentID=1018843#comment-1018843"&gt;https://community.nxp.com/message/1018843?commentID=1018843#comment-1018843&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;And please enable&amp;nbsp;dma-coherent in&amp;nbsp;fsl-imx8mq.dtsi for csix_bridge:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;csi1_bridge: csi1_bridge@30a90000 {&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;compatible = "fsl,imx8mq-csi", "fsl,imx6s-csi";&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;reg = &amp;lt;0x0 0x30a90000 0x0 0x10000&amp;gt;;&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;interrupts = &amp;lt;GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;clocks = &amp;lt;&amp;amp;clk IMX8MQ_CLK_DUMMY&amp;gt;,&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;&amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_ROOT&amp;gt;,&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;&amp;lt;&amp;amp;clk IMX8MQ_CLK_DUMMY&amp;gt;;&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;clock-names = "disp-axi", "csi_mclk", "disp_dcic";&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;dma-coherent;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;status = "disabled";&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;};&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 06:25:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011958#M149870</guid>
      <dc:creator>albanxiii</dc:creator>
      <dc:date>2020-06-09T06:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer dropping frames (opencv videocapture)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011959#M149871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for finding that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding those patches fixed the issue (tested on the 4.19.35 bsp) with the gstreamer commandline tests but caused issues with getting the data in opencv if the buffer was too long (log from buffer length 5 coppied below if usefull to anyone). Setting the gstreamer buffer from 2 to either 3 or 4 worked for both gstreamer on the command line and opencv though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0:00:00.349274292 4901 0x21e3bc60 WARN v4l2 v4l2_calls.c:548:gst_v4l2_subscribe_event:&amp;lt;v4l2src0&amp;gt; Cannot subscribe V4L2_EVENT_SOURCE_CHANGE or V4L2_EVENT_EOS event for device '/dev/video0'.&lt;BR /&gt;0:00:01.017272128 4901 0x21f16800 WARN v4l2bufferpool gstv4l2bufferpool.c:1223:gst_v4l2_buffer_pool_dqbuf:&amp;lt;v4l2src0:pool:src&amp;gt; Driver should never set v4l2_buffer.field to ANY&lt;BR /&gt;GSTREAMER&lt;/P&gt;&lt;P&gt;Message from syslogd@imx8mmevk at Thu Jun 11 14:29:49 2020 ...&lt;BR /&gt;imx8mmevk kernel: [ 1548.003012] Internal error: Oops: 96000006 [#1] PREEMPT SMP&lt;/P&gt;&lt;P&gt;Message from syslogd@imx8mmevk at Thu Jun 11 14:29:49 2020 ...&lt;BR /&gt;imx8mmevk kernel: [ 1548.208794] Code: 35ffff91 aa1003e0 d65f03c0 f9800011 (885ffc10)&lt;/P&gt;&lt;P&gt;Message from syslogd@imx8mmevk at Thu Jun 11 14:29:49 2020 ...&lt;BR /&gt;imx8mmevk kernel: [ 1548.017115] Process visionrunner_pe (pid: 4901, stack limit = 0x00000000ad8b3b9f)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 14:36:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-dropping-frames-opencv-videocapture/m-p/1011959#M149871</guid>
      <dc:creator>tyler_ward</dc:creator>
      <dc:date>2020-06-11T14:36:51Z</dc:date>
    </item>
  </channel>
</rss>

