video
This commit is contained in:
20
flake.nix
20
flake.nix
@@ -115,11 +115,14 @@
|
||||
# --- Record TUI demos (used to replace the SVG mockups) ----
|
||||
asciinema
|
||||
|
||||
# --- Generate the body-background ASCII art from the og-image
|
||||
# `make ascii` runs `chafa` to convert the og-image into
|
||||
# a text grid, which is then embedded in index.html and
|
||||
# animated with CSS as a slow drifting body background.
|
||||
# --- Generate the animated ASCII background from a video.
|
||||
# `make video NAME=<name>` extracts frames from video/<name>.mp4
|
||||
# with ffmpeg at 12 fps, runs chafa on each to get 80x24 ASCII,
|
||||
# and bundles them into static/js/mountain.js for the cycler.
|
||||
ffmpeg
|
||||
chafa
|
||||
# --- `make video` also needs python3 (already in the default set)
|
||||
# to run tools/build_mountain_js.py.
|
||||
|
||||
# --- Optional: standalone Tailwind CLI for production CSS --
|
||||
# Uncomment if you switch from the Play CDN to a precompiled stylesheet.
|
||||
@@ -141,12 +144,13 @@
|
||||
│ make size report file sizes │
|
||||
│ make validate HTML tag balance check │
|
||||
│ make tidy run html-tidy on every .html │
|
||||
│ make ascii regenerate body-rain ASCII art │
|
||||
│ make video NAME=foo regenerate the ASCII background from │
|
||||
│ video/foo.mp4 (12 fps, 80x24 ASCII) │
|
||||
│ │
|
||||
│ asciinema rec static/demos/intro.cast record a demo │
|
||||
│ chafa -s 240x60 -c none \│
|
||||
│ static/img/og-image-bg.svg >│
|
||||
│ static/ascii/rain.txt render body rain │
|
||||
│ make video-list show available videos in video/ │
|
||||
│ make video-frames extract + chafa frames for $NAME │
|
||||
│ make video-bundle bundle frames into mountain.js │
|
||||
│ │
|
||||
│ nix build build site → ./result/ │
|
||||
│ nix run .#serve build + serve (honours $PORT) │
|
||||
|
||||
Reference in New Issue
Block a user