<?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: How to increase the number of inputBuffer for MediaCodec on Android4.4.3 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469835#M74261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are facing issues in enabling the hardware acceleration with stagefright. &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; As per the above discussion, Freescale uses &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;fsl_vpu_omx &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;to interface hardware codec with libstagefright. Is it true that we need to just integrate the &lt;STRONG&gt;fsl_vpu_omx&lt;/STRONG&gt; patches to enable the stagefright HW acceleration, or do we need to additional work to achieve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Subash kumar.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2016 05:29:34 GMT</pubDate>
    <dc:creator>subashkumar</dc:creator>
    <dc:date>2016-06-22T05:29:34Z</dc:date>
    <item>
      <title>How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469807#M74233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We run Android4.4.3 with MX6Q-SABRE-SDB board.&lt;/P&gt;&lt;P&gt;(This Android4.4.3 is IMX6_KK443_200_ANDROID_SOURCE_BSP of NXP.)&lt;/P&gt;&lt;P&gt;And, Extended Feature Packages(omx player package) are implemented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this system, We want to use Android MediaCodec API Demo.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://github.com/vecio/MediaCodecDemo" rel="nofollow"&gt;https://github.com/vecio/MediaCodecDemo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This MediaCodec seems to use only one InputBuffer for the decode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we increase the number of inputBuffer?&lt;/P&gt;&lt;P&gt;If it is possible, would you tell me the method (procedure)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the following cord.&lt;/P&gt;&lt;P&gt;==========================================================&lt;/P&gt;&lt;P&gt;ByteBuffer[] inputBuffers = decoder.getInputBuffers();&lt;/P&gt;&lt;P&gt;ByteBuffer[] outputBuffers = decoder.getOutputBuffers();&lt;/P&gt;&lt;P&gt;BufferInfo info = new BufferInfo();&lt;/P&gt;&lt;P&gt;boolean isEOS = false;&lt;/P&gt;&lt;P&gt;long startMs = System.currentTimeMillis();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while (!Thread.interrupted()) {&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;&amp;nbsp; if (!isEOS) {&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;&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; int inIndex = decoder.dequeueInputBuffer(100000);&lt;/P&gt;&lt;P&gt;==========================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the dequeueInputBuffer function was called, value "0" is returned to Index, and this processing takes an about 20msec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to be caused by the fact that this inputBuffer is SingleBuffer.&lt;/P&gt;&lt;P&gt;We want to shorten the processing time by increasing InputBuffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I have advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Yuuki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 02:24:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469807#M74233</guid>
      <dc:creator>yuuki</dc:creator>
      <dc:date>2016-01-06T02:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469808#M74234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We found the point that defined the number of InputBuffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;external/fsl_imx_omx/OpenMAXIL/src/component/vpu_dec_v2/VpuDecComponent.cpp&lt;/P&gt;&lt;P&gt;===============================================================&lt;/P&gt;&lt;P&gt;#define DEFAULT_BUF_IN_CNT&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;&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; 0x1&lt;/P&gt;&lt;P&gt;#define DEFAULT_BUF_IN_SIZE&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; (1024*1024)&lt;/P&gt;&lt;P&gt;#define DEFAULT_BUF_OUT_POST_ZEROCNT (0)&lt;/P&gt;&lt;P&gt;#define DEFAULT_BUF_OUT_POST_CNT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (5)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //5 will bring better performance than 4&lt;/P&gt;&lt;P&gt;#define DEFAULT_BUF_OUT_DEC_CNT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (3)&lt;/P&gt;&lt;P&gt;===============================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried the change of the value of DEFAULT_BUF_IN_CNT.&lt;/P&gt;&lt;P&gt;However, it was not improved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our problem is that 1080p60fps video contents are played back at about 50fps if MediaCodec was used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which part of MediaCodec should we confirm?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I have advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Yuuki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 09:55:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469808#M74234</guid>
      <dc:creator>yuuki</dc:creator>
      <dc:date>2016-01-06T09:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469809#M74235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Do you try to use "external\fsl_vpu_omx"&amp;nbsp; codec&amp;nbsp; package instead of "external/fsl_imx_omx"&amp;nbsp; package ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 06:54:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469809#M74235</guid>
      <dc:creator>yifangguo-b4310</dc:creator>
      <dc:date>2016-01-18T06:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469810#M74236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are facing the similar issue and see that the input buffers are allocates using the useBuffer&lt;/P&gt;&lt;P&gt;&lt;A href="http://androidxref.com/5.1.1_r6/xref/frameworks/av/media/libstagefright/ACodec.cpp#582" title="http://androidxref.com/5.1.1_r6/xref/frameworks/av/media/libstagefright/ACodec.cpp#582"&gt;Cross Reference: /frameworks/av/media/libstagefright/ACodec.cpp&lt;/A&gt;&amp;nbsp; which is not allocating on hardware side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is someone already have achieved the solution, Can someone help me on increasing the Input Buffers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurtaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Feb 2016 11:34:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469810#M74236</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2016-02-13T11:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469811#M74237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurtaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which package codec are you using?&amp;nbsp; AS you can see from the thread we are recommending to use the "external\fsl_vpu_omx"&amp;nbsp;&amp;nbsp; which platform are you using and what version of BSP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 15:30:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469811#M74237</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2016-02-15T15:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469812#M74238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using Android L5.1.1_2.1.0 GA. We have Android Multimedia Extended Codec as a part of BSP.&lt;/P&gt;&lt;P&gt;I was able to increase the buffer from &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;DEFAULT_BUF_IN_CNT&amp;nbsp; in&lt;/SPAN&gt; V&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;puDecComponent.cpp.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Currently we are facing the issue with 60FPS video playback using Mediacodec API. The same used to work in Android JB4.2.2_1.0.0-ga.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;We are trying to isolate the problem and in the process we see decoding or rendering could be slow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Can you help me understanding the mechanism of how decoded data is rendered onto the surfaceflinger after MediaCodec.releaseOutputBuffer(true) is called.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Also, can you speculate on what exactly was changed in between&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; JB4.2.2_1.0.0-ga. and next version with reference to rendering.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Gurtaj&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 17:40:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469812#M74238</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2016-02-15T17:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469813#M74239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is about&amp;nbsp; OpenMax VPU decoder&amp;nbsp; and&amp;nbsp; surface render component performace , have created JIRA: &lt;/P&gt;&lt;P&gt;&lt;A href="http://sw-jira.freescale.net/browse/MMFMWK-7080" title="http://sw-jira.freescale.net/browse/MMFMWK-7080"&gt;http://sw-jira.freescale.net/browse/MMFMWK-7080&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 03:54:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469813#M74239</guid>
      <dc:creator>yifangguo-b4310</dc:creator>
      <dc:date>2016-02-18T03:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469814#M74240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not able to access the link being in company network. So can you shed some light on how the problem can be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurtaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 06:55:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469814#M74240</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2016-02-18T06:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469815#M74241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.nxp.com/people/gurtajs4@gmail.com"&gt;gurtajs4@gmail.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you mean you are using&amp;nbsp; Mediacodec API which Android SDK expose too ?&lt;/P&gt;&lt;P&gt;Actually,&amp;nbsp; Android use&amp;nbsp; StageFright&amp;nbsp; as default Multimedia framework.&amp;nbsp; Fsl's fsl_imx_omx&amp;nbsp; package use "OMXPlayer" as Multimedia framework.&lt;/P&gt;&lt;P&gt;So, do you test use "external\fsl_vpu_omx" package to test ?&lt;/P&gt;&lt;P&gt;That's mean don't apply Extended Feature Packages(omx player package) .&amp;nbsp; That's "HAVE_FSL_IMX_CODEC" is "false".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 07:38:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469815#M74241</guid>
      <dc:creator>yifangguo-b4310</dc:creator>
      <dc:date>2016-02-18T07:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469816#M74242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using MediaCodec API with BSP &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Android L5.1.1_2.1.0 GA. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;We know that the OMXPlayer uses the fsl_imx_omx. Again the striped version of "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;fsl_imx_omx&lt;/STRONG&gt;" is "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;fsl_vpu_omx&lt;/STRONG&gt;".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;So in Android, Freescale uses &lt;STRONG style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;fsl_vpu_omx &lt;/STRONG&gt;to interface hardware codec with libstagefright.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Speaking of which, MediaCodec uses fsl_vpu_omx for decoding.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If that correct then what about the Rendering in MediaCodec ?? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Does it uses fsl_vpu_omx&amp;nbsp; as a renderer?? or Is it differently linked with SurefaceFlinger.?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Media Player Flow Diagrams.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53900i4D71AD44FF58107A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Media Player Flow Diagrams.jpg" alt="Media Player Flow Diagrams.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;See, the Green Path works with no issue, but the Mediacodec path are having issue with decoding + rendering the frame at 16.6 fps for 1080p60fps video.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I wanted to isolate the issue. Either its in decoder or renderer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Can you suggest some way here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Gurtaj&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 08:21:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469816#M74242</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2016-02-18T08:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469817#M74243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-avatarid="1034" data-content-finding="Community" data-externalid="" data-presence="null" data-userid="264751" data-username="gurtajs4%40gmail.com" href="https://community.nxp.com/people/gurtajs4@gmail.com"&gt;Gurtaj Singh&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I agree with you,&amp;nbsp; should distinguish the OpenMax VPU component issue or&amp;nbsp; surface render display issue.&lt;/P&gt;&lt;P&gt;you said "the Green Path works with no issue" , is that mean&amp;nbsp; if&amp;nbsp; only use VPU component(no surface render handlle), the vpu decode&amp;nbsp; speed can reached 60fps ?&amp;nbsp; if yes,&amp;nbsp; the issue happend on rendering mechanism.&lt;/P&gt;&lt;P&gt;In "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;fsl_imx_omx&lt;/STRONG&gt;&lt;/SPAN&gt;" package, OMX_player use OpenMAX component "OMX.Freescale.std.video_render.surface.sw-based" as render component.&lt;/P&gt;&lt;P&gt;In "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;fsl_vpu_omx&lt;/STRONG&gt;&lt;/SPAN&gt;" package, stagefright&amp;nbsp; use Android libstagefright default render method "AwesomeRenderer".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 10:32:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469817#M74243</guid>
      <dc:creator>yifangguo-b4310</dc:creator>
      <dc:date>2016-02-18T10:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469818#M74244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yifang Guo,&lt;SPAN style="font-weight: bold; font-size: 12.6px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;A href="https://community.nxp.com/people/yifangguo-b43107"&gt;yifangguo-b43107&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, if only VPU Component is used (&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;no surface render handlle), the vpu decode&amp;nbsp; speed can reached upto 65-75fps. This is with 1080p video 25MB bitrate and 60 FPS. But since we are using &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Android libstagefright default render, the overall output fps achieve ( both including decoding and rendering ) is less than 60. It is around 50 FPS&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I am really doubting the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Android libstagefright default render method. Can we verify this and isolate or narrow down the issue.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Gurtaj&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 10:47:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469818#M74244</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2016-02-18T10:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469819#M74245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you test&amp;nbsp; to use&amp;nbsp; "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;fsl_vpu_omx&lt;/STRONG&gt;&lt;/SPAN&gt;" package,&amp;nbsp;&amp;nbsp; delete "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;fsl_imx_omx&lt;/STRONG&gt;&lt;/SPAN&gt;" package folder ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 10:51:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469819#M74245</guid>
      <dc:creator>yifangguo-b4310</dc:creator>
      <dc:date>2016-02-18T10:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469820#M74246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok I see the point. &lt;/P&gt;&lt;P&gt;I don't have&amp;nbsp; &lt;STRONG&gt;f&lt;/STRONG&gt;&lt;SPAN style="font-weight: bold; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;sl_imx_omx, &lt;/SPAN&gt;we only have &lt;SPAN style="font-weight: bold; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;fsl_vpu_omx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The problem is I am using MediaCodec API and MediaCodec uses VPU for decoding and &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Android libstagefright default render method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Decoding is fine, Rendering is slow and hence the overall video playback with MediaCodec is slow ( 1 Minute video takes 1.5 minutes to complete).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;I still want to use MedaiCodec API's . There is no other option to decode h264 elementary stream in JAVA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;How can I speed up the rendering.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Gurtaj &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 10:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469820#M74246</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2016-02-18T10:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469821#M74247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-avatarid="1034" data-content-finding="Community" data-externalid="" data-presence="null" data-userid="264751" data-username="gurtajs4%40gmail.com" href="https://community.nxp.com/people/gurtajs4@gmail.com"&gt;Gurtaj Singh&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px; font-weight: bold;"&gt;fsl_vpu_omx &lt;/SPAN&gt;" package is only a&amp;nbsp; OpenMax plugin worked for Android Multimedia stagefright.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you confirm that&amp;nbsp; you&amp;nbsp; &lt;SPAN style="color: #51626f; font-family: Arial;"&gt;&lt;STRONG&gt;are using &lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px; font-weight: bold;"&gt;fsl_vpu_omx to try , not&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;f&lt;/STRONG&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px; font-weight: bold;"&gt;sl_imx_omx at present&lt;/SPAN&gt; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if yes,&amp;nbsp;&amp;nbsp; I suggest&amp;nbsp; to apply " Extended Feature Packages(omx player package)-fsl_imx_omx"&amp;nbsp; to test&amp;nbsp;&amp;nbsp; MediaCodec API demo.&amp;nbsp; Because fsl_imx_omx package implement another Multimedia framework "omx_player"&amp;nbsp;&amp;nbsp; instead of "stagefright" .&lt;/P&gt;&lt;P&gt;So, I mean you can test your MediaCodec API demo on two different Multimedia frameworks :&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; On Android&amp;nbsp; default Multimedia framework---stagefright, it utilizes OpenMax VPU component plugin in&amp;nbsp; "fsl_vpu_omx" package,&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Or FSL Multimedia framework---omx_player,&amp;nbsp; it is implemented by FSL instead of "stagefright" in "fsl_imx_omx" package. In "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;fsl_imx_omx&lt;/STRONG&gt;&lt;/SPAN&gt;" package, OMX_player use OpenMAX component "OMX.Freescale.std.video_render.surface.sw-based" as render component.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 02:18:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469821#M74247</guid>
      <dc:creator>yifangguo-b4310</dc:creator>
      <dc:date>2016-02-19T02:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469822#M74248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sir, If I apply fsl_imx_omx patches, then the changes effect only mediaplayerservice and the Gallery will by default start using OMXPlayer instead of Awesome/NuPlayer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as you can see in the picture above, we wanted to use MediaCodec API to decode raw h264.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And at no point from the above diagram I see MediaCodec using Freescale renderer, it always uses Awesome renderer and which could be the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my understanding correct???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurtaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 02:35:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469822#M74248</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2016-02-19T02:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469823#M74249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If&amp;nbsp;&amp;nbsp; apply fsl_imx_omx patches, then the changes effect only mediaplayerservice and the Gallery will by default start using OMXPlayer instead of Awesome/NuPlayer.&lt;/P&gt;&lt;P&gt;[A] Yes , it's right.&lt;/P&gt;&lt;P&gt;Can you confirm that&amp;nbsp;&amp;nbsp; your&amp;nbsp; "MediaCodec API"&amp;nbsp; can call in to "OMXPlayer"&amp;nbsp; flow or not ?&lt;/P&gt;&lt;P&gt;As "i.MX_Android_Extended_Codec_Release_Notes.pdf" spec,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53655iE2FD2F70BFE2ECD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Android&amp;nbsp; Codec spec of H.264 1080p decoder&amp;nbsp; can only guarantee the MAX framerate 30fps . Don't guarantee more than 30fps&amp;nbsp; in Android System expect&amp;nbsp; an baremetal(no os) demo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 03:35:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469823#M74249</guid>
      <dc:creator>yifangguo-b4310</dc:creator>
      <dc:date>2016-02-19T03:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469824#M74250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/yifangguo-b43107"&gt;yifangguo-b43107&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Freescale &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; Android L5.1.1_2.1.0 GA, for our development.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;""Can you confirm that&amp;nbsp;&amp;nbsp; your&amp;nbsp; "MediaCodec API"&amp;nbsp; can call in to "OMXPlayer"&amp;nbsp; flow or not ?""&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;[Gurtaj] Can you verify as my knowledge is scare with respect to OpenMAX.&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;"&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Android&amp;nbsp; Codec spec of H.264 1080p decoder&amp;nbsp; can only guarantee the MAX framerate 30fps . Don't guarantee more than 30fps&amp;nbsp; in Android System expect&amp;nbsp; an baremetal(no os) demo."&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;[Gurtaj] I know that the spec says no guarantee for more than 30FPS, Can you answer the below questions &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;A. Have a look here &lt;A href="https://community.nxp.com/thread/377573"&gt;Slow H264 1080P@60fps Decoding on Android Lollipop 5.0.2 SabreSD&lt;/A&gt; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;B. How can JB was able to decode and render 60FPS video and Lollipop or Kitkat don't.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;C. Why there is no effect in the OMXPlayer or GMPlayer ( the green path in above sample) and they are able to decode the given video, But only the MediaCodec Path got effected?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Looking forward to a great discussion and logical answers to above question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Gurtaj&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 05:50:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469824#M74250</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2016-02-19T05:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469825#M74251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; OMXPlayer (GMPlayer) is implemented by FSL as Media player framework.&amp;nbsp; It use&amp;nbsp; openMAX&amp;nbsp; VPU decoder component, and re-construct render method in&amp;nbsp; "OMX.Freescale.std.video_render.surface.sw-based" component although send to surfaceflinger too.&amp;nbsp; So,&amp;nbsp; OMXPlayer 's play frame rate maybe can reach to about 60fps under some low bitrate use case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But Media Codec API&amp;nbsp;&amp;nbsp;&amp;nbsp; use stagefright&amp;nbsp; multimedia framework ,&amp;nbsp; can you mask the stagefright render code, don't display video frame, just only use&amp;nbsp; VPU component decode( or save every decoded frame in FS by write an opened file), then test the frame rate.&amp;nbsp; If it can reach to 60fsp, so the issue is in&amp;nbsp; Android stagefright render part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 06:43:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469825#M74251</guid>
      <dc:creator>yifangguo-b4310</dc:creator>
      <dc:date>2016-02-19T06:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the number of inputBuffer for MediaCodec on Android4.4.3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469826#M74252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/yifangguo-b43107"&gt;yifangguo-b43107&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your explanation and keeping patience with me so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, We wanted to use MediaCodec to only Decode (&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;just only use&amp;nbsp; VPU component decode and no rendering). Later save the decoded YUV frames to a file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;As you can see from the starting of the thread, I am asking for help to do this approach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Media Player Suggested Approach.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53939iEF897639E5EE629A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Media Player Suggested Approach.jpg" alt="Media Player Suggested Approach.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Can you help me with best way and some test code to do &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;1. The YUV to RGB color conversion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;2. Render the converted image to framebuffer ( Zero Copy Approach ??).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;If, i have a test code to perform the two methods in the minimum time, let say 2-3 millisecond. Then we will be able to narrow down and isolate the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Gurtaj&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 07:02:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-increase-the-number-of-inputBuffer-for-MediaCodec-on/m-p/469826#M74252</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2016-02-19T07:02:07Z</dc:date>
    </item>
  </channel>
</rss>

