RTC: audio packet jitter buffer. v7.0.48#4295
Merged
winlinvip merged 11 commits intoossrs:developfrom Jul 17, 2025
Merged
Conversation
duiniuluantanqin
approved these changes
Feb 27, 2025
winlinvip
reviewed
Jun 4, 2025
winlinvip
reviewed
Jun 4, 2025
195435d to
97e2b64
Compare
6ac1399 to
a4097d9
Compare
winlinvip
approved these changes
Jul 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rtp packets may be retransmitted, disordered, jittery, delayed, etc.There may be abnormalities when converting to rtmp.
To reproduce this problem, you need to set the network reordering by tc-ui. Note that you need a linux server, and start it by docker:
docker run --network=host --privileged -it --restart always -d \ --name tc -v /lib/modules:/lib/modules:ro ossrs/tc-ui:1Set up 5% packet reordering and a 1ms delay; then you will notice that the audio is stuttering, somewhat noisy, and lacks fluency.
curl http://localhost:2023/tc/api/v1/config/raw -X POST \ -d 'tcset ens5 --direction incoming --delay 40ms --reordering 5% --port 8000'Check the web console, you will see the reordering setup:
Then, publish stream via WHIP: http://localhost:8080/players/whip.html
And, play via HTTP-FLV: http://localhost:8080/players/srs_player.html
Finished by AI:
Co-authored-by: Haibo Chen 495810242@qq.com