旁白圖像系列
以靜態圖像、旁白和平順的肯・伯恩斯運鏡效果製作的解說影片和繪本。
本指南以英文撰寫,供代理程式使用。
Turn a topic into independently watchable videos made from still images, Ken Burns editing and narrated audio. Use this workflow for history, children's picture books, science, biographies, cultural stories and other illustrated channels.
Generate all artwork and speech with the AIVidArt picture and speech jobs; every request follows
https://aividart.com/docs/api.md. Choose a voice and language suited to the audience.
The chain is:
Topic → episode outlines → complete script → dense image beats → character references where needed → batch picture/speech jobs → measured audio timeline → Ken Burns → subtitles, QC and delivery.
These are image-sequence videos. Audiovisual video generation with lip-sync belongs to
https://aividart.com/docs/directing.md, a separate route. Here, image motion is created locally during editing and
narration comes from the speech job.
Standard execution: one plan and one helper
Write one reusable local helper (for example scripts/slides_flow.py) rather than a new script per video. The
agent authors a plan JSON and runs the same helper for every episode. The helper:
- submits the picture jobs (
t2i, ori2iwith character references) and speech jobs for every scene, - polls them, downloads results into a cache folder (
.slides-cache/) and resumes completed assets, - concatenates the narration, aligns it with a transcription job, builds the timeline,
- renders smooth Ken Burns motion with ffmpeg locally and muxes the subtitles.
The public output is one MP4. Do not create contact sheets, separate previews or inspect every image by default. Use automatic completeness/alignment/media checks, and inspect only when the user requests it or a concrete failure needs diagnosis. Reuse the locked series style and voice for subsequent videos.
A minimal plan has this structure:
{
"title": "A historical question",
"language": "en",
"voice": "Ryan",
"instruction": "Calm, clear documentary narration with a warm, measured delivery and natural brief pauses.",
"style": "Classical oil-painting historical realism, natural light and earth colors.",
"aspect_ratio": "16:9",
"size": [1920, 1080],
"fps": 30,
"output": "episode.mp4",
"subtitles": {"mode": "soft", "language": "eng"},
"characters": {"scribe": {"prompt": "An elderly scribe ...", "image": null}},
"scenes": [
{"prompt": "A specific drawable historical moment.", "narration": "The complete words spoken over this image.", "characters": []}
]
}
subtitles.mode supports soft, burn and none. A soft track is embedded and selectable; burn-in remains
visible in the picture. Character definitions carry a prompt or an existing image, and a scene's
characters lists the reference IDs that select edit mode. Existing image, audio, alignment and clip
entries let a partially completed production be reused.
For translated subtitles, keep a JSON with language (for example zho), title, and one translated string
per scene in plan order. An existing final MP4 can be reused: keep its subtitle track, add the translation as a
second selectable track, and stream-copy video and audio without regenerating anything.
Pictures and speech are generated in the cloud; rendering the Ken Burns motion is local ffmpeg work, so keep the user's machine load in mind (render one episode at a time).
1. Confirm the brief and resume existing work
Inspect outputs/<series-slug>/, PROGRESS.md, outlines, scripts, selected artwork, references and API job
IDs before submitting anything. Reuse accepted work and recorded settings. Do not resume a production the user
previously canceled.
Record only the missing decisions; do not ask again for answers already supplied:
| Decision | Record |
|---|---|
| Topic | Audience, central promise, scope and intended learning/story experience |
| Episode count | The user's count; about 15 when they request a dozen or so |
| Production scope | Outlines only, one selected pilot, or the complete series |
| Narration | Language, voice, delivery and pronunciation glossary |
| Frame | Landscape/portrait, ratio, actual output raster and fps |
| Style | Drawing/painting/rendering method, palette, texture, realism and composition |
| Captions | Languages and whether selectable, sidecar, burned in or omitted |
| Delivery | Local files, channel package, content-site edition or a channel matrix |
| GPU time | Whether a GPU is rented; if not, the hours the user agrees to rent (renting spends credits) |
Guide language and narration language are separate choices. A channel can use English narration even when
planning is discussed in Chinese. Choose a voice from the speech job's preset voices
(GET /api/studio/options) and verify it with a short, reusable narration sample.
When asked to produce a film, continue through the complete selected film. Outlines, artwork or an opening preview alone do not finish it. Honor requested reviews without inventing repeated approval gates.
2. Write the outlines before ordering artwork
An outline describes one independent video, not one image. Each includes:
- Stable episode ID, title, precise central question and audience value.
- Scope: period/place for history, age range for children, mechanism for science.
- Opening hook, three to six substantive beats, causal transitions and closing.
- Sources or fictional story rules, unresolved questions and research required.
- Characters/looks, settings, objects and varied visual opportunities.
- What distinguishes it from neighboring episodes and any assumed knowledge.
- An initial runtime range, revised after writing and recording the script.
Do not compress all of European history into ten disconnected summaries. Define a coherent season premise and give every episode a bounded question. A children's series similarly needs complete local stories, even when a cast recurs.
For a channel matrix, keep separate editorial promises and series records, with one locked visual identity per channel/series. Reuse relevant research and assets with attribution/version records; do not treat retitling the same film as a new editorial concept.
3. Research and write a continuous script
For factual subjects, use existing knowledge to organize the topic and research the selected episode's consequential details. Keep a claim-to-source record. Prefer primary material and appropriate museum, archive, scholarly or institutional sources. Check dates, names, architecture, clothes, tools and geography. Distinguish established facts, interpretations and illustrative reconstructions.
Generated historical pictures are reconstructions, not archival evidence. A plausible face is not an authenticated portrait. Maps, diagrams, borders and data need separate verification; compose reliable graphics rather than trusting generated lettering.
For fiction, establish goals, story rules and emotional cause and effect. For young children, choose suitable language and time to inspect each important illustration.
Write the entire narration as fluent prose before splitting it into images. Explain unfamiliar concepts and connect causes to consequences. Reading the narration without pictures must still make sense. Concatenating all beat texts must reproduce the script exactly, with no missing sentence, duplicate line or disconnected explanation.
4. Lock the style and recurring identities
Decide the style before bulk production. Describe concrete properties:
- Painting/rendering method, degree of realism, contours and surface texture.
- Face/body proportions, apparent age, clothes, accessories and materials.
- Palette, contrast, light, environments and composition vocabulary.
- Treatment of titles, labels, diagrams and reconstruction notices.
For classical historical oil painting, for example, specify natural anatomy, layered oil glazes, restrained brushwork, canvas texture, earth pigments and chiaroscuro, while keeping architecture/costumes appropriate to the depicted period. Historical painting style does not justify putting Renaissance clothes into ancient Rome.
Generate a small representative set, inspect it together, then freeze the selected style text. Useful samples are a wide environment, an object/detail and a character reference if the film needs one. They can be actual episode assets. Record rejected versions and the reason; do not continue producing a rejected treatment. Repeat the locked style wording in every prompt and maintain it across the series. Keep the shared style block about visual treatment, not a list of scene objects: mentioning ships or people globally can make them leak into unrelated still lifes. Put content-specific props and period details only in the relevant scene prompt.
Required generate/edit decision
- Generate, inspect and save references for every character whose identity must remain recognizable. Record the exact selected look/version and its URL.
- If a defined character appears in an image, use edit mode (
i2i) with its references. - If no defined character appears, use generate mode (
t2i). - Anonymous background figures do not establish a recurring identity; if they become recognizable story roles, create references before further use.
- New clothes, age or significant appearance changes require a new reference version derived from the canonical identity. Preserve older versions.
A name, repeated prose description or shared seed cannot replace a reference. Never silently fall back to generate
when a required reference is unavailable. Record the ordered ref_image inputs and their roles for each request.
An edit accepts up to four pictures; split complex group compositions when necessary instead of dropping an
identity reference.
For historical explainers, anonymous representative workers can illustrate a process without inventing a named protagonist. If a recurring composite is useful, explicitly record that the figure is illustrative, not a documented historical individual.
5. Plan dense, meaningful image beats
Every new picture should contribute information, evidence, a changed action state, a relationship or an emotional development. Alternate contexts, human-scale views, details, objects and checked diagrams. Repeated portraits plus slow zooms do not constitute visual density.
Start with a meaningful sentence or clause per image. Roughly 2–6 seconds can be a useful planning range, but never force all images to the same length. Maps, complex diagrams and a child's discovery may need longer. If a passage outruns its picture, add another meaningful image at a natural spoken boundary. If cutting is too rapid to understand, combine beats or allow inspection time.
Record each beat's:
| Field | Purpose |
|---|---|
id |
Stable episode/image ID |
narration |
Exact words heard over it, not a production label |
visual_purpose |
The new information or story state |
mode |
t2i / i2i, derived from visible fixed characters |
references |
Exact selected files/versions and URLs, in input order |
prompt |
Complete English still-image prompt with the locked style |
sources |
Supporting sources or reconstruction notes |
motion |
Planned focal point, zoom/pan endpoints and safe areas |
audio_span |
Filled later from actual narration/alignment |
Describe one drawable moment. A person noticing a seedling is a still; running, kneeling and planting need separate images. Ken Burns changes the viewing window; it does not animate the subject or provide lip-sync.
Edit prompts identify what each reference supplies and which background/state should change. Check that neutral reference poses or incidental props have not leaked into scenes. Leave framing margin for the motion endpoints and later captions. Keep unwanted writing, logos and watermarks out of the artwork.
6. Submit picture and narration jobs
Read GET /api/studio/options once and save the voices and languages used. Every request returns the job in the
data envelope; save its id, the exact prompt, the input order and the intended local output immediately.
Generate a character-free image or initial reference
POST /api/jobs
{"kind":"image","mode":"t2i",
"params":{"prompt":"<contents of prompts/E001_B001.txt>","aspect_ratio":"16:9","seed":"42001"},
"inputs":{}}
Edit a scene containing a fixed character
POST /api/jobs
{"kind":"image","mode":"i2i",
"params":{"prompt":"<contents of prompts/E001_B002.txt>","seed":"42002"},
"inputs":{"ref_image":["<URL of refs/characters/selected-look.png>"]}}
Repeat URLs in ref_image for multiple references. An edit follows the first input's canvas: prepare landscape
references when the scene must be landscape; a portrait identity card cannot be assumed to yield a landscape edit.
A landscape reference composition can retain a clear, sufficiently large face while matching the intended canvas.
Generate narration
Use a stable preset voice. For English historical narration, Ryan is one available choice; audition and record
the actual selected voice. language takes a code such as en.
POST /api/jobs
{"kind":"speech","mode":"tts",
"params":{"speech_mode":"generate","language":"en","voice":"Ryan","seed":"43001",
"instruction":"Calm, clear documentary narration with a warm, measured delivery and natural brief pauses.",
"prompt":"<contents of audio/script-part-001.txt>"},
"inputs":{}}
Completed narration is an MP3 at outputs.audio. Do not invent voice names; use the presets, clone with a
recording (voice_audio), or design with a voice description in instruction.
Each speech prompt is limited to 4,000 characters. Split long narration at natural paragraphs, preserving exact text and the same voice/instruction. Do not make one request per isolated word just to obtain more pictures. A fluent recorded passage can support many image beats in the editorial timeline. Save each original take, its script version, voice, instruction, seed and measured duration.
Batch and collect
Once the full prompts and narration are ready, submit independent picture and speech jobs in a manageable batch (at most 200 pending at once); they run in submission order on the rented GPU. Jobs needing references wait for those references to finish. Group similar tasks together to reduce model switching while preserving actual dependencies.
Poll GET /api/jobs/{id} about every 15 seconds in a resumable helper. Terminal states are succeeded, failed
and canceled. Download outputs.image or outputs.audio on success, through temporary paths and an atomic
rename so a partial download cannot look like a finished asset. Results are deleted after 2 days: download them
at once.
Never duplicate a job after an uncertain POST/poll timeout: reconcile its recorded ID and the job list first. Record failures and retry only their causes. A job marked succeeded means inference finished; it does not mean the artwork or speech passed quality control. Leave the user's unrelated jobs alone.
7. Measure narration and obtain real timing
Check that the actual speech includes every required passage, with correct names, numbers and intelligible pronunciation. Repair a bad take locally; retain healthy parts. Reassemble the selected takes into a continuous narration master with normalized PCM/sample rate. Check joins for voice drift, padding, clipped phonemes and unintended silence before choosing picture durations.
The speech job returns audio and its duration but no word timing. For precise image cues/subtitles, upload that
exact narration master (purpose=audio or media) and transcribe it:
POST /api/jobs
{"kind":"asr","mode":"asr",
"params":{"language":"English","timestamps":"word","file_name":"narration.master.wav"},
"inputs":{"media":["<upload URL of audio/narration.master.wav>"]}}
Collect outputs.text and outputs.transcripts (json, words, srt, txt where available). Review the
recognized text against script, context and audible evidence. Correct recognition errors, not missing speech by
inserting unspoken scripted words. If essential text was omitted or hallucinated in synthesis, replace that take and
refresh the affected narration/timing.
Use aligned word/phrase spans to locate image changes. Do not fabricate word timing by distributing characters across a known duration. Keep final subtitles tied to the final audio master; if later editing changes speech timing, refresh alignment.
8. Build a timeline that follows the narration
Each image's timeline.json entry records its file, global start/end frames, audio passage, actual timing source,
motion endpoints and exact reference versions.
- Begin with the hook over a relevant picture, not a long silent title or fade.
- Let actions/visual discoveries accompany speech rather than adding silent waits.
- Preserve meaningful short pauses, but do not add a fixed tail to every image.
- Check neighbors as a continuous explanation/story, not as unrelated showcases.
- Default to hard cuts. If dissolves are used, account for their overlaps without shortening, repeating or delaying narration.
Define image boundaries on a single episode clock: end_frame = ceil(cumulative_seconds * fps), with the next
image starting at that same frame. This avoids accumulating one rounded-up padding interval per picture. Partition
one narration passage among its pictures rather than copying the passage's complete audio under every picture.
Render the picture with exact frame counts and normalize timestamps. Mux the continuous narration once. Repeated independently encoded audio clips and stream-copy joins can expose encoder padding and drift; measure the final file instead of trusting declared durations. Do not stretch or speed speech to fit an arbitrary image-count/runtime target.
9. Apply smooth Ken Burns
Use floating-point affine resampling with cubic interpolation (for example ffmpeg zoompan is integer-stepped
and jitters; prefer rendering each frame with a float crop and scale with flags=bicubic, or a small
Python/NumPy renderer). Keep a center-anchored small push/pull and smooth easing unless the brief asks for more
movement. Integer crop-window motion produces micro-jitter even when its duration and frame count are correct;
increasing an oversampling factor alone does not guarantee a stable result.
Keep important faces, objects and subtitle space in view at both endpoints. A complex diagram can be held still. The whole sequence shares one narration master, so cuts do not repeat or delay audio.
10. Subtitles, artwork and final QC
Keep a clean master. Generate any requested subtitles from reviewed real alignment, and mux soft subtitles without re-encoding picture/audio when that is the brief. Burn text in only when explicitly requested. Save sidecar SRTs and correct language, title and default-track metadata. Add intentional titles/diagram labels in a controlled editing step rather than relying on generated spelling.
Inspect artwork at full resolution before rendering, plus motion endpoints. Sparse contact sheets can miss unwanted writing; OCR helps but is not proof of cleanliness. Truncated glyphs can evade OCR, so visually inspect a correction at its actual edge.
A completed episode requires:
- All planned narration and essential visual beats are present and connected.
- Clear consistent speech, checked names/dates and no missing/duplicate passages, cut-off words or unintended long silence.
- The locked style, character identity, costume, props and correct generate/edit reference routing throughout.
- Fact-checked claims, maps and reconstruction details for educational content; clear action/emotional continuity for fiction.
- Smooth Ken Burns, readable composition, correct raster/ratio/fps and no unwanted lettering or missing media.
- Frame count/duration matching the accepted timeline and synchronized audio and captions through the final sentence.
- Caption behavior matching the brief, including hiding/switching where applicable.
Deliver film, clean master, cover, narration, requested captions, sources/credits and publishing notes. A content-site edition can also include the transcript and selected stills. Record checks actually performed and unresolved limitations rather than claiming full listening or frame-by-frame review from metadata alone.
11. Project records, recovery and cancellation
Keep outputs/<series-slug>/PROGRESS.md, series.json, outlines.json, research, style/character bibles and a
versioned reference manifest. Each episode has a complete script, image-beat plan, exact prompts, API job records,
original image/audio files, timeline.json, QC, subtitles, film, cover and publishing notes. Track stable IDs and
actual selected takes. Typical states are outlined, researched, scripted, style_locked, references_ready,
generating, narrating, editing, qc, done.
Retry failed jobs and preserve completed work. Do not rebuild a whole series because one image or voice take is wrong. Respect the user's chosen pilot even when other episode IDs precede it; subsequent production follows the authorized scope.
When the user stops production, stop submitting new work immediately. Cancel the production's queued jobs first,
then its running job, with POST /api/jobs/{id}/cancel, so canceling the active job does not simply start the next
queued one. Recheck the recorded IDs and repeat cancellation if a job was picked up in between. Do not cancel the
user's unrelated jobs, delete accepted local assets without a deletion request or automatically resume canceled work.
If the service becomes unreachable, report that final verification is incomplete instead of claiming an empty queue.
Update exact next steps and delivery paths after meaningful stages. A list of outlines, image batch or opening preview is not a finished film or finished series.