Skip to content

Commit

Permalink
dim x264 encode when on arm (#2227)
Browse files Browse the repository at this point in the history
  • Loading branch information
knight-of-ni authored and connortechnology committed Oct 1, 2018
1 parent 613d885 commit 1978882
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions web/skins/classic/views/monitor.php
Expand Up @@ -921,13 +921,19 @@ function fourcc( $a, $b, $c, $d ) {
<?php
$videowriteropts = array(
0 => 'Disabled',
1 => 'X264 Encode',
);
if ($monitor->Type() == 'Ffmpeg' )
$videowriteropts[2] = 'H264 Camera Passthrough';

if (stripos(php_uname('m'), 'arm') === false )
$videowriteropts[1] = 'X264 Encode';
else
$videowriteropts[1] = array('text'=>'X264 Encode - Not compatible on Arm','disabled'=>1);

if ($monitor->Type() == 'Ffmpeg' )
$videowriteropts[2] = 'H264 Camera Passthrough';
else
$videowriteropts[2] = array('text'=>'H264 Camera Passthrough - only for FFMPEG','disabled'=>1);
echo htmlselect( 'newMonitor[VideoWriter]', $videowriteropts, $monitor->VideoWriter() );

echo htmlselect( 'newMonitor[VideoWriter]', $videowriteropts, $monitor->VideoWriter() );
?>
</td></tr>
<tr><td><?php echo translate('OptionalEncoderParam') ?></td><td><textarea name="newMonitor[EncoderParameters]" rows="4" cols="36"><?php echo validHtmlStr($monitor->EncoderParameters()) ?></textarea></td></tr>
Expand Down

0 comments on commit 1978882

Please sign in to comment.