[gst-devel] High CPU utilization with audio encoding
Stefan Kost
ensonic at hora-obscura.de
Tue Feb 1 08:54:01 CET 2011
On 01.02.2011 02:41, mingqian Han wrote:
> Hi all,
> I am playing with a pipeline with texas instruments dm365 like:
> alsasrc->audio encoder->appsink, where appsink grabs the encoded data
> and sends it by RTP.
> The audio encoder is a mulawenc, but modified to use ittiam g.711 codec.
g711 is a trivial codec. please compare the performance also to the
unmodified g711 encoder that comes with gstreamer. Next compare the
results of using fakesink instead of appsink. Having a high cpu load
when actually doing something is not bad. If you want to make the
encoding more bursty you could use bigger buffers on the audiosrc side
and output several frames in one go from the audioencoder (using a
bufferlist).
Stefan
> Now, with command "top", I can see that CPU utilization is low (0.2%)
> for a period time, then it will be high(like 90%) for a while, and
> this high-low CPU utilization circle repeats.
> As I understand, the "chain" function in mulawenc accepts data pushed
> by alsasrc, at a frequency about 400 times per second, for a 64kbps
> g.711 and 160-byte frame size. I think this is a killer for the
> performance.
> I am quite new to gstreamer, so I hope some one will help me with this
> problem.
>
> Regards,
>
> Rafael
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list