add ffmpeg for whisper
ci/woodpecker/push/flux-reconcile-source Pipeline was successful

This commit is contained in:
2026-05-21 20:48:21 +02:00
parent 611f9f3886
commit 37e8b74f1d
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -248,6 +248,7 @@ models:
-m /root/.cache/whisper/ggml-small.bin -m /root/.cache/whisper/ggml-small.bin
--request-path /v1/audio --request-path /v1/audio
--inference-path /transcriptions --inference-path /transcriptions
--convert
--threads 6 --threads 6
--no-gpu --no-gpu
+14
View File
@@ -31,6 +31,17 @@ spec:
else else
echo "whisper-small model already present, skipping download" echo "whisper-small model already present, skipping download"
fi fi
if [ ! -f /root/.cache/ffmpeg/ffmpeg ]; then
echo "Downloading static ffmpeg..."
mkdir -p /root/.cache/ffmpeg
curl -L -o /root/.cache/ffmpeg/ffmpeg.tar.gz \
https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.gz
tar -xzf /root/.cache/ffmpeg/ffmpeg.tar.gz -C /root/.cache/ffmpeg --wildcards '*/ffmpeg' --strip-components=1
rm /root/.cache/ffmpeg/ffmpeg.tar.gz
chmod +x /root/.cache/ffmpeg/ffmpeg
else
echo "ffmpeg already present, skipping download"
fi
volumeMounts: volumeMounts:
- name: models - name: models
mountPath: /root/.cache mountPath: /root/.cache
@@ -50,6 +61,9 @@ spec:
volumeMounts: volumeMounts:
- name: models - name: models
mountPath: /root/.cache mountPath: /root/.cache
- name: models
mountPath: /usr/local/bin/ffmpeg
subPath: ffmpeg/ffmpeg
- mountPath: /dev/kfd - mountPath: /dev/kfd
name: kfd name: kfd
- mountPath: /dev/dri - mountPath: /dev/dri