High CPU utilization with audio encoding

Tobias abue.gst.dev at googlemail.com
Wed Apr 11 01:31:57 PDT 2012


There is no pulseaudio running but plughw is used as default.
Unfortunately I can't use "hw:0" as device because the ALSA driver only
offers 2 channel access while my GStreamer pipeline requires mono (1
channel). Therefore I already tried to create a virtual ALSA device to
avoid stereo to mono conversion by plughw:

$ nano /etc/asound.conf

# create a two virtual one-channel devices out of real two-channel device
# to check whether this has lower cpu usage than using plughw

pcm.split_2_to_1 {
  type route;
  slave.pcm "hw:0,0";
  slave.channels 2;
  ttable.0.0 1;
  ttable.0.1 1;
}

And used this virtual device with the command: "gst-launch -v alsasrc
device=split_2_to_1 ! mulawenc ! rtppcmupay ! fakesink silent=true".
Unfortunately this did not help either.


> 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
>



More information about the gstreamer-devel mailing list