Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[janus-pp-rec] Drop audio RTP silence suppression packets. #2467

Merged
merged 4 commits into from
Dec 7, 2020

Conversation

atoppi
Copy link
Member

@atoppi atoppi commented Dec 2, 2020

This PR aims at detecting RTP silence suppression (aka Discontinuous Transmission DTX) packets in janus-pp-rec and dropping them in order to avoid huge files being generated like described in #2328.

Quoting RFC 3389

The added check basically looks for audio packets with marker bit=1, close enough (in range of 100) to the highest sequence number received. If that packet RTP timestamp is very different (> 10x) from the expected one, we simply drop that packet.

A new CLI option has been added (--silence-distance) to control the range of packets for which the silence suppression detection acts (default is 100, while 0 means disabled).

Tested against a recording with a couple of silence-suppression packets and it seems to work.

Fixes #2414.

2021 UPDATE : this is NOT RTP DTX, it is just a custom SIP mechanism for silence suppression.

@lminiero
Copy link
Member

lminiero commented Dec 7, 2020

Feedback is positive, so I'll merge ✌️

@lminiero lminiero merged commit f64b3f9 into master Dec 7, 2020
@lminiero lminiero deleted the pp-rec-rtp-silence branch December 7, 2020 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[janus-pp-rec] Huge opus files when received timestamp is 0 (see #2328)
2 participants