Android - Convert .wav to .ogg is too slow
Anuroop Jesu
jesuas at gmail.com
Wed Apr 2 11:48:17 PDT 2014
Hi there,
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.
As said by Sebastian 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
filesink.
With Warm Regards
Anuroop Suresh Jesu
"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."
"Anyone who has never made a mistake has never tried anything new."
On Wed, Apr 2, 2014 at 11:37 AM, Sebastian Dröge
<sebastian at centricular.com>wrote:
> On Di, 2014-04-01 at 07:06 -0700, cxphong wrote:
> > Hello,
> > I converted a audio file with .wav extension to .ogg.
> > wav file is about 100MB.
> > On ubuntu, the conversion takes about 10s, but on android it take about
> > 5min. It's too long.
> >
> > Could anyone help me to show the problem?. And Are there better way to
> > convert wav to ogg on android?
>
> The best would be to check with a profiler which parts of the code are
> taking so long. You can also get an idea of this by putting queues
> between each element in your pipeline and checking with top on the
> device which thread (which are named after their queues) take the most
> CPU.
>
> Most likely the problem here will be that your Android device is slow
> with floating point arithmetic, and vorbisenc requires floating point
> arithmetic.
>
> --
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140402/82aa5186/attachment.html>
More information about the gstreamer-devel
mailing list