mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
A deterministic WebGL film of God's Eye View coming online: a seed on Null Island grows into a culture that draws the planet, indexes the surface tile by tile, ingests the live feeds and outgrows its dish, ending on the logo. Renders 16:9 and 9:16 frame by frame in headless Chromium; the procedural score is locked to the same clock. Data and imagery are fetched by the scripts in tools/ and are not committed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KqP857pippaUs6konSDfe8
15 lines
663 B
Bash
Executable File
15 lines
663 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Render one format in 8 s chunks (skips chunks already on disk), then concat.
|
|
# tools/render-all.sh 1920 1080 16x9
|
|
set -u
|
|
W=$1; H=$2; TAG=$3
|
|
CH=240; TOTAL=2160
|
|
mkdir -p out/chunks_$TAG
|
|
for ((s=0; s<TOTAL; s+=CH)); do
|
|
e=$((s+CH)); f=out/chunks_$TAG/c_$(printf %05d $s).mp4
|
|
[ -s "$f" ] && continue
|
|
node tools/render.mjs --w $W --h $H --from $s --to $e --video "$f.tmp.mp4" --crf 14 --preset slow && mv "$f.tmp.mp4" "$f"
|
|
done
|
|
ls out/chunks_$TAG/c_*.mp4 | sed "s|^|file '$PWD/|; s|$|'|" > out/chunks_$TAG/list.txt
|
|
ffmpeg -y -loglevel error -f concat -safe 0 -i out/chunks_$TAG/list.txt -c copy out/video_$TAG.mp4 && echo "CONCAT OK $TAG"
|