diff --git a/encoder/input.php b/encoder/input.php index 0684caf..e585c7f 100755 --- a/encoder/input.php +++ b/encoder/input.php @@ -397,15 +397,26 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { contrastVal.textContent = c; saturationVal.textContent = s; hueVal.textContent = h; - - ffmpegOutput.textContent = - `-vf "vpp_qsv=format=nv12:brightness=${b}:contrast=${c}:saturation=${s}:hue=${h}"`; } controls.forEach(id => { document.getElementById(id).addEventListener("input", update); }); + document.getElementById("colorReset").onclick = () => { + const defaults = { + brightness: 0, + contrast: 1, + saturation: 1, + hue: 0 + }; + for (const id in defaults) { + const el = document.getElementById(id); + el.value = defaults[id]; + document.getElementById(id + "Val").textContent = defaults[id]; + } + }; + update();