1

I followed this procedure to stream my Pulseaudio output into a dlna device (A Samsung TV) with Rygel.

It's working, but, I have a latency around 40 seconds.

I'm on Ubuntu 14.10. Here, is my ~/.config/rygel.conf:

[GstLaunch]
enabled=true
launch-items=myaudioflac;myaudiompeg;myaudioraw

myaudioflac-title=FLAC audio on @HOSTNAME@
myaudioflac-mime=audio/flac
myaudioflac-launch=pulsesrc device=upnp.monitor throttle-time=100 ! flacenc

Is there a solution to have a correct latency (Around 1 or 4 sec.)?

abu_bua
  • 11,313
Hiteule
  • 11

1 Answers1

0

Rygel appears to use a 64K sized buffer that cannot be configured. (source) This means that even with no compression there is likely 1.5 seconds (stereo) to 3.0 seconds (mono) delay simply filling those buffers. Likely much more delay if using compression techniques that reduce the size of audio samples drastically, eg. you can likely fit 5+ seconds of audio into a 64K buffer.

You can try disabling compression as a workaround.

One can also modify the 64K buffer size in source and recompile.