mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
autoadapt: change autoadapt parameters
reduce drop threshold and diminution rate Change-Id: I651e3f730b638c1e94fca3882ef69f2f9e0e7732
This commit is contained in:

committed by
Philippe Gorley

parent
5187156d09
commit
8f0969f3c8
@ -416,13 +416,13 @@ VideoRtpSession::adaptQualityAndBitrate()
|
|||||||
|
|
||||||
auto oldBitrate = videoBitrateInfo_.videoBitrateCurrent;
|
auto oldBitrate = videoBitrateInfo_.videoBitrateCurrent;
|
||||||
|
|
||||||
//Take action only when two successive drop superior to 1% are catched...
|
//Take action only when two successive drop superior to 5% are catched...
|
||||||
//and when jitter is less than 5 seconds
|
//and when jitter is less than 1 seconds
|
||||||
auto pondLoss = getPonderateLoss(rtcpi.packetLoss);
|
auto pondLoss = getPonderateLoss(rtcpi.packetLoss);
|
||||||
//JAMI_DBG("[AutoAdapt] Pondloss: %f%, last loss: %f%", pondLoss, rtcpi.packetLoss);
|
JAMI_DBG("[AutoAdapt] Pondloss: %f%, last loss: %f%", pondLoss, rtcpi.packetLoss);
|
||||||
if(pondLoss >= 2.0f)
|
if(pondLoss >= 5.0f)
|
||||||
{
|
{
|
||||||
videoBitrateInfo_.videoBitrateCurrent = videoBitrateInfo_.videoBitrateCurrent * (1.0f - rtcpi.packetLoss/150.0f);
|
videoBitrateInfo_.videoBitrateCurrent = videoBitrateInfo_.videoBitrateCurrent * (1.0f - rtcpi.packetLoss/200.0f);
|
||||||
JAMI_DBG("[AutoAdapt] pondLoss: %f%%, packet loss rate: %f%%, decrease bitrate from %d Kbps to %d Kbps, ratio %f", pondLoss, rtcpi.packetLoss, oldBitrate, videoBitrateInfo_.videoBitrateCurrent, (float) videoBitrateInfo_.videoBitrateCurrent / oldBitrate);
|
JAMI_DBG("[AutoAdapt] pondLoss: %f%%, packet loss rate: %f%%, decrease bitrate from %d Kbps to %d Kbps, ratio %f", pondLoss, rtcpi.packetLoss, oldBitrate, videoBitrateInfo_.videoBitrateCurrent, (float) videoBitrateInfo_.videoBitrateCurrent / oldBitrate);
|
||||||
histoLoss_.clear();
|
histoLoss_.clear();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user