Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
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.
44 lines
2.5 KiB
Bash
Executable File
44 lines
2.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Rebuild Menivor's rights-clean, silent vertical background loops from FFmpeg's
|
|
# LGPL/GPL lavfi sources. No downloaded footage, game capture, model output, or
|
|
# third-party trademarked art enters these assets.
|
|
|
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
repo_dir="$(cd "${script_dir}/.." && pwd)"
|
|
output_dir="${repo_dir}/apps/api/app/domains/content/assets/backgrounds"
|
|
mkdir -p "${output_dir}"
|
|
|
|
encode_loop() {
|
|
local source_filter="$1"
|
|
local video_filter="$2"
|
|
local output_name="$3"
|
|
ffmpeg -hide_banner -loglevel error -y \
|
|
-f lavfi -i "${source_filter}" \
|
|
-t 4 -an -vf "${video_filter},format=yuv420p" \
|
|
-c:v libx264 -preset slow -crf 29 -threads 1 \
|
|
-fflags +bitexact -flags:v +bitexact -map_metadata -1 \
|
|
-movflags +faststart \
|
|
-g 120 -keyint_min 120 -sc_threshold 0 \
|
|
"${output_dir}/${output_name}"
|
|
ffprobe -v error -select_streams v:0 \
|
|
-show_entries stream=codec_name,width,height,r_frame_rate,duration \
|
|
-of default=noprint_wrappers=1 "${output_dir}/${output_name}"
|
|
}
|
|
|
|
encode_loop \
|
|
"gradients=s=720x1280:r=30:d=4:c0=0x08111f:c1=0x14b8a6:c2=0x7c3aed:c3=0x020617:n=4:type=square:speed=0.25:seed=1101:x0=360:y0=640:x1=720:y1=1280" \
|
|
"drawgrid=w=90:h=90:t=3:c=white@0.16,drawbox=x='mod(t*180+40\,860)-140':y=900:w=140:h=140:c=0x22d3ee@0.78:t=fill,drawbox=x='mod(t*135+360\,900)-180':y=650:w=180:h=90:c=0xa78bfa@0.70:t=fill,drawbox=x='mod(t*220+620\,820)-100':y=430:w=100:h=180:c=0x2dd4bf@0.72:t=fill,vignette=PI/5" \
|
|
"voxel-parkour.mp4"
|
|
|
|
encode_loop \
|
|
"gradients=s=720x1280:r=30:d=4:c0=0x050816:c1=0xff2d95:c2=0x00e5ff:c3=0x5b21b6:n=4:type=spiral:speed=0.25:seed=2202:x0=360:y0=640:x1=720:y1=1280" \
|
|
"drawbox=x=125:y=0:w=470:h=1280:c=0x030712@0.58:t=fill,drawgrid=x=125:y=0:w=117:h=96:t=2:c=0x7df9ff@0.18,drawbox=x=345:y='mod(t*360\,480)-120':w=30:h=120:c=white@0.72:t=fill,drawbox=x=345:y='mod(t*360+240\,480)-120':w=30:h=120:c=white@0.72:t=fill,drawbox=x=300:y=1010:w=120:h=150:c=0xff2d95@0.88:t=fill,vignette=PI/4" \
|
|
"neon-runner.mp4"
|
|
|
|
encode_loop \
|
|
"gradients=s=720x1280:r=30:d=4:c0=0x020617:c1=0x172554:c2=0xf97316:c3=0xfacc15:n=4:type=radial:speed=0.25:seed=3303:x0=360:y0=640:x1=720:y1=1280" \
|
|
"drawbox=x=90:y=470:w=540:h=810:c=0x050816@0.82:t=fill,drawbox=x=345:y='mod(t*420\,520)+450':w=30:h=150:c=0xfef3c7@0.90:t=fill,drawbox=x=345:y='mod(t*420+260\,520)+450':w=30:h=150:c=0xfef3c7@0.90:t=fill,drawbox=x=105:y=470:w=12:h=810:c=0xfb923c@0.82:t=fill,drawbox=x=603:y=470:w=12:h=810:c=0xfb923c@0.82:t=fill,vignette=PI/4" \
|
|
"synthwave-road.mp4"
|