<?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: unable to write mp4 video using opencv in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/unable-to-write-mp4-video-using-opencv/m-p/1234352#M169818</link>
    <description>&lt;P&gt;Hi Zhiming,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;The return value of cap.isOpened was True, and also cap.read() also returns True.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this problem is now solved for me.&lt;/P&gt;&lt;P&gt;I understood that codecs were missing on the board to write mp4 video file.&lt;/P&gt;&lt;P&gt;I have added ffmpeg in local.conf file, and compiled the image.&lt;/P&gt;&lt;P&gt;After deploying, opencv was able to detect ffmpeg and now I am able to write mp4 video files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 12:14:54 GMT</pubDate>
    <dc:creator>john_wick</dc:creator>
    <dc:date>2021-02-22T12:14:54Z</dc:date>
    <item>
      <title>unable to write mp4 video using opencv</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/unable-to-write-mp4-video-using-opencv/m-p/1233625#M169742</link>
      <description>&lt;P&gt;I am trying to write a mp4 video file on imx8m mini using opencv library. I am using ov5647 camera module.&lt;/P&gt;&lt;P&gt;Below is the code I am using to write video.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wick_0-1613735479372.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137590i70E6A9EF90CB9F39/image-size/large?v=v2&amp;amp;px=999" role="button" title="john_wick_0-1613735479372.png" alt="john_wick_0-1613735479372.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, after I run this program, there is not test.mp4 file created at all.&amp;nbsp;&lt;BR /&gt;I have also tried fourcc's *H264 also, but the result is same.&lt;/P&gt;&lt;P&gt;Please suggest. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 11:53:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/unable-to-write-mp4-video-using-opencv/m-p/1233625#M169742</guid>
      <dc:creator>john_wick</dc:creator>
      <dc:date>2021-02-19T11:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: unable to write mp4 video using opencv</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/unable-to-write-mp4-video-using-opencv/m-p/1233903#M169765</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You must add return value judgment as you don't know if the camera has been opened.&lt;/P&gt;
&lt;P&gt;Can you provide the log when you run this test?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 07:49:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/unable-to-write-mp4-video-using-opencv/m-p/1233903#M169765</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2021-02-20T07:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: unable to write mp4 video using opencv</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/unable-to-write-mp4-video-using-opencv/m-p/1234352#M169818</link>
      <description>&lt;P&gt;Hi Zhiming,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;The return value of cap.isOpened was True, and also cap.read() also returns True.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this problem is now solved for me.&lt;/P&gt;&lt;P&gt;I understood that codecs were missing on the board to write mp4 video file.&lt;/P&gt;&lt;P&gt;I have added ffmpeg in local.conf file, and compiled the image.&lt;/P&gt;&lt;P&gt;After deploying, opencv was able to detect ffmpeg and now I am able to write mp4 video files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 12:14:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/unable-to-write-mp4-video-using-opencv/m-p/1234352#M169818</guid>
      <dc:creator>john_wick</dc:creator>
      <dc:date>2021-02-22T12:14:54Z</dc:date>
    </item>
  </channel>
</rss>

