Skip to content

Commit ef265d7

Browse files
committed
Make ffmpeg download a little more robust
1 parent 3d71ce6 commit ef265d7

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,13 @@ av-download: ./av-download/template.yaml ./av-download/lambdas/bun.lock $(wildca
4444
sam build --cached --parallel
4545
@mv chat/template.yaml.orig chat/template.yaml
4646
av-download/layers/ffmpeg/bin/ffmpeg:
47-
mkdir -p av-download/layers/ffmpeg/bin ;\
48-
curl -L https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz | \
49-
tar -C av-download/layers/ffmpeg/bin -xJ --strip-components=1 --wildcards '*/ffmpeg' '*/ffprobe'
47+
mkdir -p av-download/layers/ffmpeg/bin && \
48+
curl -L --fail --retry 3 --retry-delay 2 \
49+
-o /tmp/ffmpeg.tar.xz \
50+
https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz && \
51+
tar -C av-download/layers/ffmpeg/bin -xJ --strip-components=1 \
52+
--wildcards '*/ffmpeg' '*/ffprobe' -f /tmp/ffmpeg.tar.xz && \
53+
rm /tmp/ffmpeg.tar.xz
5054
deps-api:
5155
bun install --cwd api
5256
deps-av-download:

0 commit comments

Comments
 (0)