<?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中的主题 iMX6 How to accellerate color space conversion using gstreamer and playbin2</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-How-to-accellerate-color-space-conversion-using-gstreamer/m-p/274286#M30131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given two possible ways to launch a video:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch filesrc location=sintel-1024-surround.mp4 typefind=true ! aiurdemux ! vpudec frame-plus=1 ! mfw_ipucsc ! mfw_v4lsink&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;gst-launch filesrc location=sintel-1024-surround.mp4 typefind=true ! aiurdemux ! vpudec frame-plus=1 ! mfw_v4lsink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of these pipelines work, however the first containing mfw_ipucsc should be using hardware to convert the vpudec yuv output to RGB that is used to write the output&lt;/P&gt;&lt;P&gt;into the framebuffer /dev/fb0&lt;/P&gt;&lt;P&gt;The second form is identical to the pipe that is created (automatically) when using playbin2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This raises the question of how mfw_v4lsink handles color space conversion when it is fed yuv on its input? In software?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question is triggered by the following observation:&lt;/P&gt;&lt;P&gt;We have an application written in Qt5 that uses the webkit to open e.g. a YouTube page and then playing a movie.&lt;/P&gt;&lt;P&gt;With GST_DEBUG=2 we see a lot of frame buffers being dropped and the movie plays "bad" and the iMX6 runs hot until the point that the "cooling" device reduces the cpu frequency.&lt;/P&gt;&lt;P&gt;Webkit uses playbin2 to launch the video.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So somehow I guess that the vpudec yuv output gets software converted to be merged in the framebuffer output and that takes a lot of cpu effort.&lt;/P&gt;&lt;P&gt;If the above holds, why does mfw_4vlsink not automatically use the ipucsc when it is fed yuv on a iMX6?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an experiment I removed the yuv formats from the mfw_v4lsink. playbin2 then generates an invalid pipe error. It is unable to automatically incorporate the mfw_ipucsc that provides yuv to RGB conversion.&lt;/P&gt;&lt;P&gt;The gst-launch with mfw_ipuscs still functions correctly with this modification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way to force playbin2 to use mfw_ipuscs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2014 14:16:33 GMT</pubDate>
    <dc:creator>henkfijnvandraa</dc:creator>
    <dc:date>2014-03-04T14:16:33Z</dc:date>
    <item>
      <title>iMX6 How to accellerate color space conversion using gstreamer and playbin2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-How-to-accellerate-color-space-conversion-using-gstreamer/m-p/274286#M30131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given two possible ways to launch a video:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch filesrc location=sintel-1024-surround.mp4 typefind=true ! aiurdemux ! vpudec frame-plus=1 ! mfw_ipucsc ! mfw_v4lsink&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;gst-launch filesrc location=sintel-1024-surround.mp4 typefind=true ! aiurdemux ! vpudec frame-plus=1 ! mfw_v4lsink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of these pipelines work, however the first containing mfw_ipucsc should be using hardware to convert the vpudec yuv output to RGB that is used to write the output&lt;/P&gt;&lt;P&gt;into the framebuffer /dev/fb0&lt;/P&gt;&lt;P&gt;The second form is identical to the pipe that is created (automatically) when using playbin2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This raises the question of how mfw_v4lsink handles color space conversion when it is fed yuv on its input? In software?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question is triggered by the following observation:&lt;/P&gt;&lt;P&gt;We have an application written in Qt5 that uses the webkit to open e.g. a YouTube page and then playing a movie.&lt;/P&gt;&lt;P&gt;With GST_DEBUG=2 we see a lot of frame buffers being dropped and the movie plays "bad" and the iMX6 runs hot until the point that the "cooling" device reduces the cpu frequency.&lt;/P&gt;&lt;P&gt;Webkit uses playbin2 to launch the video.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So somehow I guess that the vpudec yuv output gets software converted to be merged in the framebuffer output and that takes a lot of cpu effort.&lt;/P&gt;&lt;P&gt;If the above holds, why does mfw_4vlsink not automatically use the ipucsc when it is fed yuv on a iMX6?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an experiment I removed the yuv formats from the mfw_v4lsink. playbin2 then generates an invalid pipe error. It is unable to automatically incorporate the mfw_ipucsc that provides yuv to RGB conversion.&lt;/P&gt;&lt;P&gt;The gst-launch with mfw_ipuscs still functions correctly with this modification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way to force playbin2 to use mfw_ipuscs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 14:16:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-How-to-accellerate-color-space-conversion-using-gstreamer/m-p/274286#M30131</guid>
      <dc:creator>henkfijnvandraa</dc:creator>
      <dc:date>2014-03-04T14:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 How to accellerate color space conversion using gstreamer and playbin2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-How-to-accellerate-color-space-conversion-using-gstreamer/m-p/274287#M30132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="j-post-avatar" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" class="j-avatar jiveTT-hover-user" data-avatarid="1028" data-externalid="" data-presence="null" data-userid="36648" data-username="Qiang_FSL" href="https://community.nxp.com/people/Qiang_FSL" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #6a737b;"&gt;&lt;IMG alt="Qiang Li" border="0" class="jiveImage jive-avatar" data-avatarid="1028" data-height="46" data-username="Qiang_FSL" height="46" src="https://community.nxp.com/people/Qiang_FSL/avatar/46.png?a=1028" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="46" /&gt;&lt;/A&gt;&lt;SPAN class="j-status-levels" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;IMG alt="Employee" class="jiveImage" src="https://community.nxp.com/6.0.2.0/resources/images/status/FS_EMP_40x18.png" style="font-weight: inherit; font-style: inherit; font-family: inherit;" title="Employee" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author" style="font-weight: inherit; font-style: inherit; font-size: 0.9em; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;A href="https://community.nxp.com/people/Qiang_FSL"&gt;Qiang_FSL&lt;/A&gt; &lt;/STRONG&gt;Mar 31, 2014 7:25 PM &lt;SPAN class="font-color-meta-light j-thread-replyto" style="padding: 0 0 0 3px; font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;"&gt;(&lt;A _jive_internal="true" class="font-color-meta-light localScroll" href="https://community.nxp.com/message/392124?et=watches.email.thread#390527" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;" title="Go to message"&gt;in response to gusarambula&lt;/A&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A class="j-ui-elem j-helpful-star j-star popped" style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: no-repeat no-repeat;"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-ui-elem j-dotted-star" style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;In this case, you don't need use mfw_ipucsc, the mfw_v4lsink supports hardware CSC too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 14:05:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-How-to-accellerate-color-space-conversion-using-gstreamer/m-p/274287#M30132</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2014-04-01T14:05:25Z</dc:date>
    </item>
  </channel>
</rss>

