Using liveadder
johnwesting
john.blank.westing at gmail.com
Thu May 9 10:46:59 PDT 2013
> Apologies, I meant the streams are identical in capabilities, not audio. It
> doesn't work for me. The first stream that passes through liveadder plays
> but the second does not, even if I pause the first and only play the
> second. 2 channel, 44.1 KHz audio, 16 bits, default latency.
Given what you've told me I'm guessing the problem is that the timestamps
between the 2 are out of sync and the liveadder only stays in sync with the
first stream. In my rtpsrc I start the timestamping at 0, i.e. the first
buffer that comes out of my rtpsrc has a timestamp of 0, and all remaining
timestamps are the elapsed time since the first packet.
So if I start the first stream, and then start the 2nd stream one second
later, the stream passing through the second source will have timsetamps
that are 1 second behind the first. What timestamping algorithm should I
use? Where is the best place (i.e. best clock) to pull the timestamp's from?
Should the timestamps start at 0?
On Thu, May 9, 2013 at 12:26 PM, Olivier Crête
<olivier.crete@>wrote:
> On Thu, 2013-05-09 at 09:51 -0400, John Westing wrote:
> > 1) What buffer timestamp input requirements does liveadder have?
>
> Timestamps must be valid.
>
> > 2) Why does liveadder buffer audio?
>
> The use-case that liveadder was designed for is RTP streams where you
> have multiple discontinuous streams arriving in real-time. So if you
> have two pads, you want to output a buffer if you have one one either
> pad (because you're not guaranteed to have one on both), but you also
> want to make sure to properly mix if you have data on both.
>
>
> > 3) When I have 2 identical streams into liveadder why does only 1
> > play?
>
> It should mix them. If they are identical, that will probably result in
> doubling the volume. It's called adder because the mixing algorithm is
> to add the samples together.
>
> > 4) Does liveadder try to synchronize multiple streams?
>
> Yes, unlike adder, liveadder takes great pain to make sure incoming
> streams are synchronized before they are mixed.
>
> --
> Olivier Crête
> olivier.crete@
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at .freedesktop
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at .freedesktop
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Using-liveadder-tp4659841p4659865.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list