<?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: H.264 hardware decoding in Android in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255239#M24227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it´s a relief.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2013 12:27:02 GMT</pubDate>
    <dc:creator>daiane_angolini</dc:creator>
    <dc:date>2013-02-18T12:27:02Z</dc:date>
    <item>
      <title>H.264 hardware decoding in Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255236#M24224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am working with the&amp;nbsp; Android R13.4 GA and I need to decode a H.264 raw stream. I have googled in order to find information about how to solve it and all the people say that I should use the library libstagefright.so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This library is installed within the system folder but I do not know how to "open" it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to build the ffmpeg project with stagefright support because the program that I am developing implements the ffmpeg library so I thought that it could be a very good idea to intregrate it into the ffmpeg project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, after 2 - 3 weeks, I have finally compiled the ffmpeg project with the stagefright support (I hope so...) but I have a problem because if I try to link with the ndk platform libraries (android-ndk-r8d/platform/android-9/arch-arm/usr/lib) It compiles and links successfully but if I try to do that with the system libraries distributed with the BSP (Android R13.4 GA), it fails, throwing me the next linking errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi-v7a/objs/avcodec/libavcodec/libstagefright.o: in function Stagefright_init(AVCodecContext*):jni/..//submodules/externals/build/ffmpeg/../../ffmpeg/libavcodec/libstagefright.cpp:317: error: undefined reference to 'android::OMXCodec::Create(android::sp&amp;lt;android::IOMX&amp;gt; const&amp;amp;, android::sp&amp;lt;android::MetaData&amp;gt; const&amp;amp;, bool, android::sp&amp;lt;android::MediaSource&amp;gt; const&amp;amp;, char const*, unsigned int)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi-v7a/objs/avcodec/libavcodec/RefBase.o: in function android::RefBase::weakref_type::attemptIncStrong(void const*):jni/..//submodules/externals/build/ffmpeg/../../ffmpeg/libavcodec/RefBase.cpp:420: error: undefined reference to 'android_atomic_cmpxchg'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi-v7a/objs/avcodec/libavcodec/RefBase.o: in function android::RefBase::weakref_type::attemptIncWeak(void const*):jni/..//submodules/externals/build/ffmpeg/../../ffmpeg/libavcodec/RefBase.cpp:482: error: undefined reference to 'android_atomic_cmpxchg'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;I have been looking for a solution and I have found that the first reference exists in the library "libstagefright.so" and the last 2 references correspond to the library "libcutils.so". Both are installed in /system/lib in the BSP or in &lt;/SPAN&gt;android-ndk-r8d/platform/android-9/arch-arm/usr/lib.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Obviously, I think that the real problem is that the BSP Libraries are different from the ndk libraries (Android version?) and do not contain these references, If that is true, how could I do to compile it??? Because I have tested the Android default video player and It can reproduce the big buck bunny at 1080p smoothly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, I have read the powerpoint distributed by freescale&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-93611"&gt;Multimedia with VPU&amp;amp;amp;IPU HW acceleration in Android&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But It does not throws any light to how to solve the problem. I need how to comunicate with the stagefright API?????.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spent 4 week trying to make run this stuff and I am a bit desperated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 17:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255236#M24224</guid>
      <dc:creator>javierrodriguez</dc:creator>
      <dc:date>2013-02-11T17:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 hardware decoding in Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255237#M24225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried to play some movie using Gallery?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 14:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255237#M24225</guid>
      <dc:creator>daiane_angolini</dc:creator>
      <dc:date>2013-02-15T14:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 hardware decoding in Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255238#M24226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daiane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I said "Android default video player" I wanted to say the video player asociated to the Android Gallery. There, the video big buck bunny at 1080p plays smoothly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, I have solved the linking problems. I was made a mistake triying to link with the gingerbread libraries instead of linking with ice cream sandwich. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 11:03:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255238#M24226</guid>
      <dc:creator>javierrodriguez</dc:creator>
      <dc:date>2013-02-18T11:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 hardware decoding in Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255239#M24227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it´s a relief.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 12:27:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255239#M24227</guid>
      <dc:creator>daiane_angolini</dc:creator>
      <dc:date>2013-02-18T12:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 hardware decoding in Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255240#M24228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also meet the almost same problem and I also studied the &lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-objectid="93611" data-objecttype="102" href="https://community.nxp.com/docs/DOC-93611"&gt;Multimedia with VPU&amp;amp;IPU HW acceleration in Android&lt;/A&gt;&lt;/P&gt;&lt;P&gt;document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I ask whether freescale provides the VPU's API for developers to directly interact with the VPU,&lt;/P&gt;&lt;P&gt;Or developers have to implement the procedure in function of "OMXCodec::allocateOutputBuffersFromNativeWindow()" &lt;/P&gt;&lt;P&gt;where locates at /frameworks/base/media/libstagefright/OMXCodec.cpp? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 10:14:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255240#M24228</guid>
      <dc:creator>elvischen</dc:creator>
      <dc:date>2013-05-09T10:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: H.264 hardware decoding in Android</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255241#M24229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H6 style="font-weight: normal; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" class="font-color-meta-light" href="https://community.nxp.com/message/330997#330997" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;"&gt;Re: H.264 hardware decoding in Android&lt;/A&gt;&lt;/STRONG&gt;&lt;/H6&gt;&lt;P class="j-post-avatar" style="font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" class="j-avatar jiveTT-hover-user" data-avatarid="1034" data-externalid="" data-presence="null" data-userid="203408" data-username="jackmao" href="https://community.nxp.com/people/jackmao" style="font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="Junping Mao" border="0" class="jiveImage jive-avatar" data-height="46" height="46" src="https://community.nxp.com/people/jackmao/avatar/46.png?a=1034" style="border: 0px; font-style: inherit; font-family: inherit;" width="46" /&gt;&lt;/A&gt;&lt;SPAN class="j-status-levels" style="font-style: inherit; font-family: inherit;"&gt;&lt;IMG alt="Employee" class="jiveImage" src="https://community-cache.freescale.com/5.0.3/resources/images/status/FS_EMP_40x18.png" style="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-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/jackmao"&gt;jackmao&lt;/A&gt; &lt;/STRONG&gt;May 22, 2013 7:49 PM &lt;SPAN class="font-color-meta-light j-thread-replyto" style="padding: 0 0 0 3px; 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/330997#315642" style="font-style: inherit; font-family: inherit; color: #a9a9a9;" title="Go to message"&gt;in response to imxcommunityscout&lt;/A&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="j-ui-elem j-dotted-star" style="font-style: inherit; font-family: inherit; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Hi,&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The android GA release already has the support to stagefright, you could use&amp;nbsp; command "setprop media.omxgm.enable-player 0" to enable stagefright to try your task.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 14:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/H-264-hardware-decoding-in-Android/m-p/255241#M24229</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2013-05-23T14:22:38Z</dc:date>
    </item>
  </channel>
</rss>

