leaky queue: up or down? (choppy sound)
ensonic at hora-obscura.de
Mon Apr 18 06:53:00 PDT 2011
On 15.04.2011 15:59, Antoine Martin wrote:
> 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
> 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.
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
More information about the gstreamer-devel