leaky queue: up or down? (choppy sound)

Stefan Kost ensonic at hora-obscura.de
Mon Apr 18 06:53:00 PDT 2011


hi,

On 15.04.2011 15:59, Antoine Martin wrote:
> Hi,
>
> I have some tcp sound pipelines like these:
> * sender:
> SOMESRC ! vorbisenc ! gdppay ! queue leaky=downstream ! tcpserverssink
> host=192.168.42.222 port=20222
>
> * receiver:
> tcpclientsrc host=192.168.123.222 port=20222 ! queue leaky=upstream !
> gdpdepay ! vorbisdec  ! pulsesink
>
> I had added the leaky queues because the clients may take a few seconds
> before connecting and I want them to get the sound without much of a
> delay (1 second is ok), dropping what they missed before connecting if
> needed.
>
> I must be misunderstanding the way "queue" leaks because when it does I
> get choppy sound that doesn't go away until the client re-connects.
> I tried up/down stream without much luck. Or maybe it is not in the
> right location in the pipeline?

The leaky mode is dropping buffers when the queue is full (either from
the top of the queue or from the bottom). That is why you get choppy
audio. I can understand how the queue would help in this case to
mitigate the client connection latencies.

Stefan
> Thanks
> Antoine
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list