<?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: IMX8-MP GStreamer mp4 + vpu in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1877008#M224292</link>
    <description>&lt;P&gt;ok, I will close this one and follow your new case&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 08:30:20 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2024-05-29T08:30:20Z</dc:date>
    <item>
      <title>IMX8-MP GStreamer mp4 + vpu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1875326#M224197</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an embedded linux with 5.10 kernel version running on IMX8 MP. I want to play some .mp4 videos in my LVDS panel via KMS. I have installed gstreamer packages (or plugins) via buildroot but i guess there is still something missing. When i try to play them i got this error:&lt;/P&gt;&lt;P&gt;#gst-launch-1.0 filesrc location=AD4.mp4 ! decode&lt;BR /&gt;bin name=dec ! videoconvert ! kmssink&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;Pipeline is PREROLLING ...&lt;BR /&gt;Missing element: H.264 (Main Profile) decoder&lt;BR /&gt;Missing element: MPEG-4 AAC decoder&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:dec: Your GStreamer installation is missing a plug-in.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../gst/playback/gstdecodebin2.c(4719): gst_decode_bin_expose (): /GstPipeline:pipeline0/GstDecodeBin:dec:&lt;BR /&gt;no suitable plugins found:&lt;BR /&gt;Missing decoder: MPEG-4 AAC (audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)1190, rate=(int)48000, channels=(int)2)&lt;BR /&gt;Missing decoder: H.264 (Main Profile) (video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4.1, profile=(string)main, codec_data=(buffer)014d4029ffe10015674d4029959005005bb01100000303e80000c3508401000468eb8f20, width=(int)1280, height=(int)720, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true)&lt;/P&gt;&lt;P&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:dec/GstQTDemux:qtdemux0: Internal data stream error.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../gst/isomp4/qtdemux.c(6545): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstDecodeBin:dec/GstQTDemux:qtdemux0:&lt;BR /&gt;streaming stopped, reason not-linked (-1)&lt;BR /&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;Freeing pipeline ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to use vpudec as well and it says it is not found. ¿Any help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#gst-launch-1.0 filesrc location=/stuff/video/horizontal.mp4 ! qtdemux name=d d.video_o ! queue ! 264parse ! vpudec ! queue ! kmssink&lt;BR /&gt;&lt;STRONG&gt;WARNING: erroneous pipeline: no element "vpudec"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to play the video demo in frame buffer and kms with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1-framebuffer&lt;/P&gt;&lt;P&gt;----------------&lt;/P&gt;&lt;P&gt;gst-launch-1.0 videotestsrc ! "video/x-raw,width=1920,height=1080" ! fbdevsink&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2-kms:&lt;/P&gt;&lt;P&gt;gst-launch-1.0 videotestsrc ! "video/x-raw,width=1920,height=1080" ! kmssink driver-name=imx-drm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to play mp4 video with and without VPU. ¿Any ideas what i am missing? avdec_h264 not appearing when i use gst-inspect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 07:42:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1875326#M224197</guid>
      <dc:creator>cbar001</dc:creator>
      <dc:date>2024-05-27T07:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8-MP GStreamer mp4 + vpu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1875578#M224209</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;I achieved to play mp4 video without vpu. I had to add ffmpeg decoders. They are located in libav gstreamer plugins (&lt;SPAN&gt;&lt;SPAN class=""&gt;BR2_PACKAGE_GST1_LIBAV&lt;/SPAN&gt;&lt;/SPAN&gt;). The commands to play mp4 via frame buffer / KMS are:&lt;/P&gt;&lt;P&gt;Framebuffer&lt;/P&gt;&lt;P&gt;------------------&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v filesrc location=video2.mp4 ! qtdemux name=d d.video_0 ! queue ! h264parse ! avdec_h264 ! videoconvert ! fbdevsink&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kms&lt;/P&gt;&lt;P&gt;------------&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v filesrc location=video2.mp4 ! qtdemux name=d d.video_0 ! queue ! h264parse ! avdec_h264 ! videoconvert ! kmssink&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They both play horizontal videos. However, i need to play vertical format video. It is possible to play it with fbdevsink, but no with kmssink (and im interested in the last one). These are the logs that appears when kmssink is used with vertical mp4 video.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# gst-launch-1.0 -v filesrc location=/stuff/video/vertical.m&lt;BR /&gt;p4 ! qtdemux name=d d.video_0 ! queue ! h264parse ! avdec_h264 ! videoconvert !&lt;BR /&gt;kmssink&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;Pipeline is PREROLLING ...&lt;BR /&gt;/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-width = 1920&lt;BR /&gt;/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-height = 1080&lt;BR /&gt;/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4.2, profile=(string)high, codec_data=(buffer)0164002affe1001d6764002aacd9804403c7979a808080a0000003002000000641e306334001000568e97b2c8bfdf8f800, width=(int)1080, height=(int)1920, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709&lt;BR /&gt;/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4.2, profile=(string)high, codec_data=(buffer)0164002affe1001d6764002aacd9804403c7979a808080a0000003002000000641e306334001000568e97b2c8bfdf8f800, width=(int)1080, height=(int)1920, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709&lt;BR /&gt;/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4.2, profile=(string)high, codec_data=(buffer)0164002affe1001d6764002aacd9804403c7979a808080a0000003002000000641e306334001000568e97b2c8b, width=(int)1080, height=(int)1920, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true&lt;BR /&gt;Redistribute latency...&lt;BR /&gt;/GstPipeline:pipeline0/avdec_h264:avdec_h264-0.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4.2, profile=(string)high, codec_data=(buffer)0164002affe1001d6764002aacd9804403c7979a808080a0000003002000000641e306334001000568e97b2c8b, width=(int)1080, height=(int)1920, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true&lt;BR /&gt;/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4.2, profile=(string)high, codec_data=(buffer)0164002affe1001d6764002aacd9804403c7979a808080a0000003002000000641e306334001000568e97b2c8bfdf8f800, width=(int)1080, height=(int)1920, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709&lt;BR /&gt;/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4.2, profile=(string)high, codec_data=(buffer)0164002affe1001d6764002aacd9804403c7979a808080a0000003002000000641e306334001000568e97b2c8b, width=(int)1080, height=(int)1920, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true&lt;BR /&gt;/GstPipeline:pipeline0/avdec_h264:avdec_h264-0.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4.2, profile=(string)high, codec_data=(buffer)0164002affe1001d6764002aacd9804403c7979a808080a0000003002000000641e306334001000568e97b2c8b, width=(int)1080, height=(int)1920, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true&lt;BR /&gt;/GstPipeline:pipeline0/avdec_h264:avdec_h264-0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)1080, height=(int)1920, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)bt709, framerate=(fraction)25/1&lt;BR /&gt;/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, format=(string)BGRx, width=(int)1080, height=(int)1920, framerate=(fraction)25/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1&lt;BR /&gt;/GstPipeline:pipeline0/GstKMSSink:kmssink0.GstPad:sink: caps = video/x-raw, format=(string)BGRx, width=(int)1080, height=(int)1920, framerate=(fraction)25/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1&lt;BR /&gt;/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)1080, height=(int)1920, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)bt709, framerate=(fraction)25/1&lt;BR /&gt;Redistribute latency...&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstKMSSink:kmssink0: GStreamer encountered a general resource error.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../sys/kms/gstkmssink.c(1711): gst_kms_sink_show_frame (): /GstPipeline:pipeline0/GstKMSSink:kmssink0:&lt;BR /&gt;drmModeSetPlane failed: Invalid argument (22)&lt;BR /&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstQTDemux:d: Internal data stream error.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../gst/isomp4/qtdemux.c(6545): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:d:&lt;BR /&gt;streaming stopped, reason error (-5)&lt;BR /&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstQueue:queue0: Internal data stream error.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../plugins/elements/gstqueue.c(990): gst_queue_handle_sink_event (): /GstPipeline:pipeline0/GstQueue:queue0:&lt;BR /&gt;streaming stopped, reason error (-5)&lt;BR /&gt;ERROR: pipeline doesn't want to preroll.&lt;BR /&gt;Freeing pipeline ...&lt;/P&gt;&lt;P&gt;All mp4 videos are lagging. I expect to fix that enabling vpudec...&lt;/P&gt;&lt;P&gt;¿Any idea of why is kmssink crashing when plays vertical mp4 video?&lt;/P&gt;&lt;P&gt;¿Any idea of how to enable vpu in imx8m-plus?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 12:13:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1875578#M224209</guid>
      <dc:creator>cbar001</dc:creator>
      <dc:date>2024-05-27T12:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8-MP GStreamer mp4 + vpu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1876088#M224239</link>
      <description>&lt;P&gt;as I known newer bsp doesn't use kmssink anymore, use waylandsink, why do you insist on using kmssink?&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 08:07:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1876088#M224239</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2024-05-28T08:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8-MP GStreamer mp4 + vpu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1876100#M224240</link>
      <description>&lt;P&gt;As we only want to play a videostream, we decide not to add a compositor to our embedded device. Therefore, we have to send the video directly using framebuffer interface or KMS.&lt;/P&gt;&lt;P&gt;We managed to play mp4 video using kmssink and fbdevsink with gst-launch pipelines, so i guess we almost got it. I just would like to know how to add VPU functionality to our IMX8M-Plus device to make "vpudec" pipeline work. Then we will see if lag is solved.&lt;/P&gt;&lt;P&gt;¿Any idea if it is possible or how can I add VPU functionality to IMX8M-Plus?&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 08:14:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1876100#M224240</guid>
      <dc:creator>cbar001</dc:creator>
      <dc:date>2024-05-28T08:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8-MP GStreamer mp4 + vpu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1876693#M224278</link>
      <description>&lt;P&gt;what bsp version do you test? pls send your vertical format video to me, let me double check in my board&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 02:29:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1876693#M224278</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2024-05-29T02:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8-MP GStreamer mp4 + vpu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1876925#M224287</link>
      <description>&lt;P&gt;As it is possible we share some valuable information I will open a private ticket to keep on with the conversation. Everything will be summarized there, please mark this topic as solved.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 07:23:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1876925#M224287</guid>
      <dc:creator>cbar001</dc:creator>
      <dc:date>2024-05-29T07:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8-MP GStreamer mp4 + vpu</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1877008#M224292</link>
      <description>&lt;P&gt;ok, I will close this one and follow your new case&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 08:30:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8-MP-GStreamer-mp4-vpu/m-p/1877008#M224292</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2024-05-29T08:30:20Z</dc:date>
    </item>
  </channel>
</rss>

