diff --git a/processor-ffmpeg.js b/processor-ffmpeg.js index 2aebdce..bf8b8df 100644 --- a/processor-ffmpeg.js +++ b/processor-ffmpeg.js @@ -41,7 +41,7 @@ FFMPEGProcessor.prototype.run = function() var command = new FfmpegCommand(); command .input(this.cam.options.input) - .inputOptions(['-t ' + ceil(this.cam.options.time / 1000), + .inputOptions(['-t ' + Math.ceil(this.cam.options.time / 1000), '-rtsp_transport tcp']); if (typeof(this.cam.options.inputFormat) !== 'undefined') diff --git a/processor-http-ffmpeg.js b/processor-http-ffmpeg.js index f940e0c..ffeec0c 100644 --- a/processor-http-ffmpeg.js +++ b/processor-http-ffmpeg.js @@ -26,7 +26,7 @@ HTTPFFMPEGProcessor.prototype.run = function() camId: this.camId }); - this.tempFilename = filename + '.recording'; + this.tempFilename = this.filename + '.recording'; var command = new FfmpegCommand();