feat: provide on-demand H264 compatible browser previews

This commit is contained in:
Codex
2026-10-03 16:49:48 +08:00
parent a887a76095
commit c8e9901b90
8 changed files with 91 additions and 13 deletions
+4
View File
@@ -6,6 +6,10 @@ set -euo pipefail
[[ $(id -u) == 0 ]] || { echo 'Run as root'; exit 1; }
[[ $(uname -m) == x86_64 ]] || { echo 'This installer targets x86_64'; exit 1; }
command -v python3 >/dev/null
if ! command -v ffmpeg >/dev/null; then
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ffmpeg
fi
release_dir=$(cd -- "$(dirname -- "$0")/.." && pwd)
bind_address=${VISION_BIND:-127.0.0.1}
python3 - "$bind_address" <<'PY'