Added support for DVR option in TS input

This commit is contained in:
Thulinma 2017-09-06 16:54:56 +02:00
parent adb76e2cf8
commit 08dc361e06

View file

@ -129,6 +129,19 @@ namespace Mist {
capa["codecs"][0u][1u].append("MP2"); capa["codecs"][0u][1u].append("MP2");
inFile = NULL; inFile = NULL;
inputProcess = 0; inputProcess = 0;
JSON::Value option;
option["arg"] = "integer";
option["long"] = "buffer";
option["short"] = "b";
option["help"] = "DVR buffer time in ms";
option["value"].append(50000LL);
config->addOption("bufferTime", option);
capa["optional"]["DVR"]["name"] = "Buffer time (ms)";
capa["optional"]["DVR"]["help"] = "The target available buffer time for this live stream, in milliseconds. This is the time available to seek around in, and will automatically be extended to fit whole keyframes as well as the minimum duration needed for stable playback.";
capa["optional"]["DVR"]["option"] = "--buffer";
capa["optional"]["DVR"]["type"] = "uint";
capa["optional"]["DVR"]["default"] = 50000LL;
} }
inputTS::~inputTS() { inputTS::~inputTS() {