CPU consumption when decoding mp3

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

CPU consumption when decoding mp3

Vincent Meserette
Hi all,

I am writing an audio player application which runs on a AMD Geode @500MHz processor.
If I use the libgstflump3dec plugin for mp3 decoding, it takes 25% of the CPU for reading one file, against 15% with the libgstffmpeg default plugin.
Do you know if it is normal to have such a difference ?

Moreover, I made a little test by launching several mp3 at same time with the following commands :

gst-launch-0.10 playbin "uri=file:///home/mymp3_1.mp3" &
gst-launch-0.10 playbin "uri=file:///home/mymp3_2.mp3" &
gst-launch-0.10 playbin "uri=file:///home/mymp3_3.mp3" &
gst-launch-0.10 playbin "uri=file:///home/mymp3_4.mp3" &
gst-launch-0.10 playbin "uri=file:///home/mymp3_5.mp3" &

I reach almost 100% of CPU consumption, the playing stops, but the threads are not killed.
Do you know if there is a way to specify to gstreamer in my application to not launch the playing when i reach too much CPU consumption ?

Thanks in advance for your reply

Kind regards
Reply | Threaded
Open this post in threaded view
|

Re: CPU consumption when decoding mp3

Stefan Sauer
Vincent Meserette wrote:
> Hi all,
>
> I am writing an audio player application which runs on a AMD Geode @500MHz
> processor.
> If I use the libgstflump3dec plugin for mp3 decoding, it takes 25% of the
> CPU for reading one file, against 15% with the libgstffmpeg default plugin.
> Do you know if it is normal to have such a difference ?
>  

You might want to follow up on this ticket:

https://bugzilla.gnome.org/show_bug.cgi?id=605594

different implementations will have different performance. It is simple
as that.

> Moreover, I made a little test by launching several mp3 at same time with
> the following commands :
>
> gst-launch-0.10 playbin "uri=file:///home/mymp3_1.mp3" &
> gst-launch-0.10 playbin "uri=file:///home/mymp3_2.mp3" &
> gst-launch-0.10 playbin "uri=file:///home/mymp3_3.mp3" &
> gst-launch-0.10 playbin "uri=file:///home/mymp3_4.mp3" &
> gst-launch-0.10 playbin "uri=file:///home/mymp3_5.mp3" &
>
> I reach almost 100% of CPU consumption, the playing stops, but the threads
> are not killed.
> Do you know if there is a way to specify to gstreamer in my application to
> not launch the playing when i reach too much CPU consumption ?
>  
You could check the CPU load yourself. GStreamer cannot easily do this.

Stefan

> Thanks in advance for your reply
>
> Kind regards
>  


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel