From 5f8756d7ada4ecf8a2469e9c66e35c0cb73c5407 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 12 Jan 2018 08:11:37 -0800 Subject: [PATCH] Set Tesla defaults for new monitors --- web/skins/classic/views/monitor.php | 38 ++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/web/skins/classic/views/monitor.php b/web/skins/classic/views/monitor.php index 7e240092b..72ffa746c 100644 --- a/web/skins/classic/views/monitor.php +++ b/web/skins/classic/views/monitor.php @@ -72,11 +72,11 @@ if ( ! $monitor ) { $monitor->set( array( 'Id' => 0, 'Name' => translate('Monitor').'-'.$nextId, - 'Function' => 'Monitor', + 'Function' => 'Mocord', 'Enabled' => true, 'LinkedMonitors' => '', - 'Type' => '', - 'Device' => "/dev/video0", + 'Type' => 'Ffmpeg', + 'Device' => '/dev/video0', 'Channel' => '0', 'Format' => 0x000000ff, 'Protocol' => '', @@ -87,26 +87,26 @@ if ( ! $monitor ) { 'Port' => '80', 'User' => '', 'Pass' => '', - 'Colours' => 3, + 'Colours' => 4, 'Palette' => 0, - 'Width' => '320', - 'Height' => '240', + 'Width' => '1280', + 'Height' => '962', 'Orientation' => '0', 'Deinterlacing' => 0, 'RTSPDescribe' => 0, - 'SaveJPEGs' => '3', - 'VideoWriter' => '0', + 'SaveJPEGs' => '4', + 'VideoWriter' => '1', 'EncoderParameters' => "# Lines beginning with # are a comment \n# For changing quality, use the crf option\n# 1 is best, 51 is worst quality\n#crf=23\n", 'RecordAudio' => '0', 'LabelFormat' => '%N - %d/%m/%y %H:%M:%S', 'LabelX' => 0, 'LabelY' => 0, 'LabelSize' => 1, - 'ImageBufferCount' => 50, - 'WarmupCount' => 25, - 'PreEventCount' => 25, - 'PostEventCount' => 25, - 'StreamReplayBuffer' => 1000, + 'ImageBufferCount' => 40, + 'WarmupCount' => 1, + 'PreEventCount' => 1, + 'PostEventCount' => 5, + 'StreamReplayBuffer' => 0, 'AlarmFrameCount' => 1, 'Controllable' => 0, 'ControlId' => '', @@ -124,9 +124,9 @@ if ( ! $monitor ) { 'EventPrefix' => 'Event-', 'AnalysisFPSLimit' => '', 'AnalysisUpdateDelay' => 0, - 'MaxFPS' => '', - 'AlarmMaxFPS' => '', - 'FPSReportInterval' => 1000, + 'MaxFPS' => '30', + 'AlarmMaxFPS' => '30', + 'FPSReportInterval' => 100, 'RefBlendPerc' => 6, 'AlarmRefBlendPerc' => 6, 'DefaultView' => 'Events', @@ -138,8 +138,8 @@ if ( ! $monitor ) { 'Triggers' => '', 'V4LMultiBuffer' => '', 'V4LCapturesPerFrame' => 1, - 'ServerId' => $Server['Id'], - 'StorageId' => '0', + 'ServerId' => 'auto', + 'StorageId' => '1', ) ); } # end if $_REQUEST['dupID'] } # end if $_REQUEST['mid'] @@ -675,7 +675,7 @@ switch ( $tab ) { 'None'); + $servers = array(''=>'None','auto','Auto'); $result = dbQuery( 'SELECT * FROM Servers ORDER BY Name'); $results = $result->fetchALL(PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, 'Server' ); foreach ( $results as $row => $server_obj ) {