Latency with AVTP plugin

Ian Steele steeleymail at
Mon Nov 22 21:39:51 UTC 2021

Hello, hopefully I'm in the right place for this issue.
I 'm using the AVTP plugin to run audio between 2 Raspberry PI CM4 systemsI've built to evaluate different audio streaming protocols. However I seem tohave about 150-200mS latency which seems high. 
I'm setting up following these guidelines and everything is working ok.

I'm playing audio from system A to its local i2s soundcard DAC (PCM5122)and at the same time sending via AVTP to System B and playing out the audiowith the same type of audio card. No droputs, gPTP sync working well, no drift etc.The 2networkcards ( intel  i210)  are connected directly to each other, no switch involved.I'm mixing the analog audio output from the 2 soundcards together so I can hear the latency.
My playout pipeline (system A):gst-launch-1.0 clockselect. \( clock-id=realtime filesrc location=babylon.wav  ! wavparse ! tee name=t ! queue max-size-buffers=0 max-size-time=0 ! audioconvert ! audiobuffersplit output-buffer-duration=12/48000 !     avtpaafpay mtt=50000000 tu=1000000 streamid=0xAABBCCDDEEFF000B processing-deadline=0 ! avtpsink ifname=eth0.5 address=01:AA:AA:AA:AA:AA priority=2 processing-deadline=0 t. ! queue ! alsasink \)

My listen pipeline (system B)gst-launch-1.0 clockselect. \( clock-id=realtime \    avtpsrc ifname=eth0.5 address=01:AA:AA:AA:AA:AA ! \    queue max-size-buffers=0 max-size-time=0 ! \    avtpaafdepay streamid=0xAABBCCDDEEFF000B ! audioconvert ! alsasink buffer-time=1 \)
Is there any way to improve the latency?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list