Weird issues with audiomixer

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Weird issues with audiomixer

Michael Krog
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

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Weird issues with audiomixer

Sebastian Dröge-3
On Mo, 2016-06-27 at 14:08 +0200, Michael Krog wrote:

> 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.

There is no depth field in raw audio caps in 1.x. Use something like
  format=S16LE
or similar instead.

--

Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Weird issues with audiomixer

Michael Krog
Awesome! It works.

Thanks!


> Den 27. jun. 2016 kl. 14.24 skrev Sebastian Dröge <[hidden email]>:
>
> On Mo, 2016-06-27 at 14:08 +0200, Michael Krog wrote:
>>  
>> 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.
>
> There is no depth field in raw audio caps in 1.x. Use something like
>   format=S16LE
> or similar instead.
>
> --
>
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com_______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel