<?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のトピックSlow H264 1080P@60fps Decoding on Android Lollipop 5.0.2 SabreSD</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451578#M70094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;I'm developing a JAVA RTP Streaming App for a company project, which should be capable of joining the Multicast Server and receive the RTP Packets.Later I use the H264 Depacketizer to recreate the a complete frame from the NAL FU (Keep append the data until End Bit &amp;amp; Marker Bit set )&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;I want to decode and display a raw h264 video byte stream in Android and therefore I'm currently using the MediaCodec classes with Hardware Decoder configured.&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;The Application is Up and running for the Jeallybean (API 17). Various Resolutions which I need to decodes are :&lt;BR /&gt;480P at 30/60 FPS&lt;BR /&gt;720P/I at 30/60 FPS&lt;BR /&gt;1080P/I at 30/60 FPS&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;Recently, Due to System Upgrade we are porting the App to Android L Version 5.0.2. My App is not capable of playing the high resolutions videos like 720p@60fps and 1080p@60fps.&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;For the debugging purpose I started feeding the Elementary H264 Frames with size from the dump file to MediaCodec and found out the Video is Lagging.&lt;BR /&gt;There are timestamps on the sample video I used and it seems the actual time taken to proceed by 1 sec in Rendered Video is more&lt;BR /&gt;Below is my sample code and links to sample video&lt;BR /&gt;h264 video &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fcocjhhovihm8q25%2Fdump60fps.h264%3Fdl%3D0" rel="nofollow" target="_blank"&gt;https://www.dropbox.com/s/cocjhhovihm8q25/dump60fps.h264?dl=0&lt;/A&gt;&lt;BR /&gt;h264 framesize &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fr146d5zederrne1%2Fdump60fps.size%3Fdl%3D0" rel="nofollow" target="_blank"&gt;https://www.dropbox.com/s/r146d5zederrne1/dump60fps.size?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The content of &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 12px; background-color: #fdfdfd;"&gt;sampledecodeApp.7z &lt;/SPAN&gt; package.&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;STRONG&gt;sampledecodeApp&lt;/STRONG&gt; – This is the Android Player source code which reads the size of H264 data from one file and H264 Elementary stream from another file.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The code is similar to the CTS Test code. In short it reads the size of frame line by line from &lt;EM&gt;dump60fps.size&lt;/EM&gt; file and frame size of data from &lt;EM&gt;dump60fps.h264 file.&lt;/EM&gt; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;H264 Sample Video Detail&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resolution – 1920x1080p &lt;/P&gt;&lt;P&gt;FPS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; – 60 framesPerSecond&lt;/P&gt;&lt;P&gt;Bitrate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; –&amp;nbsp; 25MBPS average&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Steps to Install the Application&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Before Installing and Launching the app, We need to push the dumps into /data/loca/tmp directories&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;With the help of adb utility , adb push the dump60fps.h264 &amp;amp; dump60fps.size file into the /data/local/tmp directory onto the running system&lt;/LI&gt;&lt;LI&gt;Import the &lt;STRONG&gt;sampledecodeApp&lt;/STRONG&gt;&amp;nbsp; project into Eclipse or Android Studio and Clean build the Package.&lt;/LI&gt;&lt;LI&gt;Run the Application from the IDE . &lt;/LI&gt;&lt;/OL&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Prebuild apk is available in path sampledecodeApp\bin\sampledecode.apk&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336486"&gt;sampledecode.apk.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336486"&gt;sampledecodeApp.7z.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Oct 2015 07:38:08 GMT</pubDate>
    <dc:creator>gurtajs4</dc:creator>
    <dc:date>2015-10-11T07:38:08Z</dc:date>
    <item>
      <title>Slow H264 1080P@60fps Decoding on Android Lollipop 5.0.2 SabreSD</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451578#M70094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;I'm developing a JAVA RTP Streaming App for a company project, which should be capable of joining the Multicast Server and receive the RTP Packets.Later I use the H264 Depacketizer to recreate the a complete frame from the NAL FU (Keep append the data until End Bit &amp;amp; Marker Bit set )&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;I want to decode and display a raw h264 video byte stream in Android and therefore I'm currently using the MediaCodec classes with Hardware Decoder configured.&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;The Application is Up and running for the Jeallybean (API 17). Various Resolutions which I need to decodes are :&lt;BR /&gt;480P at 30/60 FPS&lt;BR /&gt;720P/I at 30/60 FPS&lt;BR /&gt;1080P/I at 30/60 FPS&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;Recently, Due to System Upgrade we are porting the App to Android L Version 5.0.2. My App is not capable of playing the high resolutions videos like 720p@60fps and 1080p@60fps.&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;For the debugging purpose I started feeding the Elementary H264 Frames with size from the dump file to MediaCodec and found out the Video is Lagging.&lt;BR /&gt;There are timestamps on the sample video I used and it seems the actual time taken to proceed by 1 sec in Rendered Video is more&lt;BR /&gt;Below is my sample code and links to sample video&lt;BR /&gt;h264 video &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fcocjhhovihm8q25%2Fdump60fps.h264%3Fdl%3D0" rel="nofollow" target="_blank"&gt;https://www.dropbox.com/s/cocjhhovihm8q25/dump60fps.h264?dl=0&lt;/A&gt;&lt;BR /&gt;h264 framesize &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fr146d5zederrne1%2Fdump60fps.size%3Fdl%3D0" rel="nofollow" target="_blank"&gt;https://www.dropbox.com/s/r146d5zederrne1/dump60fps.size?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The content of &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 12px; background-color: #fdfdfd;"&gt;sampledecodeApp.7z &lt;/SPAN&gt; package.&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;STRONG&gt;sampledecodeApp&lt;/STRONG&gt; – This is the Android Player source code which reads the size of H264 data from one file and H264 Elementary stream from another file.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The code is similar to the CTS Test code. In short it reads the size of frame line by line from &lt;EM&gt;dump60fps.size&lt;/EM&gt; file and frame size of data from &lt;EM&gt;dump60fps.h264 file.&lt;/EM&gt; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;H264 Sample Video Detail&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resolution – 1920x1080p &lt;/P&gt;&lt;P&gt;FPS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; – 60 framesPerSecond&lt;/P&gt;&lt;P&gt;Bitrate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; –&amp;nbsp; 25MBPS average&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Steps to Install the Application&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Before Installing and Launching the app, We need to push the dumps into /data/loca/tmp directories&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;With the help of adb utility , adb push the dump60fps.h264 &amp;amp; dump60fps.size file into the /data/local/tmp directory onto the running system&lt;/LI&gt;&lt;LI&gt;Import the &lt;STRONG&gt;sampledecodeApp&lt;/STRONG&gt;&amp;nbsp; project into Eclipse or Android Studio and Clean build the Package.&lt;/LI&gt;&lt;LI&gt;Run the Application from the IDE . &lt;/LI&gt;&lt;/OL&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Prebuild apk is available in path sampledecodeApp\bin\sampledecode.apk&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336486"&gt;sampledecode.apk.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336486"&gt;sampledecodeApp.7z.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 07:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451578#M70094</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2015-10-11T07:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Slow H264 1080P@60fps Decoding on Android Lollipop 5.0.2 SabreSD</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451579#M70095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I remember you from &lt;A href="https://community.nxp.com/thread/354965"&gt;Android jb4.2.2_1.1.0-GA source code&lt;/A&gt;&amp;nbsp; thread and you helped me on getting the BSP.&lt;/P&gt;&lt;P&gt;Thanks for you help. I am looking forward for the solution or some suggestions to the above Issue which I reported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I ask How long it will take for someone to verify the same?&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>Mon, 12 Oct 2015 06:25:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451579#M70095</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2015-10-12T06:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Slow H264 1080P@60fps Decoding on Android Lollipop 5.0.2 SabreSD</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451580#M70096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurtaj,&lt;/P&gt;&lt;P&gt;Welcome to our community again.About the questions you ask I am so sorry I am not good at it. But we engineers will give you reply in 48hours.&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 07:45:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451580#M70096</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2015-10-12T07:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Slow H264 1080P@60fps Decoding on Android Lollipop 5.0.2 SabreSD</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451581#M70097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will wait for the response from your engineer.&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>Mon, 12 Oct 2015 08:04:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451581#M70097</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2015-10-12T08:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Slow H264 1080P@60fps Decoding on Android Lollipop 5.0.2 SabreSD</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451582#M70098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you play local file with these solution, do you have any problem? just for rtsp? pls check if your network is ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 08:42:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451582#M70098</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2015-10-30T08:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Slow H264 1080P@60fps Decoding on Android Lollipop 5.0.2 SabreSD</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451583#M70099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guanqiong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have verified the playback of h264 stream reading from the file.&lt;/P&gt;&lt;P&gt;Comparing side by side with two SabreSD board running Jeallybean 4.2.2_1.0.0ga and Lollipop L5.0.0_1.0.0-ga and above Android App.&lt;/P&gt;&lt;P&gt;I see that Both the Video start at same time, but on Lollipop Video Slows Down and by the time the video is about to end, We have Video 5-10 Seconds of Lag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not considering of playing this on network. Even though I check and there is no network delay and packets are received as expected.&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, 30 Oct 2015 10:39:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Slow-H264-1080P-60fps-Decoding-on-Android-Lollipop-5-0-2-SabreSD/m-p/451583#M70099</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2015-10-30T10:39:25Z</dc:date>
    </item>
  </channel>
</rss>

