CPU utilization when using gst-launch play mp3

Stefan Sauer ensonic at hora-obscura.de
Fri Jun 29 06:25:48 PDT 2012


On 06/29/2012 10:11 AM, brad2012 wrote:
> Dears, 
>
> Is there any method to reduce CPU utilization when play mp3?
>
> When I try to play mp3 by the command:
> gst-launch-0.10 filesrc location=/var/tmp/usb/sda1/audio_src/1503-9.mp3 !
> mad ! audioconvert ! audioresample ! audio/x-raw-int,
> rate=48000,width=16,endianness=4321 ! alsasink device="hw:0,0"
Yes there is a simple way to lower the CPU load. Use an optimized mp3
decoder. Avoid audioconvert (by ensuring your mp3 decoder will output in
a format suitable for your sink). Also fix your alsa driver to properly
report formats, so that you don't need the capsfilter.

Stefan
>
> the alsa device is I2S+audio codec in our embedd platform.
> the device report sample rate available is 48K
> but I have to set playing rate to audio codec  is 8Khz, such that the audio
> data can be sent to codec.
>
> But it is now problem about playing .wav file with sample rate conversion by
> "aplay" on our embedded platform (without any modificiation).
>
> Is it possible to reduce CPU utilization about gst-launch playing mp3 audio?
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/CPU-utilization-when-using-gst-launch-play-mp3-tp4655434.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list