算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
render-editorial-motion-podcast【设计与创意】Assemble an editorial-motion podcast-clip ad from a config — a real clipped podcast MP3 carries the narrative while N flat limited-palette editorial-illustration keyframes (one look pack) are animated NOT by generative i2v but by DETERMINISTIC ffmpeg ken-burns (zoompan) + hard cuts (no crossfades, which expose geometric drift), each beat snapped to i…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Assemble an editorial-motion podcast-clip ad from a config: a real clipped podcast audio line carries the whole narrative and every visual beat is timed to the sentence it describes, in ONE flat, strictly limited-palette editorial-illustration look pack ("a magazine spot-illustration that moves" — the style and palette are the caller's choice). The motion is not generative video but deterministic ffmpeg ken-burns on static keyframes, so it reads as a printed page that moves. This capability is that FREE, deterministic assembly — the ffmpeg motion, hard-concat, audio mux, caption burn, and PIL end card.
scripts/config.example.json is the worked example (Klarify "Rat Park", ~40.8s 1080×1920
9:16, 6 beats — its 2-tone Niemann look, cream/charcoal/sage palette and Rat Park metaphor are
that demo's picks, never defaults); scripts/PIPELINE.md maps every config block to its source step and
scripts/README.md documents the free assembly.
The creative calls are the caller's (the video-format recipe asks the user); this assembly never picks them. The demo's value is an example only:
This is the FREE, deterministic assembly stage — it spends nothing on the motion layer.
The paid inputs are separate: the real podcast MP3 is clipped from source (free ffmpeg) with
its Whisper word timings, and one editorial-illustration keyframe per beat (chained ref images
so cage/character geometry holds) comes from create-image-fal (Nano Banana). Given the
clipped audio + words.json + the per-beat keyframes + the real brand wordmark PNG,
render-editorial-motion-podcast renders each keyframe as a ken-burns segment, hard-concats
on the beat, muxes the real audio, burns the mid-sentence captions, and composites the PIL end
card → the master. Re-cuts reuse the existing audio / keyframes and cost $0.
-map 0:v:0 -map 1:a:0) — a real clipped podcast line (preferred) OR an
approved generated VO (create-vo-elevenlabs). Never a sung/generated track. (Clip-vs-generate
is the recipe's STEP-0 intake decision — if no source episode is supplied, ASK the user.)zoompan (push-in / pull-back, 1.0→~1.06×, 24fps); Seedance/Kling are photoreal-trained
and invent naturalistic middle states that collapse the flat limited-palette look look. Never -loop 1 with
zoompan d=N (it balloons the duration); feed a single image and clamp with -t + trim.frosted-subtle
captions while the speaker talks; leave silent/reflective beats and the end card uncaptioned.
THREE mandatory rules (each bit us in prod — bake them in):
end = min(last_word_end + ~0.15, next_start - 0.03)). Two boxes must never stack at the
same spot; an end-tail bleeding into the next window is the #1 caption bug.look_pack.caption_safe_area). If a finished keyframe's subject
intrudes into the caption band, deterministically shift the subject UP into the empty top
space (PIL: paste up ~0.24H onto a canvas pre-filled with the exact paper color from a clean
corner) — never let the box sit on the subject.ass/subtitles filter), but check ffmpeg -filters
first: many builds (Homebrew) lack libass/drawtext. If absent, use the deterministic
overlay fallback — render each line as a transparent PNG (frosted rounded box + white
text, PIL) and composite via the ffmpeg overlay filter with timed
enable='between(t,st,en)' windows. Same look, no libass.