Disable FEC to remove padding from the video stream

This commit is contained in:
Cameron Gutman 2014-11-11 17:42:18 -08:00
parent 35a50209be
commit 52f81274f0

View File

@ -100,12 +100,11 @@ public class SdpGenerator {
addSessionAttribute(config, "x-nv-vqos[0].bw.maximumBitrate", ""+sc.getBitrate()); addSessionAttribute(config, "x-nv-vqos[0].bw.maximumBitrate", ""+sc.getBitrate());
// Since we can only deal with FEC data on a 1 packet frame, // Using FEC turns padding on which makes us have to take the slow path
// restrict FEC repair percentage to minimum so we get only 1 // in the depacketizer, not to mention exposing some ambiguous cases with
// FEC packet per frame // distinguishing padding from valid sequences. Since we can only perform
addSessionAttribute(config, "x-nv-vqos[0].fec.repairPercent", "1"); // execute an FEC recovery on a 1 packet frame, we'll just turn it off completely.
addSessionAttribute(config, "x-nv-vqos[0].fec.repairMaxPercent", "1"); addSessionAttribute(config, "x-nv-vqos[0].fec.enable", "0");
addSessionAttribute(config, "x-nv-vqos[0].fec.repairMinPercent", "1");
addSessionAttribute(config, "x-nv-vqos[0].videoQualityScoreUpdateTime", "5000"); addSessionAttribute(config, "x-nv-vqos[0].videoQualityScoreUpdateTime", "5000");
addSessionAttribute(config, "x-nv-vqos[0].qosTrafficType", "5"); addSessionAttribute(config, "x-nv-vqos[0].qosTrafficType", "5");