High CPU utilization with audio encoding

Aihua Zhao halley.zhaoaihua at gmail.com
Wed Apr 11 01:12:47 PDT 2012


is there pulse audio on your system?
use "device-name=hw:0,0" for alsasrc attributes.

when there is pulse audio, usually it does some format conversion, re
sampling, which consumes cpu


2012/4/10 abue.gst.dev at googlemail.com <abue.gst.dev at googlemail.com>

> I am encountering a very similar problem. When using the command
> "gst-launch
> -v alsasrc ! mulawenc ! rtppcmupay ! fakesink silent=true" the CPU usage
> raises to 97% after a while (some seconds) and drops to 0 again later (e.g.
> after 60-100 seconds).
> I guess the problem is somewhere in alsasrc, because a different
> latency-time and buffer-time has linear influence to the cpu usage (e.g.
> when using "gst-launch -v alsasrc latency-time=20000 buffer-time=400000 !
> mulawenc ! rtppcmupay ! fakesink silent=true" CPU usage raised to 49% after
> a while, when using "gst-launch -v alsasrc latency-time=40000
> buffer-time=800000 ! mulawenc ! rtppcmupay ! fakesink silent=true" CPU
> usage
> raised to 25% after a while...)
>
> Does someone have a clue how to identify and solve the problem?
>
> I am using DM6446 with TI AIC33 Audio Codec running at vendor-specific
> 2.6.27 kernel (based on
> http://gitorious.org/linux-davinci/linux-davinci/trees/v2.6.27-davinci1with
> ALSA driver patched to cb6e2063697e91ca6983f9fe6958d20469b43641 from
> alsa-kernel [2008-11-18] tree)
>
> Advanced Linux Sound Architecture Driver Version 1.0.17.
> ASoC version 0.13.2
> AIC3X Audio Codec 0.2
> asoc: aic3x <-> davinci-i2s mapping ok
> ALSA device list:
>  #0: DaVinci EVM (aic3x)
>
> Version of GStreamer 0.10.25
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/High-CPU-utilization-with-audio-encoding-tp3250286p4545814.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120411/ca36c4ad/attachment.html>


More information about the gstreamer-devel mailing list