GNOME Bugzilla – Bug 735058
Performance issue with ant release build- Android tutorial 2
Last modified: 2014-08-26 08:30:17 UTC
Created attachment 283889 [details] jni and java files Hello, I'm doing an experiment with Android tutorial 2: A running pipeline. Basically this tutorial explains about basic gstreamer pipeline with android device. I have changed pipeline data->pipeline = gst_parse_launch("audiotestsrc ! audioconvert ! audioresample ! autoaudiosink", &error); to data->pipeline = gst_parse_launch("videotestsrc num-buffers=2000 ! x264enc byte-stream =TRUE !filesink location=/mnt/sdcard/TestRelease.264", &error); Now I run the android-tutorial-2 with ant debug and ant release. ant debug takes around 17 seconds to encode and ant release takes around 32 seconds. Attached modified jni and java file.(UI of android tutorial 2 is disabled in java file) Environment: Android version: 4.4.2 Device: Samsung S4
Android NDK Version: android-ndk-r9b SDK version: adt-bundle-linux-x86-20131030 ant version: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Performance captured with latest gstreamer packages (http://gstreamer.freedesktop.org/data/pkg/android/1.4.0/) are as below: With gstreamer-1.0-android-arm-1.4.0-release.tar.bz2 ant debug package will take 2 min 9 sec to complete pipeline ant release package will take 2 min 31 sec to complete pipeline With gstreamer-1.0-android-arm-1.4.0-debug.tar.bz2 ant debug package will take 2 min 10 sec to complete pipeline ant release package will take 2 min 38 sec to complete pipeline.
Fixed in orc, commit #dfcc45 http://cgit.freedesktop.org/gstreamer/orc/commit/?id=dfcc456c2b31deab21501e889c89bd168a50a411