From 08dc361e06e1211c53066e5a0a9d42b133f291f2 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 6 Sep 2017 16:54:56 +0200 Subject: [PATCH] Added support for DVR option in TS input --- src/input/input_ts.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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() {