From 6a1b033f287f79e1c3f37141a6f596c8bb24f7bd Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Sun, 7 Aug 2016 11:06:58 +0200 Subject: [PATCH] Added hacky hardcoded FFmpeg option to set RTSP transport to TCP to improve streaming --- processor-ffmpeg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/processor-ffmpeg.js b/processor-ffmpeg.js index 78097b7..6740df1 100644 --- a/processor-ffmpeg.js +++ b/processor-ffmpeg.js @@ -39,7 +39,8 @@ FFMPEGProcessor.prototype.run = function() var command = new FfmpegCommand(); command .input(this.cam.options.input) - .inputOptions(['-t ' + this.cam.options.time]); + .inputOptions(['-t ' + this.cam.options.time, + '-rtsp_transport tcp']); if (typeof(this.cam.options.inputFormat) !== 'undefined') {