<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div class="" style=""><span class="" style="">Moving further I did some more experiments with latest android builds:</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span class="" style=""><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;" class=""><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class="">Using the gstreamer android package posted on : </span><span style="color: rgb(34, 34, 34); font-family:
arial, sans-serif; font-size: 13px;" class=""> </span><a href="http://gstreamer.freedesktop.org/data/pkg/android/1.4.0/" target="_blank" style="font-family: arial, sans-serif; font-size: 13px; color: rgb(17, 85, 204); background-color: rgb(255, 255, 255);" class="">Index of /data/pkg/android/1.4.0</a> This time I run only simple encoding pipeline but still issue persists i.e ant release takes more time than ant debug</div><div style="width:450px; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';margin-top:5px; margin-bottom: 5px;" contenteditable="false" id="enhancrCard_0" class="link-enhancr-attachment link-enhancr-element"><table class="link-enhancr-element" cellspacing="0" cellpadding="0" border="0" style="width:450px; height:170px; position: relative; display: block;"><tbody><tr class="link-enhancr-element"><td class="link-enhancr-element" colspan="8" style="height: 1px; background-color: #e5e5e5; font-size: 1px;
border-collapse: collapse;"><div class="link-enhancr-element" style="height: 1px; background-color: #e5e5e5; font-size: 1px; line-height:0px;"> </div></td></tr><tr class="link-enhancr-element"><td rowspan="5" class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;"><div class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;"> </div></td><td class="link-enhancr-element" rowspan="5" style="vertical-align: middle; width: 168px; height: 168px; background-color: #000000;border-collapse: collapse;"><div class="link-enhancr-element" style="width: 168px;" align="center"><a href="http://gstreamer.freedesktop.org/data/pkg/android/1.4.0/" class="link-enhancr-card-urlWrapper link-enhancr-element" style="text-decoration: none !important; color: #000000 !important;"><img alt="image" src="http://gstreamer.freedesktop.org/icons/blank.gif"
class="link-enhancr-thumbnail-image link-enhancr-element" width="153" height="168" style="display: block; margin: auto;"></a></div></td><td rowspan="5" class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;"> </div></td><td rowspan="5" class="link-enhancr-element" style="width: 14px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="width: 14px; background-color: #ffffff; font-size: 14pt;"> </div></td><td colspan="2" class="link-enhancr-element" style="height: 6px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="height: 6px; background-color: #ffffff; font-size: 6pt;"> </div></td><td rowspan="5" class="link-enhancr-element" style="width: 20px;
background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="width: 20px; background-color: #ffffff; font-size: 20pt;"> </div></td><td class="link-enhancr-element" rowspan="5" width="1" style="width: 1px; background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;"><div class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;"> </div></td></tr><tr><td class="link-enhancr-element" colspan="2" style="width: 100%; vertical-align: middle; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';"><div class="link-enhancr-text-part link-enhancr-element" style="line-height:16.5px; background-color: #ffffff; height: 135px; width: 245px;"><div class="link-enhancr-element" style="word-wrap: break-word; word-break: break-all;"><span class="link-enhancr-element icon icon-shrink link-enhancr-toggle"></span><span class="link-enhancr-element icon icon-close
link-enhancr-delete"></span><a href="http://gstreamer.freedesktop.org/data/pkg/android/1.4.0/" class="link-enhancr-card-urlWrapper link-enhancr-element" style="text-decoration: none !important; color: #000000 !important; line-height: 100%; font-size: 18px; display: block;"><span class="link-enhancr-element link-enhancr-card-title" style="margin: 0; font-weight: normal;margin-bottom: 3px; font-size: 18px; line-height: 21px; max-height: 43px; color: #000000; overflow: hidden !important; display: inline-block;">Index of /data/pkg/android/1.4.0</span></a><div style="font-size: 13px; line-height: 20px; color: #999999; max-height: 81px; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';overflow: hidden;" class="link-enhancr-card-description link-enhancr-element">Name Last modified Size Description Parent Directory - gstreamer-1.0-android-arm-1.4.0-debug-runtime.tar.bz2 20-Jul-2014 05:32 67M
gstreamer-1....</div></div></div></td></tr><tr><td colspan="2" class="link-enhancr-element" style="height: 4px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="height: 4px; background-color: #ffffff; font-size: 4pt;"></div></td></tr><tr><td class="link-enhancr-element" style="vertical-align: middle; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div class="link-enhancr-element" style="font-size: 0pt;"><a href="http://gstreamer.freedesktop.org/data/pkg/android/1.4.0/" class="link-enhancr-card-url link-enhancr-element" style="color: black; text-decoration: none !important;cursor:pointer !important;" target="_blank"><span class="link-enhancr-element link-enhancr-view-on" style="display: inline-block; line-height: 11px; max-width: 145px; min-width: 85px; overflow: hidden; max-height: 13px; word-break: break-all;"><span class="link-enhancr-element
link-enhancr-mobile-no-resize" style="vertical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none; -webkit-text-size-adjust:none; text-size-adjust:none;">View on <span style="font-weight: bold" class="link-enhancr-view-on-domain">gstreamer.freedeskto...</span></span></span></a></div></td><td class="link-enhancr-element" style="vertical-align: middle; width: 100px; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div class="link-enhancr-element link-enhancr-preview-wrapper" style="max-width: 100px; min-width: 80px; overflow: hidden; text-align: right; line-height: 11px; max-height: 13px; font-size: 0pt;"><span class="link-enhancr-element link-enhancr-preview-by link-enhancr-mobile-no-resize" style="vertical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none; -webkit-text-size-adjust:none;
text-size-adjust:none;">Preview by Yahoo</span></div></td></tr><tr><td colspan="2" class="link-enhancr-element" style="height: 9px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="height: 9px; background-color: #ffffff; font-size: 9pt;"></div></td></tr><tr class="link-enhancr-element"><td class="link-enhancr-element" colspan="8" style="height: 1px; background-color: #e5e5e5; font-size: 1px; border-collapse: collapse;"><div class="link-enhancr-element" style="height: 1px; background-color: #e5e5e5; font-size: 1px; line-height:0px"> </div></td></tr></tbody></table></div><div> </div><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class="">gstreamer-1.0-android-arm-1.4.</span><wbr style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif;
font-size: 13px;" class="">0-debug.tar.bz2 => ant debug => encode time : 2 seconds</span><br style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class="">gstreamer-1.0-android-arm-1.4.</span><wbr style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class="">0-debug.tar.bz2 => ant release => encode time : 6 seconds</span><br style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class="">gstreamer-1.0-android-arm-1.4.</span><wbr style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><span style="color: rgb(34, 34, 34); font-family:
arial, sans-serif; font-size: 13px;" class="">0-release.tar.bz2 => ant debug => encode time : 2 seconds</span><br style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class="">gstreamer-1.0-android-arm-1.4.</span><wbr style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class="">0-release.tar.bz2 => ant release => encode time : 6 seconds</span><br style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;" class=""> <div style="font-family: HelveticaNeue,
Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;" class=""> <div dir="ltr" class="" style=""> <font size="2" face="Arial" class="" style=""> On Tuesday, August 12, 2014 2:45 PM, Umashankar Chikkamath <umashankar.chikkamath@yahoo.com> wrote:<br class="" style=""> </font> </div> <br class="" style=""><br class="" style=""> <div class="" style=""><div id="yiv0166313356" class="" style=""><div class="" style=""><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;" class=""><div class="" style="font-size:13px;">Hello,</div><div class="" style="font-size:13px;">I was debugging a very strange performance issue from past couple of days. I'm not able to figure it out what could be the root cause for this performance issue. It would be great help if I get some suggestions or inputs to find out reason for performance issue. Please find
below more details .</div><div class="" style="font-size:13px;">I'm able to transcode mp4 to mp4 file (re-encoding only video data not touching audio track) using gstreamer pipeline and I'm using available hardware decoder and encoder of the device (via androidmedia plugin). If I run this pipeline using debug mode package i.e ant debug build transcoding meet real time performance for 720p and close to real time for 1080p. However
if I run pipeline using release mode i.e ant release command in this case transcoding time is unrealistic, it takes more than 2x time than actual file duration. For example 160 seconds video of 1080p will take 180 seconds to transcode. Here difference is 30 seconds but this difference keeps increasing with file duration i.e For 500 seconds video with ant debug build takes 370 seconds to transcode where as ant release build will take 1700 seconds to transcode</div><div class="" style="font-size:13px;"><br style="" class=""></div><div class="" style="font-size:13px;background-color:transparent;">Gstreamer pipeline: </div><div class="" style="font-size:13px;background-color:transparent;">sprintf(gst_launch_pipeline, "filesrc location=%s ! qtdemux name=demux demux.audio_0 ! queue max-size-time=5000000000 ! audio/mpeg,mpegversion=4 ! mp4mux name=mux ! filesink name=sink location=%s demux.video_0 ! video/x-h264 ! avdec_h264
!
queue ! videoconvert ! video/x-raw,width=%ld,height=%ld,format=\(string\)NV12 ! amcvidenc-omxqcomvideoencoderavc bitrate=%ld i-frame-interval=2 hw-dec-info=TRUE ! video/x-h264 ! queue max-size-bytes=0 max-size-buffers=0 max-size-time=0 ! h264parse ! mux.video_0", input_file, output_file, width, height, targetBitrate);</div><div class="" style="font-size:13px;background-color:transparent;"><br class="" style=""></div><div class="" style="font-size:13px;background-color:transparent;">Note: Above gstreamer pipeline works perfectly fine, I'm suspecting I may missing proper configuration while building gstreamer SDK package. Performance issue is consistently observed on all android devices not particular to a manufacture.</div><div class="" style="font-size:13px;"> </div><div class="" style="font-size:13px;">Environment:</div><div class="" style="font-size:13px;">Device:Samsung S4 (qualcomm based
chipset) </div><div class="" style="font-size:13px;">Stock OS: Android 4.3</div><div class="" style="font-size:13px;"><span class="" style="font-size:10pt;">Cerbero </span>Gstreamer SDK git version: <span class="" style="font-size:10pt;color:rgb(34, 34, 34);font-family:arial, sans-serif;">7cf0b7818d560ee</span><span class="" style="font-size:10pt;color:rgb(34, 34, 34);font-family:arial, sans-serif;">8bed3fa96ca2e43</span> <span class="" style="font-size:10pt;color:rgb(34, 34, 34);font-family:arial, sans-serif;">22aceb6e04</span></div><div class="" style="font-size:10pt;background-color:transparent;"><br class="" style=""></div><div class="" style="font-size:13px;">Thanks in advance,</div><div class="" style="font-size:13px;">-Umashankar </div><div class="" style=""><br class="" style=""></div></div></div></div><br class="" style=""><br class="" style=""></div> </div> </div> </div> </div></body></html>