<?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のトピックRe: imx8mp gstreamer not working</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-gstreamer-not-working/m-p/1524788#M195352</link>
    <description>&lt;P&gt;Ok, that makes sense.&lt;BR /&gt;Good going&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 07:42:03 GMT</pubDate>
    <dc:creator>malik_cisse</dc:creator>
    <dc:date>2022-09-20T07:42:03Z</dc:date>
    <item>
      <title>imx8mp gstreamer not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-gstreamer-not-working/m-p/1522326#M195155</link>
      <description>&lt;P&gt;I built the Hardknott 5.10.72 release of Yocto and i was attempting to use the VPU for encoding as a test.&lt;/P&gt;&lt;PRE&gt;root@ucm-imx8m-plus:~# gst-launch-1.0 -v videotestsrc ! video/x-raw, format=I420, width=640, height=480 ! vpuenc_h264 ! filesink location=test.mp4&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;====== VPUENC: 4.6.3 build on Apr 5 2011 23:00:00. ======&lt;BR /&gt;wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Apr 5 2011 23:00:00)&lt;BR /&gt;vpulib: 1.1.1&lt;BR /&gt;firmware: 1.1.1.43690&lt;BR /&gt;Pipeline is PREROLLING ...&lt;BR /&gt;/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/vpuenc_h264:vpuenc_h264-0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive&lt;BR /&gt;VCEncCheckCfg: Invalid width&lt;BR /&gt;VCEncInit: ERROR Invalid configuration&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:&lt;BR /&gt;streaming stopped, reason error (-5)&lt;BR /&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;Freeing pipeline ...&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;As you can see the VPU complains about the width but using the verbose print of gstreamer it should work fine. Is there any way to debug this further? The command is out of the imx 8 Gstreamer users guide.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 22:39:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-gstreamer-not-working/m-p/1522326#M195155</guid>
      <dc:creator>pwhewell</dc:creator>
      <dc:date>2022-09-14T22:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp gstreamer not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-gstreamer-not-working/m-p/1522708#M195187</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using Zeus 5.4.70 and your command line will not provide any errors. However the produced files are not playable as such. You need to add h264parse as well as mp4mux:&lt;BR /&gt;gst-launch-1.0 -v videotestsrc num-buffers=150 ! video/x-raw, format=I420, width=640, height=480 ! vpuenc_h264 ! h264parse ! mp4mux ! filesink location=test.mp4&lt;/P&gt;&lt;P&gt;Note also that you need to close your mp4 files correctly, otherwise it is not valid. MP4 needs to write key=frame locations at the end of the file. Thus you need to add "num-buffers=150" or any other number of frames to force EOS in gst.&lt;/P&gt;&lt;P&gt;These command will also produce correct mpeg-ts videos (which do not need to be terminated as MP4, thus you can terminate gst command via ctl-c)&lt;BR /&gt;gst-launch-1.0 -v videotestsrc num-buffers=300 ! video/x-raw,width=640,height=480,format=YUY2 ! vpuenc_h264 ! h264parse ! mpegtsmux name=mux ! queue ! filesink location=test1.ts&lt;BR /&gt;gst-launch-1.0 -v videotestsrc num-buffers=150 ! video/x-raw, format=I420, width=640, height=480 ! vpuenc_h264 ! h264parse ! mpegtsmux ! filesink location=test2.ts&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 08:14:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-gstreamer-not-working/m-p/1522708#M195187</guid>
      <dc:creator>malik_cisse</dc:creator>
      <dc:date>2022-09-15T08:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp gstreamer not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-gstreamer-not-working/m-p/1523008#M195221</link>
      <description>&lt;P&gt;I have attempted with earlier versions and have not had problems, for exmaple&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;root@ucm-imx8m-plus:~# gst-launch-1.0 videotestsrc ! video/x-raw, format=I420, width=640, height=480 ! vpuenc_h264 ! filesink location=test.mp4&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;====== VPUENC: 4.6.2 build on Aug 27 2021 07:05:03. ======&lt;BR /&gt;wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 16 2021 02:05:07)&lt;BR /&gt;vpulib: 1.1.1&lt;BR /&gt;firmware: 1.1.1.43690&lt;BR /&gt;Pipeline is PREROLLING ...&lt;BR /&gt;Pipeline is PREROLLED ...&lt;BR /&gt;Setting pipeline to PLAYING ...&lt;BR /&gt;New clock: GstSystemClock&lt;BR /&gt;[ 19.359520] imx-dwmac 30bf0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx&lt;BR /&gt;[ 19.368024] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready&lt;BR /&gt;^Chandling interrupt.&lt;BR /&gt;Interrupt: Stopping pipeline ...&lt;BR /&gt;Execution ended after 0:00:02.145019750&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;Freeing pipeline ...&lt;/PRE&gt;&lt;P&gt;That is the reason i was specifically asking with the version info I included. I'm wondering if there is a problem with the version of VPUENC that is being used. 4.6.2 works but 4.6.3 doesn't&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 15:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-gstreamer-not-working/m-p/1523008#M195221</guid>
      <dc:creator>pwhewell</dc:creator>
      <dc:date>2022-09-15T15:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp gstreamer not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-gstreamer-not-working/m-p/1523720#M195274</link>
      <description>&lt;P&gt;I have solved my problem.&lt;/P&gt;&lt;P&gt;The problem comes from internal changes to the encoder. We had added capability to use H264 profiles with the encoder and introduced a bug. When other non-internal applications (e.g. gstreamer) used the encoder we were trying to pass a profile that the application wasn't using. So it resulted in the failure. I fixed the bug by defaulting back to the Base profile in these cases and everything works fine.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 16:06:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-gstreamer-not-working/m-p/1523720#M195274</guid>
      <dc:creator>pwhewell</dc:creator>
      <dc:date>2022-09-16T16:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp gstreamer not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-gstreamer-not-working/m-p/1524788#M195352</link>
      <description>&lt;P&gt;Ok, that makes sense.&lt;BR /&gt;Good going&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 07:42:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-gstreamer-not-working/m-p/1524788#M195352</guid>
      <dc:creator>malik_cisse</dc:creator>
      <dc:date>2022-09-20T07:42:03Z</dc:date>
    </item>
  </channel>
</rss>

