<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div class="" style="">Hello,</div><div class="" style="">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="">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=""><br class="" style=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;">Gstreamer pipeline: </div><div class="" style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; 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="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><br class="" style=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; 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=""> </div><div class="" style="">Environment:</div><div class="" style="">Device:Samsung S4 (qualcomm based chipset) </div><div class="" style="">Stock OS: Android 4.3</div><div class="" style=""><span style="font-size: 10pt;" class="">Cerbero </span>Gstreamer SDK git version: <span style="font-size: 10pt; color: rgb(34, 34, 34); font-family: arial, sans-serif;" class="">7cf0b7818d560ee</span><wbr style="font-size: 10pt; color: rgb(34, 34, 34); font-family: arial, sans-serif;" class=""><span style="font-size: 10pt; color: rgb(34, 34, 34); font-family: arial, sans-serif;" class="">8bed3fa96ca2e43</span><wbr
style="font-size: 10pt; color: rgb(34, 34, 34); font-family: arial, sans-serif;" class=""><span style="font-size: 10pt; color: rgb(34, 34, 34); font-family: arial, sans-serif;" class="">22aceb6e04</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><br class="" style=""></div><div class="" style="">Thanks in advance,</div><div class="" style="">-Umashankar </div></div></body></html>