From 670622dfd7452f8d8e9f69adcb712e532a5a7b35 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 19 Jul 2014 16:02:17 -0700 Subject: [PATCH] Reduce FEC data to 1 packet at max to lower bandwidth requirements --- .../src/com/limelight/nvstream/rtsp/SdpGenerator.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java b/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java index 6537ed93..4ba1b6e4 100644 --- a/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java +++ b/moonlight-common/src/com/limelight/nvstream/rtsp/SdpGenerator.java @@ -213,7 +213,12 @@ public class SdpGenerator { addSessionAttribute(config, "x-nv-vqos[0].fec.enable", "1"); addSessionAttribute(config, "x-nv-vqos[0].fec.numSrcPackets", "50"); addSessionAttribute(config, "x-nv-vqos[0].fec.numOutPackets", "60"); - addSessionAttribute(config, "x-nv-vqos[0].fec.repairPercent", "20"); + + // Since we can only deal with FEC data on a 1 packet frame, + // restrict FEC repair percentage to minimum so we get only 1 + // FEC packet per frame + addSessionAttribute(config, "x-nv-vqos[0].fec.repairPercent", "1"); + addSessionAttribute(config, "x-nv-vqos[0].pictureRefreshIntervalMs", "0"); addSessionAttribute(config, "x-nv-vqos[0].videoQualityScoreUpdateTime", "5000"); addSessionAttribute(config, "x-nv-vqos[0].invalidateThreshold", "3");