I have two AM335x EVKs connected via ethernet to the same router.
I am trying to stream audio from one EVK to the other using GStreamer, however the receiving side is losing packets and therefore I get choppy audio, even though I can get up to about 600MBps with no packet loss using iperf to test the connection.
If I stream from one EVK to my laptop, there are a couple of lost packets in the beginning but then everything is smooth after that.
Both EVKs can play the audio smoothly when using a local source.
I have also tried streaming to a .wav file on a RAM disk instead of to the audio output but it behaves the same.
Any ideas?
GStreamer server:
gst-launch-1.0 -v filesrc location=dsb.flac ! flacparse ! flacdec ! rtpgstpay ! udpsink host=192.168.11.202 port=5000
GStreamer client (to audio codec):
gst-launch-1.0 -v udpsrc port=5000 caps='application/x-rtp, media=(string)application, clock-rate=(int)90000, encoding-name=(string)X-GST, caps=(string)"YXVkaW8veC1yYXcsIGZvcm1hdD0oc3RyaW5nKVMyNF8zMkxFLCBsYXlvdXQ9KHN0cmluZylpbnRlcmxlYXZlZCwgcmF0ZT0oaW50KTk2MDAwLCBjaGFubmVscz0oaW50KTIsIGNoYW5uZWwtbWFzaz0oYml0bWFzaykweDAwMDAwMDAwMDAwMDAwMDM\=", capsversion=(string)0, payload=(int)96, ssrc=(uint)3994617306, timestamp-offset=(uint)1574319429, seqnum-offset=(uint)61145' ! rtpjitterbuffer ! rtpgstdepay ! audioconvert ! alsasink
GStreamer client (to .wav file):
gst-launch-1.0 -v udpsrc port=5000 caps='application/x-rtp, media=(string)application, clock-rate=(int)90000, encoding-name=(string)X-GST, caps=(string)"YXVkaW8veC1yYXcsIGZvcm1hdD0oc3RyaW5nKVMyNF8zMkxFLCBsYXlvdXQ9KHN0cmluZylpbnRlcmxlYXZlZCwgcmF0ZT0oaW50KTk2MDAwLCBjaGFubmVscz0oaW50KTIsIGNoYW5uZWwtbWFzaz0oYml0bWFzaykweDAwMDAwMDAwMDAwMDAwMDM\=", capsversion=(string)0, payload=(int)96' ! rtpjitterbuffer ! rtpgstdepay ! audioconvert ! wavenc ! filesink location=/run/out.wav
Note that I took out the ssrc, timestamp-offset, and segnum-offset as a test in both cases but it didn't seem to make a difference (I read somewhere that I should delete them).
Andrew