Reduce bitrate when streaming HEVC to reduce bandwidth at better IQ than H.264

This commit is contained in:
Cameron Gutman
2017-10-17 01:07:41 -07:00
parent 25d7af9453
commit 5434b653c7
2 changed files with 6 additions and 1 deletions

View File

@@ -327,6 +327,11 @@ void ClLogMessage(const char* format, ...)
_streamConfig.supportsHevc = VTIsHardwareDecodeSupported(kCMVideoCodecType_HEVC);
}
// Use some of the HEVC encoding efficiency improvements to
// reduce bandwidth usage while still gaining some image
// quality improvement.
_streamConfig.hevcBitratePercentageMultiplier = 75;
// FIXME: We should use 1024 when streaming remotely
_streamConfig.packetSize = 1292;