<?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>i.MX ProcessorsのトピックLatency between CSI camera capture to DSI display</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Latency-between-CSI-camera-capture-to-DSI-display/m-p/1264304#M172820</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working on i.MX8M Plus EVK. My purpose it to capture image/video from CSI camera and display it to DSI.&lt;/P&gt;&lt;P&gt;Our requirement is low latency between CSI camera capture to DSI display.&lt;/P&gt;&lt;P&gt;We tried with both Android (imx-android-11.0.0_1.2.0) and Linux (imx-5.4.70-2.3.0) BSPs&lt;/P&gt;&lt;P&gt;In android we use default camera application, where we see ~75 msec latency from actual source which is captured by camera and DSI display.&lt;/P&gt;&lt;P&gt;However, in Linux we use gst-launch-1.0 command, where we tried with different sinks (i.e autovideosink, glimagesink, waylandsink) in each case we&lt;BR /&gt;see around ~130-150 msec.&lt;/P&gt;&lt;P&gt;we tried below command, in all the cases we got almost similar latency (~130-150 msec)&lt;BR /&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! 'video/x-raw,framerate=(fraction)30/1' ! autovideosink&lt;BR /&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! 'video/x-raw,framerate=(fraction)30/1' ! waylandsink&lt;BR /&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! 'video/x-raw,width=720,height=480,framerate=(fraction)30/1' ! glimagesink render-rectangle='&amp;lt;0,0,1280,720&amp;gt;'&lt;/P&gt;&lt;P&gt;To use DSI in linux we are using imx8mp-evk-rm67191.dtb. We are using NXP MIPI CSI Camera module and NXP MX8-DSI-OLED1 .&lt;/P&gt;&lt;P&gt;We thought that Linux would have lower overhead than android so latency would be less. But in actual that doesn't seems so.&lt;/P&gt;&lt;P&gt;Can you clarify, why there is higher latency in Linux use case then android?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darshak&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 11:24:05 GMT</pubDate>
    <dc:creator>darsh_dev</dc:creator>
    <dc:date>2021-04-19T11:24:05Z</dc:date>
    <item>
      <title>Latency between CSI camera capture to DSI display</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Latency-between-CSI-camera-capture-to-DSI-display/m-p/1264304#M172820</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working on i.MX8M Plus EVK. My purpose it to capture image/video from CSI camera and display it to DSI.&lt;/P&gt;&lt;P&gt;Our requirement is low latency between CSI camera capture to DSI display.&lt;/P&gt;&lt;P&gt;We tried with both Android (imx-android-11.0.0_1.2.0) and Linux (imx-5.4.70-2.3.0) BSPs&lt;/P&gt;&lt;P&gt;In android we use default camera application, where we see ~75 msec latency from actual source which is captured by camera and DSI display.&lt;/P&gt;&lt;P&gt;However, in Linux we use gst-launch-1.0 command, where we tried with different sinks (i.e autovideosink, glimagesink, waylandsink) in each case we&lt;BR /&gt;see around ~130-150 msec.&lt;/P&gt;&lt;P&gt;we tried below command, in all the cases we got almost similar latency (~130-150 msec)&lt;BR /&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! 'video/x-raw,framerate=(fraction)30/1' ! autovideosink&lt;BR /&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! 'video/x-raw,framerate=(fraction)30/1' ! waylandsink&lt;BR /&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! 'video/x-raw,width=720,height=480,framerate=(fraction)30/1' ! glimagesink render-rectangle='&amp;lt;0,0,1280,720&amp;gt;'&lt;/P&gt;&lt;P&gt;To use DSI in linux we are using imx8mp-evk-rm67191.dtb. We are using NXP MIPI CSI Camera module and NXP MX8-DSI-OLED1 .&lt;/P&gt;&lt;P&gt;We thought that Linux would have lower overhead than android so latency would be less. But in actual that doesn't seems so.&lt;/P&gt;&lt;P&gt;Can you clarify, why there is higher latency in Linux use case then android?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darshak&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 11:24:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Latency-between-CSI-camera-capture-to-DSI-display/m-p/1264304#M172820</guid>
      <dc:creator>darsh_dev</dc:creator>
      <dc:date>2021-04-19T11:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Latency between CSI camera capture to DSI display</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Latency-between-CSI-camera-capture-to-DSI-display/m-p/1268904#M173288</link>
      <description>&lt;P&gt;Hello darshak_patel,&lt;/P&gt;
&lt;P&gt;The latency should be due to the framework, you can try with GSTLatencytracer to determines src-to-sink latencies by injecting custom events at sources and process them at sinks.&lt;/P&gt;
&lt;P&gt;Also You can also use gst-stats-1.0 to parse the generated log file and get some stats/metrics about the latency.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 13:12:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Latency-between-CSI-camera-capture-to-DSI-display/m-p/1268904#M173288</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2021-04-27T13:12:56Z</dc:date>
    </item>
  </channel>
</rss>

