Audio stalling when using Opus to send audio to Raspberry Pi 3

zacattackcit zacattackcit at gmail.com
Tue Dec 20 17:29:00 UTC 2016


Hi all--

I've been having problems with my audio pipeline from a remote computer to
my Raspberry Pi 3.  I first noticed the problem on Gstreamer 1.10.1, but it
is also present on the HEAD of the 1.10 branch.

The minimal pipelines I've found to reproduce this are:

*(remote computer):*
gst-launch-1.0 audiotestsrc ! opusenc ! rtpopuspay ! udpsink host=<IP of
RPi> port=5555

*(RPi, connected via WiFi, which might be important to introduce packet
loss/latency?):*
GST_DEBUG=4 gst-launch-1.0 udpsrc port=5555 caps="application/x-rtp" !
rtpopusdepay ! opusdec ! audioconvert ! pulsesink

The audio crackles a bit, eventually stops completely, and never recovers. 
I see log messages like this:

0:00:03.822817883  1616   0xcd9260 WARN           audiobasesink
gstaudiobasesink.c:1512:gst_audio_base_sink_skew_slaving:<pulsesink0>
correct clock skew -0:00:00.020306372 < -+0:00:00.020000000
0:00:06.345903418  1616   0xcd9260 WARN           audiobasesink
gstaudiobasesink.c:1484:gst_audio_base_sink_skew_slaving:<pulsesink0>
correct clock skew +0:00:00.020106622 > +0:00:00.020000000
0:00:18.374848155  1616 0x70b01320 WARN                   pulse
pulsesink.c:702:gst_pulsering_stream_underflow_cb:<pulsesink0> Got underflow
0:00:18.680042928  1616 0x70b01320 WARN                   pulse
pulsesink.c:702:gst_pulsering_stream_underflow_cb:<pulsesink0> Got underflow
0:00:18.708299984  1616   0xcd9260 WARN           audiobasesink
gstaudiobasesink.c:1807:gst_audio_base_sink_get_alignment:<pulsesink0>
Unexpected discontinuity in audio timestamps of +0:00:00.082708333,
resyncing

This pipeline didn't seem to give me trouble on earlier versions of
GStreamer (around 1.9).  Any ideas what could be causing the issues?  I've
tried adding queues and jitterbuffers, which seem to help somewhat, but
eventually I get the same stalling behavior.

Thanks,

-Zac



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Audio-stalling-when-using-Opus-to-send-audio-to-Raspberry-Pi-3-tp4681213.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list