From b640564689def6f6c003a13d0700da8e4a21a947 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 12 Dec 2015 21:06:38 -0800 Subject: [PATCH] Slicing seems to cause some artifacting issues, so I'm disabling it for now --- .../src/com/limelight/nvstream/rtsp/SdpGenerator.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java b/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java index 6a05a68d..08af2ac3 100644 --- a/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java +++ b/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java @@ -58,17 +58,22 @@ public class SdpGenerator { if (context.negotiatedVideoFormat == VideoFormat.H265) { addSessionAttribute(config, "x-nv-clientSupportHevc", "1"); addSessionAttribute(config, "x-nv-vqos[0].bitStreamFormat", "1"); + + // Disable slicing on HEVC + addSessionAttribute(config, "x-nv-video[0].videoEncoderSlicesPerFrame", "1"); } else { // Otherwise, use AVC addSessionAttribute(config, "x-nv-clientSupportHevc", "0"); addSessionAttribute(config, "x-nv-vqos[0].bitStreamFormat", "0"); + + // Use slicing for increased performance on some decoders + addSessionAttribute(config, "x-nv-video[0].videoEncoderSlicesPerFrame", "4"); } addSessionAttribute(config, "x-nv-video[0].rateControlMode", "4"); - // Use slicing for increased performance on some decoders - addSessionAttribute(config, "x-nv-video[0].videoEncoderSlicesPerFrame", "4"); + // Enable surround sound if configured for it addSessionAttribute(config, "x-nv-audio.surround.numChannels", ""+context.streamConfig.getAudioChannelCount());