Mix two asynchronous audio sources
Mailing List SVR
lists at svrinformatica.it
Fri Oct 7 14:45:17 UTC 2016
Il 07/10/2016 16:41, Mailing List SVR ha scritto:
> Il 07/10/2016 12:23, paul.goulpie ha scritto:
>> Hello, I try to create a pipeline that contains two audio sources are
>> mixed
>> on a single audio output.
>> I realized this with the adder module.
>> Nominal way everything works fine:
>>
>> gst-launch-1.0 \
>> audiotestsrc name='src1' ! adder0. \
>> udpsrc name='src2' caps="application/x-rtp,payload=11,clock-rate=44100"
>> port=4446 ! rtpL16depay ! audioconvert ! adder0. \
>> adder ! autoaudiosink
>>
>> My problem occurs when the udp source (src2) stop its spread. This
>> causes me
>> a complete shutdown of all the pipeline.
>> Is there a way around this blockage: continue the distribution of the
>> source
>> when the source udp (src2) stops its distribution and resume mixing
>> the two
>> sources when the udp source (src2) resumed broadcasting.
>
> you can try interaudiosink/src, somethink like:
>
> udpsrc ! interaudiosink
>
> interaudiosrc ! rtpL16depay
small correction:
udpsrc ! rtpL16depay ! interaudiosink
interaudiosrc ! audioconvert ....
you cannot test inter elements using gst-launch, you have to write a
gstreamer application,
Nicola
>
> when udpsrc error out you should get silence and you can try to
> restart the first pipeline periodically,
>
> You could use a similar approach with appsink/src too but in this case
> you have to push silence buffers yourself,
>
> Nicola
>
>>
>> Thank you for your response.
>>
>>
>>
>> --
>> View this message in context:
>> http://gstreamer-devel.966125.n4.nabble.com/Mix-two-asynchronous-audio-sources-tp4679989.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list