From 5434b653c7de6e8a80d4d0211f587b1c131b9ae4 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 17 Oct 2017 01:07:41 -0700 Subject: [PATCH] Reduce bitrate when streaming HEVC to reduce bandwidth at better IQ than H.264 --- Limelight/Stream/Connection.m | 5 +++++ moonlight-common/moonlight-common-c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Limelight/Stream/Connection.m b/Limelight/Stream/Connection.m index ae187e2..17a4991 100644 --- a/Limelight/Stream/Connection.m +++ b/Limelight/Stream/Connection.m @@ -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; diff --git a/moonlight-common/moonlight-common-c b/moonlight-common/moonlight-common-c index 957b1de..a135cea 160000 --- a/moonlight-common/moonlight-common-c +++ b/moonlight-common/moonlight-common-c @@ -1 +1 @@ -Subproject commit 957b1de1ad2a0beea442aeecd943ff6caa25df30 +Subproject commit a135ceaa9a3c36f3238bab84d62e47dd20e01ae5