Skip to content

Commit

Permalink
Scripts: Fix GH action, don't generate gif each time, they don't alwa…
Browse files Browse the repository at this point in the history
…ys match bit for bit.
  • Loading branch information
realazthat committed Sep 9, 2024
1 parent c3b11eb commit f079b38
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/generate-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ trap cleanup EXIT
# ffmpeg -y -i .github/export-demo.webm -c:v libsvtav1 -pix_fmt yuv420p -crf 20 -tune 0 -r 5 -vf scale=512:512 .github/export-demo-mini.webm
# ffmpeg -y -i .github/graph-demo.webm -c:v libsvtav1 -pix_fmt yuv420p -crf 20 -tune 0 -r 5 -vf scale=512:512 .github/graph-demo-mini.webm

ffmpeg -i .github/graph-demo.webm \
-vf "fps=10,scale=512:-1:flags=lanczos,palettegen" \
"${TMPDIR}/palette.png"
ffmpeg -i .github/graph-demo.webm -i "${TMPDIR}/palette.png" \
-filter_complex "fps=10,scale=512:-1:flags=lanczos[x];[x][1:v]paletteuse" \
"${TMPDIR}/graph-demo.gif"
gifsicle -O3 "${TMPDIR}/graph-demo.gif" -o .github/graph-demo.gif
# ffmpeg -i .github/graph-demo.webm \
# -vf "fps=10,scale=512:-1:flags=lanczos,palettegen" \
# "${TMPDIR}/palette.png"
# ffmpeg -i .github/graph-demo.webm -i "${TMPDIR}/palette.png" \
# -filter_complex "fps=10,scale=512:-1:flags=lanczos[x];[x][1:v]paletteuse" \
# "${TMPDIR}/graph-demo.gif"
# gifsicle -O3 "${TMPDIR}/graph-demo.gif" -o .github/graph-demo.gif

npm run build

Expand Down

0 comments on commit f079b38

Please sign in to comment.