Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

aubuf/ajb: reset reference timestamp if skew is too high #119

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

cspiel1
Copy link
Collaborator

@cspiel1 cspiel1 commented Jan 2, 2023

Relates to adaptive jitter buffer mode.

Fixes jitter computation and as a consequence a lot of unexpected frame drops if the received RTP stream has an inaccurate timebase.

E.g. the following gstreamer pipeline generates an RTP stream with to fast time base

gst-launch-1.0 -v souphttpsrc location=https://orf-live.ors-shoutcast.at/fm4-q1a ssl-strict=false ! decodebin expose-all-streams=false ! audiorate skip-to-first=true ! audioconvert ! audioresample ! avenc_g722 ! rtpg722pay ! udpsink host=224.0.1.194 port=5004

The time difference between real time and RTP time stamps becomes more and more negative.

It is 15 us/s too fast.

Here an image of the faulty jitter computation:
89020647-c12e-4ea6-a864-d940fa4f3f11

@cspiel1 cspiel1 changed the title aubuf: reset reference timestamp if skew is too high aubuf/ajb: reset reference timestamp if skew is too high Jan 5, 2023
@cspiel1 cspiel1 added this to the v2.12.0 milestone Jan 10, 2023
@sreimers sreimers merged commit 4860fdf into baresip:main Jan 11, 2023
@cspiel1 cspiel1 deleted the aubuf_skew_max branch January 11, 2023 12:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants