<?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 IMX7 VideoCapture OpenCV in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX7-VideoCapture-OpenCV/m-p/1076169#M157963</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;i try to read a Video with openCV.&lt;/P&gt;&lt;P&gt;This is the relevant Code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include &amp;lt;opencv2/core/core.hpp&amp;gt;&lt;BR /&gt;#include &amp;lt;opencv2/highgui/highgui.hpp&amp;gt;&lt;BR /&gt;#include &amp;lt;iostream&amp;gt;&lt;BR /&gt;#include &amp;lt;opencv2/videoio.hpp&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using namespace cv;&lt;BR /&gt;using std::string;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; string filename = "testvideo.mp4";&lt;BR /&gt; &lt;SPAN style="color: #ff0000;"&gt;VideoCapture capture(filename);&lt;/SPAN&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the imx7 dual sabre board with the following image specs:&lt;/P&gt;&lt;P&gt;Kernel: L4.14.98&lt;/P&gt;&lt;P&gt;Distro: FSL-IMX-Wayland&lt;/P&gt;&lt;P&gt;FSL-Image.validation-imx&lt;/P&gt;&lt;P&gt;GCC-Compiler (7.3.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following response:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;====== AIUR: 4.4.5 build on Apr 24 2020 03:18:56. ======&lt;BR /&gt; Core: MPEG4PARSER_06.16.01 build on Dec 11 2018 03:04:05&lt;BR /&gt; file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2 &lt;BR /&gt;------------------------&lt;BR /&gt; Track 00 [video_0] Enabled&lt;BR /&gt; Duration: 0:00:20.360000000&lt;BR /&gt; Language: und&lt;BR /&gt; Mime:&lt;BR /&gt; video/x-h264, parsed=(boolean)true, alignment=(string)au, &lt;BR /&gt;stream-format=(string)avc, width=(int)1920, height=(int)1080, &lt;BR /&gt;framerate=( fraction)25/1, &lt;BR /&gt;codec_data=(buffer)01640028ffe1001e67640028acd940780227e5c05a808080a0000003002000000641e30632c001000568e93b2c8bfdf8f800 &lt;BR /&gt;------------------------ ------------------------&lt;BR /&gt; Track 01 [audio_0] Enabled&lt;BR /&gt; Duration: 0:00:20.436666000&lt;BR /&gt; Language: und&lt;BR /&gt; Mime:&lt;BR /&gt; audio/mpeg, mpegversion=(int)4, channels=(int)2, &lt;BR /&gt;rate=(int)48000, bitrate=(int)0, stream-format=(string)raw, &lt;BR /&gt;codec_data=(buffer)119 0 ------------------------ ====== BEEP: 4.4.5 &lt;BR /&gt;build on Apr 24 2020 03:19:03. ======&lt;BR /&gt; Core: AAC decoder Wrapper build on Dec 7 2017 18:13:49&lt;BR /&gt; file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm12_elinux.so.3 &lt;BR /&gt;&lt;SPAN style="color: #ff9900;"&gt;&lt;STRONG&gt;CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8 build on Sep 20 2017 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff9900;"&gt;&lt;STRONG&gt;15:02:14.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;At this point the program is stuck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already found some similar problems with the imx6. &lt;BR /&gt;However, I could not yet apply a meaningful solution.&lt;/P&gt;&lt;P&gt;In case this is an audio-only problem: Only video is relevant for the use case, audio is not needed. Is there a way to ignore this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2020 09:37:11 GMT</pubDate>
    <dc:creator>sebastian_sedlm</dc:creator>
    <dc:date>2020-07-22T09:37:11Z</dc:date>
    <item>
      <title>IMX7 VideoCapture OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX7-VideoCapture-OpenCV/m-p/1076169#M157963</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;i try to read a Video with openCV.&lt;/P&gt;&lt;P&gt;This is the relevant Code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include &amp;lt;opencv2/core/core.hpp&amp;gt;&lt;BR /&gt;#include &amp;lt;opencv2/highgui/highgui.hpp&amp;gt;&lt;BR /&gt;#include &amp;lt;iostream&amp;gt;&lt;BR /&gt;#include &amp;lt;opencv2/videoio.hpp&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using namespace cv;&lt;BR /&gt;using std::string;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; string filename = "testvideo.mp4";&lt;BR /&gt; &lt;SPAN style="color: #ff0000;"&gt;VideoCapture capture(filename);&lt;/SPAN&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the imx7 dual sabre board with the following image specs:&lt;/P&gt;&lt;P&gt;Kernel: L4.14.98&lt;/P&gt;&lt;P&gt;Distro: FSL-IMX-Wayland&lt;/P&gt;&lt;P&gt;FSL-Image.validation-imx&lt;/P&gt;&lt;P&gt;GCC-Compiler (7.3.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following response:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;====== AIUR: 4.4.5 build on Apr 24 2020 03:18:56. ======&lt;BR /&gt; Core: MPEG4PARSER_06.16.01 build on Dec 11 2018 03:04:05&lt;BR /&gt; file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2 &lt;BR /&gt;------------------------&lt;BR /&gt; Track 00 [video_0] Enabled&lt;BR /&gt; Duration: 0:00:20.360000000&lt;BR /&gt; Language: und&lt;BR /&gt; Mime:&lt;BR /&gt; video/x-h264, parsed=(boolean)true, alignment=(string)au, &lt;BR /&gt;stream-format=(string)avc, width=(int)1920, height=(int)1080, &lt;BR /&gt;framerate=( fraction)25/1, &lt;BR /&gt;codec_data=(buffer)01640028ffe1001e67640028acd940780227e5c05a808080a0000003002000000641e30632c001000568e93b2c8bfdf8f800 &lt;BR /&gt;------------------------ ------------------------&lt;BR /&gt; Track 01 [audio_0] Enabled&lt;BR /&gt; Duration: 0:00:20.436666000&lt;BR /&gt; Language: und&lt;BR /&gt; Mime:&lt;BR /&gt; audio/mpeg, mpegversion=(int)4, channels=(int)2, &lt;BR /&gt;rate=(int)48000, bitrate=(int)0, stream-format=(string)raw, &lt;BR /&gt;codec_data=(buffer)119 0 ------------------------ ====== BEEP: 4.4.5 &lt;BR /&gt;build on Apr 24 2020 03:19:03. ======&lt;BR /&gt; Core: AAC decoder Wrapper build on Dec 7 2017 18:13:49&lt;BR /&gt; file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm12_elinux.so.3 &lt;BR /&gt;&lt;SPAN style="color: #ff9900;"&gt;&lt;STRONG&gt;CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8 build on Sep 20 2017 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff9900;"&gt;&lt;STRONG&gt;15:02:14.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;At this point the program is stuck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already found some similar problems with the imx6. &lt;BR /&gt;However, I could not yet apply a meaningful solution.&lt;/P&gt;&lt;P&gt;In case this is an audio-only problem: Only video is relevant for the use case, audio is not needed. Is there a way to ignore this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2020 09:37:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX7-VideoCapture-OpenCV/m-p/1076169#M157963</guid>
      <dc:creator>sebastian_sedlm</dc:creator>
      <dc:date>2020-07-22T09:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: IMX7 VideoCapture OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX7-VideoCapture-OpenCV/m-p/1076170#M157964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sebastian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to add the codec package in your repository, do not know exactly why are you receiving this errors because you are loading yocto with opencv 3 and you want to run opencv 2, but the MX7D will fail with G2D is not present is better try in openCV for&amp;nbsp; MX6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/524527"&gt;https://community.nxp.com/thread/524527&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2020 15:15:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX7-VideoCapture-OpenCV/m-p/1076170#M157964</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-07-23T15:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: IMX7 VideoCapture OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX7-VideoCapture-OpenCV/m-p/1076171#M157965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bio_TICFSL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure I heard you right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;you think the problem is in integrating opencv or the wrong version of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OpenCV works fine. I use it already for en/decode images.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem occurs only with videos,&amp;nbsp;I thought it was related to the missing VPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately switching to the IMX6 is not an option, because other resources of the IMX7 are needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2020 17:51:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX7-VideoCapture-OpenCV/m-p/1076171#M157965</guid>
      <dc:creator>sebastian_sedlm</dc:creator>
      <dc:date>2020-07-23T17:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: IMX7 VideoCapture OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX7-VideoCapture-OpenCV/m-p/1076172#M157966</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;The i.MX7 not have VPU neither GPU to support OpenCV, that´s the reason I mention the MX6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 17:28:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX7-VideoCapture-OpenCV/m-p/1076172#M157966</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-07-27T17:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: IMX7 VideoCapture OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX7-VideoCapture-OpenCV/m-p/1076173#M157967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bio_TICFSL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was also my level of knowledge.&lt;/P&gt;&lt;P&gt;I just wasn't sure about that.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 19:31:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX7-VideoCapture-OpenCV/m-p/1076173#M157967</guid>
      <dc:creator>sebastian_sedlm</dc:creator>
      <dc:date>2020-07-27T19:31:56Z</dc:date>
    </item>
  </channel>
</rss>

