Pulsesink Produces Audible "Clicking Noise" When Sync Is Set To TRUE

Nirbheek Chauhan nirbheek.chauhan at gmail.com
Wed May 25 08:00:15 UTC 2022


Hi Abrar,

It sounds like you have packet loss or jitter that is interpreted as packet
loss. You are hearing the gaps as clicks. With sync=false, the gaps are
ignored because audio is not rendered at the time it is supposed to be
rendered at, and over time you will have underruns which are worse. You
should basically never enable sync=false when doing real-time playback to
an output device.

To deal with jitter you can increase the jitterbuffer size (latency). To
deal with packet loss, you can use FEC and/or RTX.

Cheers,
Nirbheek

On Wed, May 25, 2022 at 12:00 PM Abrar Shahriar via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> wrote:

> Hi,
>
> I would like to turn on the "sync" property of the pulsesink plugin to do
> delay adjustments (if sync property is set to FALSE then PTS edits are
> ignored).
>
> The problem is when I set the "sync" property to TRUE, I hear lots of
> loud clicking noises (when set to FALSE, these clicks are way fewer).
> The audio is received via this pipeline
> udpsrc->rtpjitterbuffer->rtpL16depay->queue->pulsesink.
>
> Thanks,
> Abrar
>
>
>
> ーーーーーーーーー
>
> アブラル・ザヒン・シャハリアル  (Abrar Zahin Shahriar)
>
> ハイパーダイン株式会社
> 〒108-0014 東京都港区芝5丁目9-12 3階
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220525/795d5289/attachment-0001.htm>


More information about the gstreamer-devel mailing list