<?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>eIQ Machine Learning SoftwareのトピックRe: PyeIQ OpenCV Issue: GStreamer warning: unable to query duration of stream</title>
    <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/PyeIQ-OpenCV-Issue-GStreamer-warning-unable-to-query-duration-of/m-p/1180731#M320</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/137349"&gt;@hiep_nguyen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;no, so far i haven't further investigated this issue. My suspicion was that the gstreamer pipeline was not configured correctly for my camera/video file. Please let me know if you find out more.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 10:50:14 GMT</pubDate>
    <dc:creator>nxf50230</dc:creator>
    <dc:date>2020-11-10T10:50:14Z</dc:date>
    <item>
      <title>PyeIQ OpenCV Issue: GStreamer warning: unable to query duration of stream</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/PyeIQ-OpenCV-Issue-GStreamer-warning-unable-to-query-duration-of/m-p/1162344#M304</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i want to test the PyeIQ framework with a custom video/webcam but OpenCV returns a warning and the video with the inference results is not displayed. Here is the console output:&lt;/P&gt;
&lt;P&gt;INFO: Created TensorFlow Lite delegate for NNAPI.&lt;BR /&gt;Applied NNAPI delegate.&lt;BR /&gt;====== VPUDEC: 4.5.5 build on Jul 17 2020 18:09:12. ======&lt;BR /&gt;wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 17 2020 16:50:14)&lt;BR /&gt;vpulib: 1.1.1&lt;BR /&gt;firmware: 1.1.1.0&lt;BR /&gt;[ WARN:0] global /usr/src/debug/opencv/4.2.0.imx-r0/git/modules/videoio/src/cap_gstreamer.cpp (898) open OpenCV | GStreamer warning: unable to query duration of stream&lt;BR /&gt;[ WARN:0] global /usr/src/debug/opencv/4.2.0.imx-r0/git/modules/videoio/src/cap_gstreamer.cpp (935) open OpenCV | GStreamer warning: Cannot query video position: status=1, value=27, duration=-1&lt;BR /&gt;Your video device could not capture any image.&lt;/P&gt;
&lt;P&gt;The same warnings also appear when i run the switch_video app but the video with the object detection frames is displayed correctly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tested just OpenCV in python with a USB webcam and video file. It returns the same warnings and doesn't display the stream.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i use the following GStreamer command, the video file and webcam stream are displayed correctly:&lt;/P&gt;
&lt;P&gt;gst-launch-1.0 filesrc location=&amp;lt;my filepath&amp;gt; typefind=true ! video/quicktime ! aiurdemux ! queue max-size-time=0 ! vpudec ! autovideosink&lt;/P&gt;
&lt;P&gt;I am using the PyeIQ framework on an i.MX8M Plus with the Zeus Yocto version&amp;nbsp;5.4.24-2.1.0. The OpenCV Version is 4.2.0&lt;/P&gt;
&lt;P&gt;Any ideas what the problem could be?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 15:48:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/PyeIQ-OpenCV-Issue-GStreamer-warning-unable-to-query-duration-of/m-p/1162344#M304</guid>
      <dc:creator>nxf50230</dc:creator>
      <dc:date>2020-10-02T15:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: PyeIQ OpenCV Issue: GStreamer warning: unable to query duration of stream</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/PyeIQ-OpenCV-Issue-GStreamer-warning-unable-to-query-duration-of/m-p/1179255#M318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/63542"&gt;@nxf50230&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I met the same issue like you with IMX.8 Plus, Yocto package :&amp;nbsp;bsp-5_4_24-2_1_0. Tried to change VideoCapture backend to V4L but it couldn't open camera as well.&lt;/P&gt;&lt;P&gt;Did you solve the issue ? Do you have any ideas ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 08:00:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/PyeIQ-OpenCV-Issue-GStreamer-warning-unable-to-query-duration-of/m-p/1179255#M318</guid>
      <dc:creator>hiep_nguyen</dc:creator>
      <dc:date>2020-11-06T08:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: PyeIQ OpenCV Issue: GStreamer warning: unable to query duration of stream</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/PyeIQ-OpenCV-Issue-GStreamer-warning-unable-to-query-duration-of/m-p/1180731#M320</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/137349"&gt;@hiep_nguyen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;no, so far i haven't further investigated this issue. My suspicion was that the gstreamer pipeline was not configured correctly for my camera/video file. Please let me know if you find out more.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 10:50:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/PyeIQ-OpenCV-Issue-GStreamer-warning-unable-to-query-duration-of/m-p/1180731#M320</guid>
      <dc:creator>nxf50230</dc:creator>
      <dc:date>2020-11-10T10:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: PyeIQ OpenCV Issue: GStreamer warning: unable to query duration of stream</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/PyeIQ-OpenCV-Issue-GStreamer-warning-unable-to-query-duration-of/m-p/1183771#M321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/63542"&gt;@nxf50230&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I could capture webcam and video using OpenCV VideoCapture with BSP 5.4.47-2.2.0 and BSP 5.4.24-2.1.0 finally.&lt;/P&gt;&lt;P&gt;By adding some opencv debug : export&amp;nbsp;OPENCV_VIDEOIO_DEBUG=1 and&amp;nbsp;OPENCV_LOG_LEVEL=DEBUG, the OpenCV VideoCapture use FFMPEG by default but FFMPEG doesn't exist on this BSP.&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;[ INFO:0] global /usr/src/debug/opencv/4.2.0.imx-r0/git/modules/videoio/src/backend_plugin.cpp (342) getPluginCandidates VideoIO pluigin (FFMPEG): glob is 'libopencv_videoio_ffmpeg*.so', 1 location(s)&lt;BR /&gt;[ INFO:0] global /usr/src/debug/opencv/4.2.0.imx-r0/git/modules/videoio/src/backend_plugin.cpp (349) getPluginCandidates - /usr/lib: 0&lt;BR /&gt;[ INFO:0] global /usr/src/debug/opencv/4.2.0.imx-r0/git/modules/videoio/src/backend_plugin.cpp (353) getPluginCandidates Found 0 plugin(s) for FFMPEG&lt;BR /&gt;[ WARN:0] global /usr/src/debug/opencv/4.2.0.imx-r0/git/modules/videoio/src/cap.cpp (128) open VIDEOIO(FFMPEG): backend is not available (plugin is missing, or can't be loaded due dependencies or it is not compatible)&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So just change the cv::VideoCapture backend to Gstreamer, I could open video and webcam.&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;cv::VideoCapture cap(1, cv::CAP_GSTREAMER);&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;However, the VideoCapture took huge time, up to 50ms to grab a 1280x720 frame. I don't know why they need lots of time to grab a frame, and don't think it is normal. Suspecting&amp;nbsp;it could be a bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 10:23:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/PyeIQ-OpenCV-Issue-GStreamer-warning-unable-to-query-duration-of/m-p/1183771#M321</guid>
      <dc:creator>hiep_nguyen</dc:creator>
      <dc:date>2020-11-16T10:23:09Z</dc:date>
    </item>
  </channel>
</rss>

