After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 761008 - tcpserversink buffers audio until first client connects
tcpserversink buffers audio until first client connects
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
1.4.5
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-01-22 22:37 UTC by roysjosh
Modified: 2018-11-03 11:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description roysjosh 2016-01-22 22:37:42 UTC
When doing the following, tcpserversink buffers audio until the first client connects, forever maintaining the latency between starting the server and the first client connecting:
server:
gst-launch-1.0 -vmt pulsesrc device=alsa_output...stereo.monitor ! audio/x-raw,format=S16LE,rate=48000,channels=1 ! opusenc bitrate=8000 ! gdppay ! tcpserversink host=0.0.0.0
client:
gst-launch-1.0 tcpclientsrc host=... ! gdpdepay ! opusdec ! pulsesink

Steps to reproduce:
1. start server (note the use of the pulsesrc monitor device to serve a remote server's audio over the network)
2. wait 15 seconds, connect a client
3. immediately play some audio on the server
4. observe a 15 second delay before audio is played on the client

Things I have tried:
server: ... ! tcpserversink unit-format=time units-max=2000000
server: inserting a leaky=downstream queue before the tcpserversink with max-size-time=1000
server: ... ! tcpserversink unit-format=buffers units-max=1 buffers-max=1
server: leaky queue with max-size-buffers=1

Things that work:
A RTP/UDP stream from the server to the client works with <1 second latency (pulsesrc ! opusenc ! rtpopuspay ! udpsink host=$client).
Comment 1 GStreamer system administrator 2018-11-03 11:44:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/249.