After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 616944 - Error with 2 differents microphone
Error with 2 differents microphone
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.28
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-04-27 13:25 UTC by anthony
Modified: 2010-10-08 17:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description anthony 2010-04-27 13:25:55 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?
Comment 1 Tim-Philipp Müller 2010-06-22 18:25:24 UTC
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.
Comment 2 Tim-Philipp Müller 2010-10-08 17:58:33 UTC
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!