Hello,
I am unable to record only one channel (mono). I have only one
microphone attached to sound card. But if I run this
gst-launch gconfaudiosrc ! capsfilter \
caps=audio/x-raw-int,rate=44100,channels=1,depth=16 ! \
wavenc ! filesink location=test.wav
then I get this error message:
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element
/GstPipeline:pipeline0/GstGConfAudioSrc:gconfaudiosrc0/GstBin:bin0/GstAlsaSrc:alsasrc0:
Could not negotiate format
Additional debug info:
gstbasesrc.c(2584): gst_base_src_start ():
/GstPipeline:pipeline0/GstGConfAudioSrc:gconfaudiosrc0/GstBin:bin0/GstAlsaSrc:alsasrc0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...
It can be solved if I use two channels for recording, so this
gst-launch gconfaudiosrc ! capsfilter \
caps=audio/x-raw-int,rate=44100,channels=2,depth=16 ! \
wavenc ! filesink location=test.wav
works fine. But I would like to record one channel because further data
processing is little easier.
Thank you
Jan Martinek