Skip to content

Use PPS mode rather than max to adjust packet loss weight. - #3095

Merged
boks1971 merged 2 commits into
masterfrom
raja_pps_mode
Oct 14, 2024
Merged

boks1971 merged 2 commits into
masterfrom
raja_pps_mode

Conversation

@boks1971

Copy link
Copy Markdown
Contributor

With maximum, a congestion period followed by a burst biases the weight towards lower values and hence even significant loss was not knocking down quality at times.

Use mode instead of get the most probable packet rate.

In the extreme case of DTX sending only silence packets (when not muted, as muted is treated differently) could set the mode at a low packet rate and a loss during that DTX period could have an outsized impact, but that is an extreme case.

With maximum, a congestion period followed by a burst biases the weight
towards lower values and hence even significant loss was not knocking
down quality at times.

Use mode instead of get the most probable packet rate.

In the extreme case of DTX sending only silence packets (when not muted,
as muted is treated differently) could set the mode at a low packet rate
and a loss during that DTX period could have an outsized impact, but
that is an extreme case.
@boks1971
boks1971 requested a review from a team October 14, 2024 14:38
Comment thread pkg/sfu/downtrack.go
d.connectionStats = connectionquality.NewConnectionStats(connectionquality.ConnectionStatsParams{
MimeType: codecs[0].MimeType, // LK-TODO have to notify on codec change
IsFECEnabled: strings.EqualFold(codecs[0].MimeType, webrtc.MimeTypeOpus) && strings.Contains(strings.ToLower(codecs[0].SDPFmtpLine), "fec"),
IsFECEnabled: strings.Contains(strings.ToLower(codecs[0].SDPFmtpLine), "fec"),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need to limit to opus only.

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.

2 participants