Added hacky hardcoded FFmpeg option to set RTSP transport to TCP to improve streaming

This commit is contained in:
Mark van Renswoude 2016-08-07 11:06:58 +02:00
parent d0baa00dfd
commit 6a1b033f28
1 changed files with 2 additions and 1 deletions

View File

@ -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')
{