11 lines
830 B
Bash
Executable file
11 lines
830 B
Bash
Executable file
#!/bin/sh
|
|
# Animated server banner (level 3 perk): nine seconds of the DAG step recording (from 1 s, after the hero fold), graph only,
|
|
# padded into two dark bands that carry the lockup and the tagline (banner-overlay-960x540.png).
|
|
# Run from the repo root after make-assets.py. Output stays under Discord's 10 MB banner limit.
|
|
set -e
|
|
A=docs/community/discord/assets
|
|
SRC=docs/plans/site-ui-3-shots/after-v2/home-steps-1440-dark.webm
|
|
ffmpeg -v error -y -ss 1 -t 9 -i "$SRC" -i "$A/banner-overlay-960x540.png" -filter_complex \
|
|
"[0:v]crop=1340:510:50:118,pad=1340:754:0:122:color=#0C0C0E,scale=960:540,fps=12[b];[b][1:v]overlay=0:0,split[a][c];[a]palettegen=max_colors=160:stats_mode=diff[p];[c][p]paletteuse=dither=bayer:bayer_scale=4:diff_mode=rectangle" \
|
|
"$A/server-banner-960x540.gif"
|
|
ls -la "$A/server-banner-960x540.gif"
|