liquidsoap
liquidsoap copied to clipboard
UDP: Feeding stopped
While looking in to ways to send audio from a MCU(ESP8266) to liquidsoap I tried UDP for speed. The liquidsoap line
liquidsoap output.prefered(mksafe(input.udp(buffer=1.,host='192.168.1.4',port=8266,'audio/wave')))
results in
[udp://192(dot)168(dot)1(dot)4:8266:2] Feeding stopped: A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.
in recvfrom().
Audio is [email protected] kHz, stereo. First I reduced the packet size to 256 where it was 512. Then I thought it is a Win10 problem, so I increased the buffers size there. To no avail. Checking data with wireshark or a simple python script shows no problem. Packets are received.
Searching the doc and web there was not much to find on UDP, nor a way to increase buffer in liquidsoap. Is there any?
In addition, when reducing the packet size to two bytes, liquidsoap tells me it doesn't understand the format. When increasing to 4 bytes it readily gives the recfrom() Feeding stopped error.
UDP i/o is deprecated. Could you try with srt which should work much better?