#!/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 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"