From 04941212cdf06471f3100042f4ab6258b62493ab Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 11 May 2014 13:51:35 -0400 Subject: [PATCH] Tweak some config to improve QoS when streaming 1080p30 over a so-so connection --- .../src/com/limelight/nvstream/rtsp/SdpGenerator.java | 4 ++-- 1 file changed, 2 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 5656a6cf..3d2f3da0 100644 --- a/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java +++ b/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java @@ -124,7 +124,7 @@ public class SdpGenerator { addSessionAttribute(config, "x-nv-video[0].maxFPS", ""+sc.getRefreshRate()); addSessionAttribute(config, "x-nv-video[0].iFrameOnDemand", "1"); addSessionAttributeInt(config, "x-nv-video[0].transferProtocol", 1); - if (sc.getHeight() >= 1080) { + if (sc.getHeight() >= 1080 && sc.getRefreshRate() >= 60) { addSessionAttributeInt(config, "x-nv-video[0].rateControlMode", 4); addSessionAttribute(config, "x-nv-video[0].averageBitrate", "30"); addSessionAttribute(config, "x-nv-video[0].peakBitrate", "30"); @@ -202,7 +202,7 @@ public class SdpGenerator { addSessionAttribute(config, "x-nv-vqos[0].bw.pf.enableFlags", "3"); - if (sc.getHeight() >= 1080) { + if (sc.getHeight() >= 1080 && sc.getRefreshRate() >= 60) { addSessionAttribute(config, "x-nv-vqos[0].bw.pf.lowBitrate30FpsThreshold", "5000"); addSessionAttribute(config, "x-nv-vqos[0].bw.pf.lowBitrate60FpsThreshold", "5000"); addSessionAttribute(config, "x-nv-vqos[0].bw.pf.highBitrateThreshold", "7000");