provision ffmpeg on DeepDrftAPI host for Opus transcode

Phase 18.1 needs ffmpeg (libopus). Add it to bootstrap.sh apt prereqs and a
preflight guard in install.sh; resolves via the systemd user unit's default
PATH (/usr/bin), no config change.
This commit is contained in:
daniel-c-harvey
2026-06-23 07:30:13 -04:00
parent b3dadbb572
commit ba064cc136
2 changed files with 10 additions and 2 deletions
+8 -1
View File
@@ -41,6 +41,12 @@ if ! command -v nginx &>/dev/null; then
die "nginx not found on PATH. Install nginx before running this script."
fi
# ffmpeg (with libopus) is required at runtime by DeepDrftAPI for Opus transcode (Phase 18.1).
# On Ubuntu/Debian the stock ffmpeg apt package includes libopus; bootstrap.sh installs it.
if ! command -v ffmpeg &>/dev/null; then
die "ffmpeg not found on PATH. Install it before running this script: apt-get install -y ffmpeg"
fi
# rrsync ships in the rsync package; path varies by distro version
RRSYNC_BIN=""
if command -v rrsync &>/dev/null; then
@@ -51,7 +57,7 @@ else
die "rrsync not found. Install the rsync package: apt-get install -y rsync"
fi
ok "psql present, PostgreSQL active, nginx present"
ok "psql present, PostgreSQL active, nginx present, ffmpeg present"
ok "rrsync found at: ${RRSYNC_BIN}"
# ── Step 0b: Parameter collection ─────────────────────────────────────────────
@@ -433,6 +439,7 @@ Installed / configured:
- PostgreSQL role '${PG_ROLE}' and databases: ${DB_META}, ${DB_AUTH}
- SSH authorized_keys with forced-command + restrict
- nginx sites-available + sites-enabled, default site removed
- ffmpeg (with libopus) installed at $(command -v ffmpeg) — runtime prereq for Opus transcode
------------------------------------------------------------------------
Remaining manual steps: