After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735058 - Performance issue with ant release build- Android tutorial 2
Performance issue with ant release build- Android tutorial 2
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: orc
unspecified
Other Linux
: Normal critical
: 0.4.22
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-08-19 13:49 UTC by urchikkamath
Modified: 2014-08-26 08:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
jni and java files (5.19 KB, application/octet-stream)
2014-08-19 13:49 UTC, urchikkamath
Details

Description urchikkamath 2014-08-19 13:49:34 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
Comment 1 urchikkamath 2014-08-19 14:05:10 UTC
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
Comment 2 urchikkamath 2014-08-19 19:11:19 UTC
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.
Comment 3 Jan Schmidt 2014-08-26 08:30:17 UTC
Fixed in orc, commit #dfcc45

http://cgit.freedesktop.org/gstreamer/orc/commit/?id=dfcc456c2b31deab21501e889c89bd168a50a411