Set Tesla defaults for new monitors
This commit is contained in:
parent
ff9f43b5a1
commit
5f8756d7ad
|
@ -72,11 +72,11 @@ if ( ! $monitor ) {
|
||||||
$monitor->set( array(
|
$monitor->set( array(
|
||||||
'Id' => 0,
|
'Id' => 0,
|
||||||
'Name' => translate('Monitor').'-'.$nextId,
|
'Name' => translate('Monitor').'-'.$nextId,
|
||||||
'Function' => 'Monitor',
|
'Function' => 'Mocord',
|
||||||
'Enabled' => true,
|
'Enabled' => true,
|
||||||
'LinkedMonitors' => '',
|
'LinkedMonitors' => '',
|
||||||
'Type' => '',
|
'Type' => 'Ffmpeg',
|
||||||
'Device' => "/dev/video0",
|
'Device' => '/dev/video0',
|
||||||
'Channel' => '0',
|
'Channel' => '0',
|
||||||
'Format' => 0x000000ff,
|
'Format' => 0x000000ff,
|
||||||
'Protocol' => '',
|
'Protocol' => '',
|
||||||
|
@ -87,26 +87,26 @@ if ( ! $monitor ) {
|
||||||
'Port' => '80',
|
'Port' => '80',
|
||||||
'User' => '',
|
'User' => '',
|
||||||
'Pass' => '',
|
'Pass' => '',
|
||||||
'Colours' => 3,
|
'Colours' => 4,
|
||||||
'Palette' => 0,
|
'Palette' => 0,
|
||||||
'Width' => '320',
|
'Width' => '1280',
|
||||||
'Height' => '240',
|
'Height' => '962',
|
||||||
'Orientation' => '0',
|
'Orientation' => '0',
|
||||||
'Deinterlacing' => 0,
|
'Deinterlacing' => 0,
|
||||||
'RTSPDescribe' => 0,
|
'RTSPDescribe' => 0,
|
||||||
'SaveJPEGs' => '3',
|
'SaveJPEGs' => '4',
|
||||||
'VideoWriter' => '0',
|
'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",
|
'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',
|
'RecordAudio' => '0',
|
||||||
'LabelFormat' => '%N - %d/%m/%y %H:%M:%S',
|
'LabelFormat' => '%N - %d/%m/%y %H:%M:%S',
|
||||||
'LabelX' => 0,
|
'LabelX' => 0,
|
||||||
'LabelY' => 0,
|
'LabelY' => 0,
|
||||||
'LabelSize' => 1,
|
'LabelSize' => 1,
|
||||||
'ImageBufferCount' => 50,
|
'ImageBufferCount' => 40,
|
||||||
'WarmupCount' => 25,
|
'WarmupCount' => 1,
|
||||||
'PreEventCount' => 25,
|
'PreEventCount' => 1,
|
||||||
'PostEventCount' => 25,
|
'PostEventCount' => 5,
|
||||||
'StreamReplayBuffer' => 1000,
|
'StreamReplayBuffer' => 0,
|
||||||
'AlarmFrameCount' => 1,
|
'AlarmFrameCount' => 1,
|
||||||
'Controllable' => 0,
|
'Controllable' => 0,
|
||||||
'ControlId' => '',
|
'ControlId' => '',
|
||||||
|
@ -124,9 +124,9 @@ if ( ! $monitor ) {
|
||||||
'EventPrefix' => 'Event-',
|
'EventPrefix' => 'Event-',
|
||||||
'AnalysisFPSLimit' => '',
|
'AnalysisFPSLimit' => '',
|
||||||
'AnalysisUpdateDelay' => 0,
|
'AnalysisUpdateDelay' => 0,
|
||||||
'MaxFPS' => '',
|
'MaxFPS' => '30',
|
||||||
'AlarmMaxFPS' => '',
|
'AlarmMaxFPS' => '30',
|
||||||
'FPSReportInterval' => 1000,
|
'FPSReportInterval' => 100,
|
||||||
'RefBlendPerc' => 6,
|
'RefBlendPerc' => 6,
|
||||||
'AlarmRefBlendPerc' => 6,
|
'AlarmRefBlendPerc' => 6,
|
||||||
'DefaultView' => 'Events',
|
'DefaultView' => 'Events',
|
||||||
|
@ -138,8 +138,8 @@ if ( ! $monitor ) {
|
||||||
'Triggers' => '',
|
'Triggers' => '',
|
||||||
'V4LMultiBuffer' => '',
|
'V4LMultiBuffer' => '',
|
||||||
'V4LCapturesPerFrame' => 1,
|
'V4LCapturesPerFrame' => 1,
|
||||||
'ServerId' => $Server['Id'],
|
'ServerId' => 'auto',
|
||||||
'StorageId' => '0',
|
'StorageId' => '1',
|
||||||
) );
|
) );
|
||||||
} # end if $_REQUEST['dupID']
|
} # end if $_REQUEST['dupID']
|
||||||
} # end if $_REQUEST['mid']
|
} # end if $_REQUEST['mid']
|
||||||
|
@ -675,7 +675,7 @@ switch ( $tab ) {
|
||||||
<tr class="Name"><td><?php echo translate('Name') ?></td><td><input type="text" name="newMonitor[Name]" value="<?php echo validHtmlStr($monitor->Name()) ?>" /></td></tr>
|
<tr class="Name"><td><?php echo translate('Name') ?></td><td><input type="text" name="newMonitor[Name]" value="<?php echo validHtmlStr($monitor->Name()) ?>" /></td></tr>
|
||||||
<tr><td><?php echo translate('Server') ?></td><td>
|
<tr><td><?php echo translate('Server') ?></td><td>
|
||||||
<?php
|
<?php
|
||||||
$servers = array(''=>'None');
|
$servers = array(''=>'None','auto','Auto');
|
||||||
$result = dbQuery( 'SELECT * FROM Servers ORDER BY Name');
|
$result = dbQuery( 'SELECT * FROM Servers ORDER BY Name');
|
||||||
$results = $result->fetchALL(PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, 'Server' );
|
$results = $result->fetchALL(PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, 'Server' );
|
||||||
foreach ( $results as $row => $server_obj ) {
|
foreach ( $results as $row => $server_obj ) {
|
||||||
|
|
Loading…
Reference in New Issue