Weird issues with audiomixer

Michael Krog mic at apaq.dk
Mon Jun 27 12:08:59 UTC 2016


Hi.

I am trying hard to understand what I am doing wrong using the audiomixer element. 
I am using gstreamer 1.8.1 on Mac OS and I am trying to mix two audiostreams.

This basic pipeline works:
gst-launch-1.0 autoaudiosrc ! audiomixer ! autoaudiosink

This also works fine:
gst-launch-1.0 filesrc location=song2.mp3 ! mad ! audiomixer ! autoaudiosink

Now I want to mix those 2 together via the audiomixer like this:
gst-launch-1.0 filesrc location=song2.mp3 ! mad ! queue ! audioconvert ! audio/x-raw,channels=2,rate=44100,depth=16 ! audiomixer name=mix ! autoaudiosink autoaudiosrc ! queue ! audioconvert ! audio/x-raw,channels=2,rate=44100,depth=16 ! mix.

But it results in this:
PAUSERER rørledning ...
Rørledningen kører, og behøver ikke at blive PREROLL'ed ...
Rørledning sættes til AFSPIL ...
New clock: GstSystemClock
FEJL: fra element /GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0: Intern datastrømsfejl.
Yderligere fejlsøgningsinformation:
gstbasesrc.c(2948): void gst_base_src_loop(GstPad *) (): /GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.036197000
PAUSERER rørledning ...
Rørledning sættes til KLAR ...
Rørledning sættes til NUL ...
Rørledning frigøres ...

I can make it work however, by simply adding wavenc and wavparse to the autoaudiosrc like this:
gst-launch-1.0 filesrc location=song2.mp3 ! mad ! queue ! audioconvert ! audio/x-raw,channels=2,rate=44100,depth=16 ! audiomixer name=mix ! autoaudiosink autoaudiosrc ! queue ! wavenc ! wavparse ! audioconvert ! audio/x-raw,channels=2,rate=44100,depth=16 ! mix. 

But why do I need to do that?

Thanx in advance!

- Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160627/ec9818a6/attachment.html>


More information about the gstreamer-devel mailing list