From 19788828257fd78f5bf82025afe9382ff54622c6 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Mon, 1 Oct 2018 08:17:22 -0500 Subject: [PATCH] dim x264 encode when on arm (#2227) --- web/skins/classic/views/monitor.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/web/skins/classic/views/monitor.php b/web/skins/classic/views/monitor.php index 03a30cf97..fa2ebd44f 100644 --- a/web/skins/classic/views/monitor.php +++ b/web/skins/classic/views/monitor.php @@ -921,13 +921,19 @@ if ( $monitor->Type() == 'Local' ) { '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() ); ?>