From 38942c211da6856af73a68e658d944dffcb631b9 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 21 Apr 2026 17:48:54 -0400 Subject: [PATCH] fix(ml): install ffmpeg in ml-worker image for video frame sampling extract_video_frames() calls ffprobe/ffmpeg, which were only installed in the web Dockerfile. Videos route through the ml-worker for WD14 + SigLIP inference, so the tool needs to exist there too. Co-Authored-By: Claude Opus 4.7 --- Dockerfile.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile.ml b/Dockerfile.ml index c8ecd64..b263f4b 100644 --- a/Dockerfile.ml +++ b/Dockerfile.ml @@ -6,11 +6,13 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ PIP_NO_CACHE_DIR=1 \ ML_MODEL_DIR=/models -# System deps: Pillow / image handling + psycopg2 build deps (binary wheel usually fine but libpq is needed at runtime on slim) +# System deps: Pillow / image handling + psycopg2 runtime libpq + ffmpeg for +# video frame sampling (WD14+SigLIP inference on videos calls ffprobe/ffmpeg). RUN apt-get update && apt-get install -y --no-install-recommends \ libgl1 \ libglib2.0-0 \ libpq5 \ + ffmpeg \ && rm -rf /var/lib/apt/lists/* WORKDIR /app