<div dir="ltr">Hi there,<div><br></div><div>May be the disk read/write taking more time than actual audioconvert. Check using the file from some ramfs/tmpfs path, this experiment will isolate possibility of disk read/write's role.</div>
<div>As said by <span style="font-family:arial,sans-serif;font-size:13px;font-weight:bold;white-space:nowrap">Sebastian </span><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">you can very well do the CPU profiling which should pinpoint role of each component towards to the delay if it is disk access it should be towardss</span></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap">filesink.</span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap"><br></span></font><div class="gmail_extra"><br clear="all">
<div><div dir="ltr">With Warm Regards<br>Anuroop Suresh Jesu<br><br>"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."<br>
"Anyone who has never made a mistake has never tried anything new."<br><br><br><br></div></div>
<br><br><div class="gmail_quote">On Wed, Apr 2, 2014 at 11:37 AM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="">On Di, 2014-04-01 at 07:06 -0700, cxphong wrote:<br>
> Hello,<br>
> I converted a audio file with .wav extension to .ogg.<br>
> wav file is about 100MB.<br>
> On ubuntu, the conversion takes about 10s, but on android it take about<br>
> 5min. It's too long.<br>
><br>
> Could anyone help me to show the problem?. And Are there better way to<br>
> convert wav to ogg on android?<br>
<br>
</div>The best would be to check with a profiler which parts of the code are<br>
taking so long. You can also get an idea of this by putting queues<br>
between each element in your pipeline and checking with top on the<br>
device which thread (which are named after their queues) take the most<br>
CPU.<br>
<br>
Most likely the problem here will be that your Android device is slow<br>
with floating point arithmetic, and vorbisenc requires floating point<br>
arithmetic.<br>
<span class=""><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
</font></span><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div></div></div>