Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
18 lines
1.0 KiB
Bash
Executable File
18 lines
1.0 KiB
Bash
Executable File
#!/bin/zsh
|
|
# encode_web.sh <key> [hero]: master -> web loop (muted), poster, full (with sound)
|
|
set -e
|
|
key=$1
|
|
S=${SHOWCASE_OUT:-$(git rev-parse --show-toplevel)/public-samples-staging}
|
|
M=$S/masters/$key.mp4
|
|
mkdir -p $S/web $S/full
|
|
dur=$(ffprobe -v error -show_entries format=duration -of csv=p=0 $M)
|
|
len=$(python3 -c "print(min(9.0, float('$dur')))")
|
|
if [[ "$2" == "hero" ]]; then size=720:1280; rate=1300k; else size=540:960; rate=1100k; fi
|
|
ffmpeg -v error -y -t $len -i $M -an -vf "scale=${size}:flags=lanczos,fps=30" \
|
|
-c:v libx264 -preset slow -crf 23 -maxrate $rate -bufsize 2600k -profile:v high -pix_fmt yuv420p \
|
|
-g 60 -movflags +faststart $S/web/$key.mp4
|
|
ffmpeg -v error -y -ss 0.5 -i $M -vf "scale=540:960:flags=lanczos" -frames:v 1 -q:v 5 $S/web/$key-poster.jpg
|
|
ffmpeg -v error -y -i $M -vf "scale=720:1280:flags=lanczos" -c:v libx264 -preset slow -crf 25 \
|
|
-profile:v high -pix_fmt yuv420p -c:a aac -b:a 96k -movflags +faststart $S/full/$key-full.mp4
|
|
ls -la $S/web/$key.mp4 $S/web/$key-poster.jpg $S/full/$key-full.mp4 | awk '{print $5, $9}'
|