PaperKit Studio — Hand-Torn Paper-Craft Documentary Video Skill
Produce complete, watermark-free 1920×1080 @ 30fps editorial paper-craft documentary films using pure HTML5 Canvas + headless Chrome + FFmpeg, paired with 16:9 (1920×1080) and 4:3 (1600×1200) covers.
Non-Negotiable Production Standards
- Resolution & Delivery: Always render
1920×1080,30fps, H.264 + AAC 44.1kHz stereo, zero watermarks. - Dual Covers Always: Automatically generate BOTH 16:9 (
1920×1080) and 4:3 (1600×1200) watermark-free covers on every episode. - Zero Static Dead Air (Beat-Sync Rule): Every scene MUST contain 3–4 crisp spoken beats (
~2.5–4.0seach) whose exact local offsetsbeats[]are passed into the scene renderer. Every beat (b0,b1,b2) MUST launch simultaneous motion (PKP.evalBeatCam, torn-ribbon arrows, rolling counters, callout pins, stamp slams, or rack focus). Never dump all motion into the first 4 seconds and freeze while the narrator keeps talking. - One Scene, One Fresh Visual (No Lazy Reuse): For full episodes (14–16 scenes, ~4–5 min), prepare 3–5 distinct real neural-segmented portraits + 6–10 unique real halftone archival plates (and bespoke 3D paper-sculpture dioramas when image generation is available) plus bespoke per-scene animated props. Never lazily recycle the same 1–2 assets across unrelated scenes.
- Audio Polish: Use
zh-CN-YunjianNeural(+16%,-1Hz, or user-requested language/voice) mixed via classical_audio.py — velvety Baroque/Classical chamber strings + concert grand piano + ONLY soft cotton-paper brushing SFX (300–1320 Hz). Never add harsh clicks or snaps. - Mandatory Visual & AV Quality Gates: Visually inspect raw cutouts/plates, inspect the full-episode preview sheet and both covers before full render, and verify the finished MP4 with
ffprobe+ 3 extracted AV clips before delivering.
6-Step Production Workflow
Step 1 — Fact Verification & Beat-Synced Script
- For recent or real-world events, verify exact dates, figures, and names via live web search before writing the script.
- Author
script.jsonfollowing script_template.json: 16 scenes × 3 short spoken beats = 48 beats (~4–5 minutes). - Synthesize beat-synced narration,
audio/timeline.json(with exactbeats[]/beatEnds[]), andaudio/final_mix.wav:python ./scripts/build_audio.py --project <episode_dir> --script <episode_dir>/script.json --mood d_minor_intrigue
Step 2 — Asset Pipeline (Portraits, Plates, Newspapers & Optional 2.5D Dioramas)
- Create an
assets_manifest.jsonspecifyingportraits(Wikimedia Wikipedia/Commons leads), uniqueplates, bespokenewspapers, and optional raw 3D paper-sculpturedioramas(generated with strict 3-color#141414charcoal /#EFE8D8ivory /#F2B705mustard-gold palette and ZERO embedded text). - Run the cross-platform toolkit:
python ./scripts/asset_toolkit.py --project <episode_dir> --manifest <episode_dir>/assets_manifest.json - Visual Gate #1: Inspect EVERY generated portrait cutout (
assets/cutouts/*_gold.png), archival plate (assets/textures/plate_*.jpg), and diorama matte (assets/dioramas/*_cut.png). Crop any multi-panel splits, borders, or artifacts before proceeding.
Step 3 — Scene & Dual-Cover Authoring
- Copy
./engine/paperkit_v35hybrid.js(or./engine/paperkit_v29pro.jsif classic mode is requested), engine.html, and cover.html into<episode_dir>/web/. - Author
<episode_dir>/web/scenes.js(or splitscenes_a.js+scenes_b.js) binding every clause toconst [b0, b1, b2] = beats;. - Consult paperkit-api.md for all drawing, 3-plane DoF, 2.5D diorama, torn-ribbon arrow, and camera rig primitives.
- Customize
<episode_dir>/web/cover.htmlwith bespoke layouts for both?mode=16x9(1920×1080) and?mode=4x3(1600×1200), keeping bold headlines, subtitles, and hero art cleanly separated.
Step 4 — Preview Sheet & Cover Inspection
- Capture late-beat (
82%duration) preview frames for all scenes plus both covers:python ./scripts/render_engine.py preview --project <episode_dir> --cover-prefix <prefix> - Visual Gate #2: Visually inspect
output/preview_sheet_*.jpg,output/*_cover_16x9.png, andoutput/*_cover_4x3.png. Fix ANY text overlap, clipped badge, low-contrast label, or unwanted blur on key focal charts, then re-runpreviewto confirm 100% clean frames.
Step 5 — Multi-Worker 1080p 30fps Full Render
- Render across 4 parallel headless Chrome workers piping MJPEG directly to FFmpeg H.264 (
crf 17) and muxingaudio/final_mix.wav:python ./scripts/render_engine.py full --project <episode_dir> --out-name <EpisodeName>.mp4 --workers 4
Step 6 — Final AV Sync Verification & Delivery
- Run
ffprobeand extract 3 full-scene AV clips (opening, mid climax, finale):python ./scripts/render_engine.py verify --project <episode_dir> --out-name <EpisodeName>.mp4 - AV Gate #3: Watch and listen to all 3 extracted clips (
_segs/verify_*.mp4) to confirm word-synced animation across every beat, smooth 30fps motion, clean Rack Focus, velvety classical music + soft paper brushing, and zero audio clicks. - Deliver clickable links to the final MP4, 16:9 cover, 4:3 cover, and preview sheet.