android h264 hardware encoding

cee1 fykcee1 at gmail.com
Sun Oct 20 04:32:15 CEST 2013


2013/10/19 Sebastian Dröge <slomo at coaxion.net>:
> On Fr, 2013-10-18 at 11:11 -0700, yoyosuper8 wrote:
>> So I did some changes to the code under androidmedia folder and then decided
>> to revert the code back from original and attempt to patch it again.
>> However, now I'm having problems when I'm applying the patches. I get an
>> error saying that it can't find a reference to 'gst_amc_video_enc_get_type'
>> in gstamc.c
>>
>> Here is what I do. I have a clean version of androidmedia and then I apply
>> the first patch from the list:
>
> I think the best solution would be to just use git to merge the changes
> from the github branch mentioned in the bug report. That way you can be
> sure to not miss anything and git is also good at any conflict resolval
> if necessary.
The the v2 patch is up to date.

Though, you may use my github's master branch for convenience:
1. git clone https://github.com/cee1/gst-plugins-bad.git
2. cd /path/to/cerbero
3. cerbero-uninstalled -c config/cross-android.cbc shell
4. cd /path/to/gst-plugins-bad
5. modify configure.ac if your gstreamer for android is 1.2.0:
-GST_REQ=1.3.0.1
-GSTPB_REQ=1.3.0.1
+GST_REQ=1.2.0
+GSTPB_REQ=1.2.0
6.
export CXXFLAGS="$CXXFLAGS -DST_NO_EXCEPTION_HANDLING=1"
export CFLAGS="-DGST_PLUGIN_BUILD_STATIC $CFLAGS"
./autogen.sh
./configure --enable-static --disable-shared --disable-gtk-doc
--host=arm-linux-androideabi
7. cd sys/androidmedia
8. make
9. pushd /path/to/gstreamer/lib/gstreamer-1.0/static
mv libgstandroidmedia.a libgstandroidmedia.a.bak
10. ln -s /path/to/gst-plugins-bad/sys/androidmedia/.libs/libgstandroidmedia.a
libgstandroidmedia.a
11. popd



-- 
Regards,

- cee1


More information about the gstreamer-devel mailing list