14 lines
707 B
Bash
Executable file
14 lines
707 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Title card 1280x720 24fps 6s — original, no rips.
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
|
OUT="$ROOT/assets/cinematics/first-contact/out"
|
|
mkdir -p "$OUT"
|
|
command -v ffmpeg >/dev/null || { echo "ffmpeg missing"; exit 1; }
|
|
# Homebrew ffmpeg often has no libfreetype drawtext — smptebars is enough for pipeline smoke.
|
|
ffmpeg -y -f lavfi -i "smptebars=s=1280x720:r=24:d=6" \
|
|
-pix_fmt yuv420p -c:v libx264 -t 6 "$OUT/first-contact-stub.mp4"
|
|
cat >"$ROOT/assets/cinematics/first-contact/META.json" <<'EOF'
|
|
{"id":"first-contact","width":1280,"height":720,"fps":24,"seconds":6,"license":"original","pipeline":"ffmpeg-stub"}
|
|
EOF
|
|
echo "OK $OUT/first-contact-stub.mp4"
|