From 715b0e54cc8cd0627dcb04951ab14455a5b255cd Mon Sep 17 00:00:00 2001 From: Moe Date: Tue, 22 Jan 2019 08:44:32 -0800 Subject: [PATCH] Add Custom Flags field for Traditional Recording --- languages/en_CA.json | 6 ++++++ libs/ffmpeg.js | 4 ++++ web/pages/blocks/monitoredit.ejs | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/languages/en_CA.json b/languages/en_CA.json index c38da536..4dd17725 100644 --- a/languages/en_CA.json +++ b/languages/en_CA.json @@ -436,6 +436,7 @@ "Stream to YouTube": "Stream to YouTube", "Stream to YouTube Flags": "Stream to YouTube Flags", "Recording Flags": "Recording Flags", + "Traditional Recording Flags": "Traditional Recording Flags", "Output Method": "Output Method", "Webhook": "Webhook", "Event Webhook Error": "Event Webhook Error", @@ -803,6 +804,11 @@ "RTMP Stream":"RTMP Stream", "Stream Channel":"Stream Channel", "Confidence":"Confidence", + "Trainer Engine":"Trainer Engine", + "Train":"Train", + "TrainConfirm":"Are you sure you want to begin training? This can take more than 12 hours with over 500 images. This will consume a large amount of resources, like RAM or CPU.", + "Batch":"Batch", + "Subdivision":"Subdivision", "Map":"Map", "Add Map":"Add Map", "Add Input Feed":"Add Input Feed", diff --git a/libs/ffmpeg.js b/libs/ffmpeg.js index 3f0475e9..4bfc2dc0 100644 --- a/libs/ffmpeg.js +++ b/libs/ffmpeg.js @@ -780,6 +780,7 @@ module.exports = function(s,config,onFinish){ } //Traditional Recording Buffer if(e.details.detector=='1'&&e.details.detector_trigger=='1'&&e.details.detector_record_method==='sip'){ + if(e.details.cust_sip_record && e.details.cust_sip_record !== ''){x.pipe += ' ' + e.details.cust_sip_record} if(e.details.input_map_choices&&e.details.input_map_choices.detector_sip_buffer){ //add input feed map x.pipe += s.createFFmpegMap(e,e.details.input_map_choices.detector_sip_buffer) @@ -863,6 +864,9 @@ module.exports = function(s,config,onFinish){ case'mjpeg': x.ffmpegCommandString += ' -reconnect 1 -f mjpeg'+x.cust_input+x.hwaccel+' -i "'+e.url+'"'; break; + // case'rtmp': + // x.ffmpegCommandString += x.cust_input+x.hwaccel+' -i -'; + // break; case'h264':case'hls':case'mp4': x.ffmpegCommandString += x.cust_input+x.hwaccel+' -i "'+e.url+'"'; break; diff --git a/web/pages/blocks/monitoredit.ejs b/web/pages/blocks/monitoredit.ejs index 187b436c..a581c60d 100644 --- a/web/pages/blocks/monitoredit.ejs +++ b/web/pages/blocks/monitoredit.ejs @@ -842,6 +842,11 @@
+
+ +