[gst-devel] One microphone, recording mono fails

Tim-Philipp Müller t.i.m at zen.co.uk
Tue Sep 29 15:33:34 CEST 2009


On Tue, 2009-09-29 at 18:43 +0530, Viraj Karandikar wrote:

> When exactly "Could not negotiate format" error is coming? it might
> give some clue on whats happening.

not-negotiated means there was a format incompatibility somewhere. In
this case that could be a capsfilter with a format/filter that upstream
can't output (e.g. if the source doesn't support recording in mono), or
some other element receiving a stream in a format it can't handle.
wavenc is particularly picky - you should definitly have an audioconvert
in front of wavenc, whatever you do.

Something like this should work:

 gst-launch-0.10 alsasrc !
'audio/x-raw-int,channels=1;audio/x-raw-int' ! audioconvert !
audio/x-raw-int,channels=1,depth=16 ! wavenc ! filesink location=foo.wav

Cheers
 -Tim








More information about the gstreamer-devel mailing list