<?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: i.MX6DL not smooth full HD accelerated video play in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-not-smooth-full-HD-accelerated-video-play/m-p/738279#M114872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frantisek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can test video capabilities with Demo Image&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0_MX6QDLSOLO&amp;amp;appType=license&amp;amp;location=null" title="https://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0_MX6QDLSOLO&amp;amp;appType=license&amp;amp;location=null"&gt;https://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0_MX6QDLSOLO&amp;amp;appType=license&amp;amp;location=null&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;follow sect.7 Multimedia, sect.7.3.15 Video conversion attached Linux Guide&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2018 06:14:41 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-03-28T06:14:41Z</dc:date>
    <item>
      <title>i.MX6DL not smooth full HD accelerated video play</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-not-smooth-full-HD-accelerated-video-play/m-p/738278#M114871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we would like to develop an equipment with GPU accelerated full-HD video H.264 blended with 0.5alpha still picture over it. No Android.&lt;BR /&gt;Questions:&lt;BR /&gt;&lt;STRONG&gt;a) Is this intended equipment possible to do with GPU acceleration?&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;b) Is this possible to do it with g2d?&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;c) Is v4l2 supported by NXP in future? How to resize the movie in 800x600 window? Please see 5 below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;FH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use for testing:&lt;BR /&gt;1) i.MX6 Series SABRE for SmartDevices (MCIMX6DL-SDP) with LCD touch 1024x768&lt;BR /&gt;2) Linux imx6dlsabresd 4.1.15-2.1.0+g30278ab with compiled imx-gstreamer plugins&lt;BR /&gt;3)&amp;nbsp;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt; /sys/class/graphics/fb0: DISP3 BG - DI1 U:1024x768p-60&amp;nbsp; ldb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2-layer-fb-bg&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp; /sys/class/graphics/fb1: DISP3 FG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overlay 2-layer-fb-fg&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp; /sys/class/graphics/fb2: DISP3 BG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; U:1920x1080p-60 hdmi&amp;nbsp;&amp;nbsp;&amp;nbsp; 1-layer-fb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - (to fb0) movie:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1920x765@23.976FPS(M4V codec (M4V /M4A /mp42/isom))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; - (to fb1) still picture: PNG image data, 1024 x 768, 8-bit/color RGBA, non-interlaced&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; -&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp; loc_alpha.alpha_in_pixel = 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loc_alpha.enable = 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fd = open("/dev/fb0", O_RDWR, 0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioctl(fd, MXCFB_SET_LOC_ALPHA, &amp;amp;loc_alpha);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioctl(fd, MXCFB_WAIT_FOR_VSYNC, 0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioctl(fd, FBIOBLANK, FB_BLANK_UNBLANK);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4) no HW changes, no SW changes, in Yocto added compile imx-gstreamer plugins&lt;BR /&gt;5) expected: alpha blending, smooth video play, no CPU at 100%&lt;BR /&gt;&amp;nbsp;&amp;nbsp; observed: alpha blending is correct (picture and movie are mixed)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; background video play is visible, good colours and size, but&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt; not smooth play&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (=like movie on a powerless hardware without GPU acceleration)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPU is on 11%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When we use v4l2:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "gst-launch-1.0 filesrc location=N_movie.m4v ! qtdemux ! queue ! vpudec&amp;nbsp; ! &lt;STRONG&gt;imxv4l2sink device=/dev/video16&lt;/STRONG&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the movie play smoothly, but there is unfortunately no way to resize it inside 800x600 window&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6)&amp;nbsp;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt; echo 0 &amp;gt; /sys/class/graphics/fb1/blank&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp; echo 0 &amp;gt; /sys/class/graphics/fb0/blank&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp; set_alpha.bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp; WINDOW="window-x-coord=100 window-y-coord=100 window-width=800 window-height=600"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp; gst-launch-1.0 filesrc location=2N_picture_05alpha.png ! pngdec ! imagefreeze ! queue ! imxg2dvideosink force-aspect-ratio=true framebuffer=/dev/fb1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;&amp;nbsp;&amp;nbsp; gst-launch-1.0 filesrc location=2N_movie.m4v typefind=true ! qtdemux ! queue ! vpudec ! &lt;STRONG&gt;imxg2dvideosink framebuffer=/dev/fb0&lt;/STRONG&gt; $WINDOW&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;7) always not smoothly video overplay&lt;BR /&gt;8) LCD touch 1024x768, &lt;A href="https://www.nxp.com/video/get-started-with-the-i.mx-6-sabre-platform-for-smart-devices-how-to:SABRE_PSD_IMX6_VID"&gt;like here&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 08:10:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-not-smooth-full-HD-accelerated-video-play/m-p/738278#M114871</guid>
      <dc:creator>frantisekhacker</dc:creator>
      <dc:date>2018-03-27T08:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6DL not smooth full HD accelerated video play</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-not-smooth-full-HD-accelerated-video-play/m-p/738279#M114872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frantisek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can test video capabilities with Demo Image&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0_MX6QDLSOLO&amp;amp;appType=license&amp;amp;location=null" title="https://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0_MX6QDLSOLO&amp;amp;appType=license&amp;amp;location=null"&gt;https://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0_MX6QDLSOLO&amp;amp;appType=license&amp;amp;location=null&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;follow sect.7 Multimedia, sect.7.3.15 Video conversion attached Linux Guide&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 06:14:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-not-smooth-full-HD-accelerated-video-play/m-p/738279#M114872</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-03-28T06:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6DL not smooth full HD accelerated video play</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-not-smooth-full-HD-accelerated-video-play/m-p/738280#M114873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;thank you for the reply.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I have tested the older demo image L4.1.15_2.0.0 (instead of our newest L4.1.15_2.1.0):&lt;UL&gt;&lt;LI&gt;there are no&lt;STRONG&gt; imxg2dxxx&lt;/STRONG&gt; gstreamer plugins compiled in, so the G2D can not be tested here by gstreamer at all&lt;/LI&gt;&lt;LI&gt;yes, v4l2 also works fine here (smoothly) as in our L4.1.15_2.1.0&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;I realized (in L4.1.15_2.1.0) that if I use &lt;STRONG&gt;&lt;EM&gt;decodebin!&lt;STRONG&gt;v&lt;/STRONG&gt;ideoconvert&lt;/EM&gt;&lt;/STRONG&gt; instead of &lt;STRONG&gt;&lt;EM&gt;qtdemux!vpudec&lt;/EM&gt;&lt;/STRONG&gt;, &lt;SPAN style="color: #ff0000;"&gt;everythink works fine &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;as expected, accelerated&lt;/SPAN&gt; (smooth background video play, alpha blending image on top of it, resize, CPU at 20%):&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="text-decoration: line-through; font-family: andale\ mono, monospace;"&gt;gst-launch-1.0 filesrc location=2N_movie.m4v typefind=true ! qtdemux ! queue ! vpudec ! &lt;STRONG&gt;imxg2dvideosink framebuffer=/dev/fb0&lt;/STRONG&gt; $WINDOW&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: andale\ mono, monospace;"&gt;gst-launch-1.0 filesrc location=2N_movie.m4v typefind=true ! decodebin ! queue ! videoconvert ! &lt;STRONG&gt;imxg2dvideosink framebuffer=/dev/fb0&lt;/STRONG&gt; $WINDOW&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp; So my previous a), b) and c) questions are solved now. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Can you please explain, what is here wrong with qtdemux!vpudec? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My next questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Instead of blended still image on top of video we would like to use OpenGL draw functions aplha blended with background video. &lt;SPAN style="color: #ff0000;"&gt;Is it possible? How to set the OpenGL to draw in framebuffer /dev/fb1?&lt;/SPAN&gt; No Andorid, no X11,... but also accelerated.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #ff0000;"&gt;Will NXP support g2d in the future?&lt;/SPAN&gt; Is it preferred?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;and best regards,&lt;/P&gt;&lt;P&gt;FH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 13:43:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-not-smooth-full-HD-accelerated-video-play/m-p/738280#M114873</guid>
      <dc:creator>frantisekhacker</dc:creator>
      <dc:date>2018-04-04T13:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6DL not smooth full HD accelerated video play</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-not-smooth-full-HD-accelerated-video-play/m-p/738281#M114874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you may be mixing plugins from two different sources (which aren't compatible), the FSL gst-1.0 plugs are from&amp;nbsp;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/gst1.0-plugins-fsl.git/"&gt;here&lt;/A&gt;&amp;nbsp;and include vpudec. There's also an open source implementation &lt;A href="https://github.com/Freescale/gstreamer-imx"&gt;gstreamer-imx&lt;/A&gt;&amp;nbsp;that includes&amp;nbsp;imxg2dvideosink. The g2d api allow overlaying of multi buffers when blitting to the output surface however I'm not sure if this is implement by the gst-plugin (&lt;A href="http://jas-hacks.blogspot.co.uk/2016/02/imx6sx-video-processing-via-vadc-pxp.html"&gt;simple demo&lt;/A&gt;&amp;nbsp;calling g2d api directly). Since gstreamer-imx source code is available then I guess worst case is that you will need to support it yourself.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 16:31:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-not-smooth-full-HD-accelerated-video-play/m-p/738281#M114874</guid>
      <dc:creator>mtx512</dc:creator>
      <dc:date>2018-04-05T16:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6DL not smooth full HD accelerated video play</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-not-smooth-full-HD-accelerated-video-play/m-p/738282#M114875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, answers after hours of investigation:&lt;/P&gt;&lt;P&gt;a) yes, this equiptment is possible to do with GPU acceleration - we made as Linux native app:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;H.264 video decoded, cropped and resized to /dev/fb0&lt;/STRONG&gt;, displayed thru G2D (NXP Yocto example &lt;STRONG&gt;mxc_vpu_test&lt;/STRONG&gt; and its Android displaying)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;setted GLES2.0 layer drawing to /dev/fb1 with alpha setted to 0.5&lt;/STRONG&gt; by ioctl&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;b) yes, G2D is working perfectly (in mxc_vpu_test example we reused codes written for Android to be used without Android)&lt;/P&gt;&lt;P&gt;c) resize is done by G2D also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 12:25:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-not-smooth-full-HD-accelerated-video-play/m-p/738282#M114875</guid>
      <dc:creator>frantisekhacker</dc:creator>
      <dc:date>2018-06-11T12:25:20Z</dc:date>
    </item>
  </channel>
</rss>

