<?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: i.MX8M Plus gstreamer deconder encoder issues</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-gstreamer-deconder-encoder-issues/m-p/1529044#M195702</link>
    <description>&lt;P&gt;Somehow, I can run it only for video 1920x1088&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 20:44:33 GMT</pubDate>
    <dc:creator>Oleh</dc:creator>
    <dc:date>2022-09-27T20:44:33Z</dc:date>
    <item>
      <title>i.MX8M Plus gstreamer deconder encoder issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-gstreamer-deconder-encoder-issues/m-p/1528918#M195693</link>
      <description>&lt;P&gt;Hello, i.MX community!&lt;BR /&gt;I'm examining i.MX8M Plus SoC for our project and try to run basic GStreamer tests.&lt;/P&gt;&lt;P&gt;I've demo video file with the following parameters:&lt;/P&gt;&lt;PRE&gt;Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1920x1080, 36173 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 29 tbc (default)&lt;/PRE&gt;&lt;P&gt;Which successfully processed by this command on my PC:&lt;/P&gt;&lt;PRE&gt;$ gst-launch-1.0 filesrc location=demo_with_text.mp4 ! decodebin ! textoverlay font-desc="Sans 20" text="Hello world!" shaded-background=false ! x264enc ! mp4mux name=mp4mux ! filesink location=demo_with_text.mp4&lt;/PRE&gt;&lt;P&gt;But on i.MX8M Plus I have very weird issues:&lt;/P&gt;&lt;PRE&gt;$ gst-launch-1.0 filesrc location=demo.mp4 ! decodebin ! textoverlay font-desc="Sans 20" text="Hello world!" shaded-background=false ! vpuenc_h264 ! mp4mux name=mp4mux ! filesink location=demo_with_text.mp4&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;====== VPUENC: 4.7.0 build on May 20 2022 06:51:21. ======&lt;BR /&gt;wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 2 2022 08:51:59)&lt;BR /&gt;vpulib: 1.1.1&lt;BR /&gt;firmware: 1.1.1.43690&lt;BR /&gt;Pipeline is PREROLLING ...&lt;BR /&gt;&lt;BR /&gt;====== AIUR: 4.7.0 build on May 20 2022 06:51:21. ======&lt;BR /&gt;Core: MPEG4PARSER_06.20.06 build on May 7 2022 07:52:31&lt;BR /&gt;file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm_elinux.so.3.2&lt;BR /&gt;------------------------&lt;BR /&gt;Track 00 [video_0] Enabled&lt;BR /&gt;Duration: 0:11:24.684000000&lt;BR /&gt;Language: und&lt;BR /&gt;Mime:&lt;BR /&gt;video/x-h265, parsed=(boolean)true, alignment=(string)au, stream-format=(string)hev1, width=(int)1920, height=(int)1080, framerate=(fraction)30000/1001, codec_data=(buffer)01014000000080000000000078f000fcfdf8f800000f03200001002240010c01ffff014000000300800000030000030078ac0c00000fa00001c52200fa28210001002a420101014000000300800000030000030078a003c08010e7fa2eec9577a25d581000003e800007148c4022000100074401c1adf01364 &lt;BR /&gt;------------------------&lt;BR /&gt;====== VPUDEC: 4.7.0 build on May 20 2022 06:51:21. ======&lt;BR /&gt;wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 2 2022 08:51:59)&lt;BR /&gt;vpulib: 1.1.1&lt;BR /&gt;firmware: 1.1.1.65535&lt;BR /&gt;VCEncCheckCfg: Invalid frameRateNum&lt;BR /&gt;VCEncInit: ERROR Invalid configuration&lt;BR /&gt;&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstAiurDemux:aiurdemux0: GStreamer encountered a general stream error.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../git/plugins/aiurdemux/aiurdemux.c(1139): aiurdemux_pull_task (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstAiurDemux:aiurdemux0:&lt;BR /&gt;streaming stopped, reason error, state 3&lt;BR /&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;Freeing pipeline ...&lt;/PRE&gt;&lt;P&gt;I've converted my video to these parameters:&lt;/P&gt;&lt;PRE&gt;Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1088 [SAR 136:135 DAR 16:9], 1121 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc (default)&lt;/PRE&gt;&lt;P&gt;And GStreamer results are weird, the output file was 595 bytes!&lt;/P&gt;&lt;PRE&gt;$ gst-launch-1.0 filesrc location=demo.mp4 ! decodebin ! videoscale ! video/x-raw, format=NV12, width=640, height=480 ! textoverlay font-desc="Sans 20" text="Hello world!" shaded-background=false ! vpuenc_h264 ! mp4mux name=mp4mux ! filesink location=demo_with_text.mp4&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;====== VPUENC: 4.7.0 build on May 20 2022 06:51:21. ======&lt;BR /&gt;wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 2 2022 08:51:59)&lt;BR /&gt;vpulib: 1.1.1&lt;BR /&gt;firmware: 1.1.1.43690&lt;BR /&gt;Pipeline is PREROLLING ...&lt;BR /&gt;&lt;BR /&gt;====== AIUR: 4.7.0 build on May 20 2022 06:51:21. ======&lt;BR /&gt;Core: MPEG4PARSER_06.20.06 build on May 7 2022 07:52:31&lt;BR /&gt;file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm_elinux.so.3.2&lt;BR /&gt;------------------------&lt;BR /&gt;Track 00 [video_0] Enabled&lt;BR /&gt;Duration: 0:11:24.684017000&lt;BR /&gt;Language: eng&lt;BR /&gt;Mime:&lt;BR /&gt;video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)1920, height=(int)1088, framerate=(fraction)333/11, codec_data=(buffer)01640828ffe1002067640828acd940780226ffc0220021da808080a000007d20001d4c11e30632c001000568ebecb22c &lt;BR /&gt;------------------------&lt;BR /&gt;====== VPUDEC: 4.7.0 build on May 20 2022 06:51:21. ======&lt;BR /&gt;wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jun 2 2022 08:51:59)&lt;BR /&gt;vpulib: 1.1.1&lt;BR /&gt;firmware: 1.1.1.65535&lt;BR /&gt;&lt;BR /&gt;Pipeline is PREROLLED ...&lt;BR /&gt;Setting pipeline to PLAYING ...&lt;BR /&gt;Redistribute latency...&lt;BR /&gt;New clock: GstSystemClock&lt;BR /&gt;Got EOS from element "pipeline0".&lt;BR /&gt;Execution ended after 0:00:00.001104000&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;Freeing pipeline ...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 15:02:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-gstreamer-deconder-encoder-issues/m-p/1528918#M195693</guid>
      <dc:creator>Oleh</dc:creator>
      <dc:date>2022-09-27T15:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8M Plus gstreamer deconder encoder issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-gstreamer-deconder-encoder-issues/m-p/1529044#M195702</link>
      <description>&lt;P&gt;Somehow, I can run it only for video 1920x1088&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 20:44:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-gstreamer-deconder-encoder-issues/m-p/1529044#M195702</guid>
      <dc:creator>Oleh</dc:creator>
      <dc:date>2022-09-27T20:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8M Plus gstreamer deconder encoder issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-gstreamer-deconder-encoder-issues/m-p/1529308#M195723</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could it be that you forgot to add the parser before mp4mux like this:&lt;/P&gt;&lt;PRE&gt;vpuenc_h264 ! h264parse ! mp4mux ...&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Sep 2022 07:15:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-Plus-gstreamer-deconder-encoder-issues/m-p/1529308#M195723</guid>
      <dc:creator>malik_cisse</dc:creator>
      <dc:date>2022-09-28T07:15:23Z</dc:date>
    </item>
  </channel>
</rss>

