diff --git a/src/input/input_ts.cpp b/src/input/input_ts.cpp index 2cce0346..7ec1e936 100755 --- a/src/input/input_ts.cpp +++ b/src/input/input_ts.cpp @@ -129,6 +129,19 @@ namespace Mist { capa["codecs"][0u][1u].append("MP2"); inFile = NULL; 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() {