GNOME Bugzilla – Bug 616944
Error with 2 differents microphone
Last modified: 2010-10-08 17:58:33 UTC
i plug 2 differents microphones, and when i launch the pipeline, i have a bug from time to time. Here's the pipeline : gst-launch-0.10 --gst-debug-level=2 alsasrc device=hw:2,0 ! queue ! level interval=100000000 message=true name=micro2,0 ! audioconvert ! queue ! mix. alsasrc device=hw:1,0 ! queue ! level interval=100000000 message=true name=micro1,0 ! audioconvert ! queue ! mix. adder name=mix ! queue ! audioconvert ! audiorate ! queue ! level interval=500000000 ! queue ! fakesink silent=True sync=false and sometime i have this error : 0:00:00.167538955 26572 0xb6105910 WARN basesrc gstbasesrc.c:2507:gst_base_src_loop:<alsasrc1> error: internal data stream error. 0:00:00.167561863 26572 0xb6105910 WARN basesrc gstbasesrc.c:2507:gst_base_src_loop:<alsasrc1> error: streaming task paused, reason not-negotiated (-4) ERROR : element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc1 : Error raw data intern. do you have any idea?
This looks like a race condition between the two sources negotiating their input format when starting up. You should probably put capsfilters with the desired audio format(s) right in front of your adder inputs (ie. where you do queue ! mix. ) to make sure all inputs are guaranteed to have use same input format.
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!