This commit is contained in:
Devdatt Bhatt 2026-04-14 23:53:36 +00:00
parent 7c2d0a49d2
commit f265a361cf
1 changed files with 4 additions and 4 deletions

View File

@ -711,10 +711,10 @@ function update_service($which_service)
exec("sudo systemctl disable encoder-main");
} else {
$input .= " ";
$control = "v4l2-ctl -d /dev/video0 --set-ctrl=brightness=" . $hdmi_brightness;
$control .= "v4l2-ctl -d /dev/video0 --set-ctrl=contrast=" . $hdmi_contrast;
$control .= "v4l2-ctl -d /dev/video0 --set-ctrl=saturation=" . $hdmi_saturation;
$control .= "v4l2-ctl -d /dev/video0 --set-ctrl=hue=" . $hdmi_hue;
$control = "v4l2-ctl -d /dev/video0 --set-ctrl=brightness=" . $hdmi_brightness . ';';
$control .= "v4l2-ctl -d /dev/video0 --set-ctrl=contrast=" . $hdmi_contrast . ';';
$control .= "v4l2-ctl -d /dev/video0 --set-ctrl=saturation=" . $hdmi_saturation . ';';
$control .= "v4l2-ctl -d /dev/video0 --set-ctrl=hue=" . $hdmi_hue . ';';
$input = $control . $input;
$file = "/var/www/encoder-main.sh";