From f2d00b6af557934d3ceee6e4c33738014465e5eb Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 14 Jun 2018 13:36:32 -0400 Subject: [PATCH] update Storage Video Writer options to only allow Passthrough for FFmpeg --- web/skins/classic/views/monitor.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/web/skins/classic/views/monitor.php b/web/skins/classic/views/monitor.php index 0afb9069c..f6bf1d183 100644 --- a/web/skins/classic/views/monitor.php +++ b/web/skins/classic/views/monitor.php @@ -452,11 +452,6 @@ $savejpegopts = array( 'Frames + Analysis images (if available)' => 3, ); -$videowriteropts = array( - 'Disabled' => 0, - 'X264 Encode' => 1, - 'H264 Camera Passthrough' => 2 - ); xhtmlHeaders(__FILE__, translate('Monitor')." - ".validHtmlStr($monitor->Name()) ); ?> @@ -922,7 +917,17 @@ if ( $monitor->Type() == 'Local' ) { case 'storage' : ?> - + + 'Disabled', + 1 => 'X264 Encode', + ); + if ($monitor->Type() == 'FFMpeg' ) + $videowriteropts[2]='H264 Camera Passthrough'; + echo htmlselect( 'newMonitor[VideoWriter]', $videowriteropts, $monitor->VideoWriter() ); +?> + RecordAudio() ) { ?> checked="checked"/>