[gst-devel] osssrc complains "Can't record audio fast enough"

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Dec 25 17:19:30 CET 2009


On Thu, 2009-12-24 at 23:49 -0800, gather bzbz wrote:

> case 1: "gst-launch osssrc ! lame ! filesink location=xxx" gives "osssrc: Can't record audio fast enough".

Note that for any half-way recent version of gstreamer/gst-plugins-base
the debug message that comes with that warning reads something like
"Dropped x samples. This is most likely because downstream can't keep up
and is consuming samples too slowly."

Try putting a queue between osssrc and lame. If that doesn't fix it,
then the encoder (lame) is most likely just not able to encode fast
enough, ie. in real time on average, on that particular computer, in
which case you might be able to configure the encoder to use a less
computationally intensive algorithm/mode (see gst-inspect-0.10 lame;
also have a look at the lamemp3enc element which has simpler options). 

If that still doesn't help, you could try to reduce the input sample
rate (by adding a caps filter between source and the encoder, for
example).

Cheers
 -Tim






More information about the gstreamer-devel mailing list