[gst-devel] CPU consumption when decoding mp3

Stefan Kost ensonic at hora-obscura.de
Wed Mar 17 15:39:57 CET 2010


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
>   





More information about the gstreamer-devel mailing list