is there pulse audio on your system?<br>use &quot;device-name=hw:0,0&quot; for alsasrc attributes. <br><br>when there is pulse audio, usually it does some format conversion, re sampling, which consumes cpu<br><br><br><div class="gmail_quote">
2012/4/10 <a href="mailto:abue.gst.dev@googlemail.com">abue.gst.dev@googlemail.com</a> <span dir="ltr">&lt;<a href="mailto:abue.gst.dev@googlemail.com">abue.gst.dev@googlemail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am encountering a very similar problem. When using the command &quot;gst-launch<br>
-v alsasrc ! mulawenc ! rtppcmupay ! fakesink silent=true&quot; the CPU usage<br>
raises to 97% after a while (some seconds) and drops to 0 again later (e.g.<br>
after 60-100 seconds).<br>
I guess the problem is somewhere in alsasrc, because a different<br>
latency-time and buffer-time has linear influence to the cpu usage (e.g.<br>
when using &quot;gst-launch -v alsasrc latency-time=20000 buffer-time=400000 !<br>
mulawenc ! rtppcmupay ! fakesink silent=true&quot; CPU usage raised to 49% after<br>
a while, when using &quot;gst-launch -v alsasrc latency-time=40000<br>
buffer-time=800000 ! mulawenc ! rtppcmupay ! fakesink silent=true&quot; CPU usage<br>
raised to 25% after a while...)<br>
<br>
Does someone have a clue how to identify and solve the problem?<br>
<br>
I am using DM6446 with TI AIC33 Audio Codec running at vendor-specific<br>
2.6.27 kernel (based on<br>
<a href="http://gitorious.org/linux-davinci/linux-davinci/trees/v2.6.27-davinci1" target="_blank">http://gitorious.org/linux-davinci/linux-davinci/trees/v2.6.27-davinci1</a> with<br>
ALSA driver patched to cb6e2063697e91ca6983f9fe6958d20469b43641 from<br>
alsa-kernel [2008-11-18] tree)<br>
<br>
Advanced Linux Sound Architecture Driver Version 1.0.17.<br>
ASoC version 0.13.2<br>
AIC3X Audio Codec 0.2<br>
asoc: aic3x &lt;-&gt; davinci-i2s mapping ok<br>
ALSA device list:<br>
  #0: DaVinci EVM (aic3x)<br>
<br>
Version of GStreamer 0.10.25<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/High-CPU-utilization-with-audio-encoding-tp3250286p4545814.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/High-CPU-utilization-with-audio-encoding-tp3250286p4545814.html</a><br>

Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>