GStreamer 音频 RTP 流延迟超过 10 秒

问题描述 投票:0回答:0

我使用以下GStreamer命令在一个设备(NXP imx6q)上捕获音频并通过RTP发送,另一台设备(NXP imx6q)接收音频流并播放它。

# Capture
gst-launch-1.0 pulsesrc provide-clock=false volume=0.5 ! audioconvert ! audio/x-raw,channels=1,rate=16000,formats=S16_LE ! rtpL16pay ! udpsink host=192.168.3.254 port=5000 sync=false

# Playback
gst-launch-1.0 udpsrc port=5000 ! "application/x-rtp,media=(string)audio, clock-rate=(int)16000, encoding-name=(string)L16" ! rtpL16depay ! audioconvert ! pulsesink volume=2 sync=false

当我在网络准备好之前启动上述命令时,音频播放的延迟有时会超过 10 秒(有时甚至 1 分钟)。似乎音频帧已经被缓冲并且不会被 UDP(?) 或其他 GStreamer 元素丢弃?那么我应该根据

here
添加rtpjitterbuffer播放还是我应该设置GStreamer元素的任何其他属性?

gstreamer embedded-linux rtp pulseaudio
© www.soinside.com 2019 - 2024. All rights reserved.