Communitygithub.com

oral-video-production

Creates vertical oral presentation, interview, narrative videos, and news-style clips with or without voiceover: cleans breaths from Feishu script voiceovers, generates word-level timestamps, arranges shots, transitions, in-video captions and bottom subtitles using TP01/TP02 templates, renders with Remotion, and runs self-checks before delivery.

What is oral-video-production?

This skill enables an AI agent to produce high-quality vertical short videos optimized for platforms like Douyin (TikTok China), focusing on oral presentation (口播), interviews, storytelling, before-and-after comparisons, brand stories, and data-driven news clips. It uses two distinct templates: TP02 (Red-Cream Oral Edition) for content featuring a speaker, and TP01 (Blueprint News Edition) for voiceover-free or light-voiceover informational content. The workflow begins by extracting script and voiceover from a Feishu document, then processes audio to remove breaths and set a consistent time axis using tools like silence detection and ASR (faster-whisper) for word-level timestamps. Shot lists are arranged semantically, not by fixed durations, with transitions only at chapter breaks. The video is assembled programmatically in Remotion, ensuring subtitles are rendered on a persistent bar (avoiding flicker) and that all visuals, captions, and audio are synchronized. A mandatory self-check protocol scans for material-audio mismatches, visual defects (freeze frames, black frames, artifacts), subtitle flicker (using a custom QC script that compares edge energy in the subtitle region), and compliance with Douyin's safe area for subtitles and interactive elements. Only after passing these checks is a CDN link sent to the user for approval before final local save. The skill integrates with the agent's file system and references a set of markdown documents for detailed template metrics, Remotion patterns, and QC checklists.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/wuxi293-maker/oral-video-production-skill/tree/HEAD/oral-video-production

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Oral Presentation Video Production

Hard Rules

  • Self-check is mandatory after each production: verify that material usage matches audio content, material has no issues, subtitles do not flicker, and compliance with Douyin subtitle and operation safe zones. Do not send a CDN link if any check fails.
  • No fixed single-shot duration for oral clips: cut according to script semantics and speech rhythm, not a blanket "3 seconds per shot."
  • Hard cuts are primary: use transitions only at chapter/temporal jump points, not on every cut. Multiple styles are allowed, but only one per cut point.
  • Subtitle bar always stays: only the text changes; do not mount/unmount per sentence to avoid flickering.
  • Send a CDN link first; save locally only after user confirmation.
  • End card should not retain the lower-left account/section text, only essential information.

0. Choose a Template First

IDNameUse CaseKey Features
TP02Red-Mi Oral EditionOral presentation, interview, story, before/afterRed background with thin white border, beige large card, black media window, red subtitle bar, blue/pink brushstroke title
TP01Blueprint News EditionNews, data, announcements, evidence-based contentDark blueprint background, yellow-green highlights, bottom paper-style info card
  • If there is an on-camera speaker, interview, story, or before/after → default to TP02.
  • For non-speaker or light-speaker news, data, announcements → TP01.
  • For full coordinates, fields, and sample videos, read:
    • references/tp02-red-cream-oral.md
    • references/tp01-blueprint-news.md

1. Receive Task & Read Script

Extract from the user input:

  1. Script source: Feishu document link, section/heading; only read the specified paragraphs.
  2. Template: TP01 / TP02; if not specified, infer from content.
  3. Voiceover: voice file, whether it needs breath cleaning or speed increase.
  4. Special requirements: title line count, material orientation, cover, platform, duration.
  5. Material: links or files provided by the user; retrieve, screenshot, download, and save any missing material.

Do not change facts, numbers, dates, names, or quotes. The script title is the only on-screen title and stays throughout the whole video.

2. Process Audio & Establish Full Video Timeline

For oral videos, the human voice is the primary timeline; do not arrange visuals first.

  1. Use silencedetect to find breaths/pauses and compress them to 0.10–0.16 seconds.
  2. Apply overall speed-up as needed (commonly atempo=1.2); preserve pitch.
  3. Add highpass=52, lowpass=14500, alimiter=0.95; export to 48kHz mono WAV.
  4. Use faster-whisper or equivalent tool for word-level timestamps; correct ASR misrecognitions against the original script.
  5. The final video length follows the processed voiceover; do not stretch shots to hit round seconds.

Detailed commands and parameters are in references/workflow.md.

3. Arrange Shots & Material

  • No fixed 3-second per shot. For oral clips, cut according to speech semantics and pauses; for news, cut according to information points.
  • Each shot must include: start/end frame, material, shot scale/action, corresponding lines, transition, key annotation.
  • Mix images and live footage; do not reuse the same material and do not use screenshots with watermarks/channel logos.
  • Convert live footage to 30fps CFR; use setpts to align source frames; do not apply motion interpolation.
  • Default to hard cuts; transitions only at chapter/temporal jump points, not on every cut.
  • TP02 commonly uses 7 transitions: fade, slideLeft, slideUp, wipeLeft, wipeUp, push, blur; choose only one per cut point.
  • Key annotations within material should only be short labels, dates, or conclusions; do not duplicate full bottom subtitles.

4. Build Remotion Project

  • Canvas: 1080×1920, 30fps, target 12Mbps, AAC 192k.
  • Composition durationInFrames = the last shot's end, not a fixed number of shots × 90.
  • Shots, transitions, key annotations, and subtitles should all be data-driven; do not hardcode the entire film in one component.
  • Use OffthreadVideo for frame-accurate video; use Img with Ken Burns for images.
  • Subtitle bar renders persistently; only change the text; do not mount/unmount per sentence or use full-sentence opacity fades, which can cause blank frames.
  • Sound effects use Sequence attached to paragraph nodes, not per shot.
  • Code skeleton and transition/subtitle implementation can be found in references/remotion-patterns.md.

5. Subtitles & Info Layers

Bottom Full-Sentence Subtitles

  • Red bar/background is always present; only the text changes.
  • A single sentence can span multiple shots; cut according to word-level timestamps, not to align with shot changes.
  • Only one subtitle is displayed at a time; no text overlap or blank frames.

Key Annotations Within Material

  • Three styles: tag, date, statement.
  • Four entrances: mask, pop, slide, blur.
  • Maximum one annotation at a time; do not block faces, product main subjects, or key data.
  • Duration aligns with the corresponding words, typically 1.5–4 seconds.

6. Audio

  • BGM: use popular Douyin tracks, not AI-generated; gain around 0.20.
  • Sound effects: only attach at paragraph start, data card, ending, and other key nodes; do not add per shot or enforce "10 effects per 100 seconds."
  • Voice clarity is paramount; BGM should not overpower words, sound effects should not be harsh, and there should be no clipping or distortion.
  • If sample videos use royalty-free music for temporary padding, note the source in the delivery notes; the final version should use user-requested Douyin tracks.

7. Rendering

npx remotion render src/index.ts OralVideo out/master.mp4 \
  --codec=h264 --pixel-format=yuv420p \
  --video-bitrate=12M --audio-codec=aac --audio-bitrate=192k \
  --concurrency=4
  • Produce a high-quality master first, then confirm bitrate, duration, and resolution.
  • For the cover, crop 3:4 (1080×1440) from the first frame or a specified frame, with key title and subject within the safe zone.
  • Do not deliver directly after rendering; proceed to step 8 (self-check).

8. Pre-Delivery Self-Check (Hard Gate)

A full self-check must be performed after every production; do not send a CDN link if any check fails.

First run the technical checks:

python3 scripts/qc_video.py <final.mp4> \
  --expected-duration <seconds> \
  --json-out qc_report.json

python3 scripts/qc_captions.py <final.mp4> \
  --json-out caption_qc.json \
  --contact-sheet caption_qc.jpg

qc_captions.py compares edge energy in the subtitle bar region frame by frame to find frames where the text is nearly blank, and outputs a contact sheet. The default region is the TP02 subtitle bar; TP01 has no bottom subtitle bar, so either skip or use --region. Note: TP02 sample v1/v2 have a 1-frame blank at each sentence boundary—this is a known defect and should not be replicated as a passing criterion.

Then perform a manual/frame-by-frame check according to references/self-check.md, covering at least four items:

  1. Material Usage Matches Audio Content

    • Verify that the visual semantics of each sentence are correct; no "saying A while showing B."
    • Key numbers, locations, people, and products are consistent with the material.
    • Shot changes do not lead or lag the corresponding word by more than about 0.3 seconds.
  2. Material Has No Issues

    • No black frames, freeze frames, duplicate frames, decoding artifacts, flicker, or jitter.
    • No upscaled low-res, stretched deformation, subject cropping, incorrect watermarks/channel logos.
    • Orientation (portrait/landscape), frame rate, color, and exposure are normal; no motion interpolation artifacts.
  3. Subtitles Do Not Flicker

    • The subtitle bar is always present; when text changes, there are no blank frames, double-line overlaps, or line jumps.
    • A single sentence can span shots; the subtitle bar remains persistent and must not be rebuilt or go blank during shot changes; no old text one frame and new text the next.
    • No typos, ASR misrecognitions, punctuation overflow, or text extending beyond the bar.
    • Frames flagged by qc_captions.py for low text must be reviewed one by one. Do not use per-sentence fade-out/fade-in for bottom full-sentence subtitles; only key annotations within material may use entrance animations.
  4. Compliance with Douyin Subtitle and Operation Safe Zone

    • Bottom subtitles must remain within the conservative safe zone: for 1080×1920, recommended y ≤ 1600, at least about 300px from the bottom edge.
    • Do not place key subtitles/data in the right ~120px; do not place key titles in the top ~120px; do not place critical information in the bottom ~300px.
    • Double-check with Douyin's publish preview; platform UI may change, so rely on actual preview.
    • TP01's info card is already at bottom 300 (top 1282), but still verify with Douyin preview before publishing; if the platform UI changes, shift the whole card upward.

Self-check results should be written to qc_report.json or qc_notes.md: for each item, write "pass/fail/reason/modification." If any fail, fix, re-render, and re-check until all pass.

9. Delivery

  • First send a CDN mp4 link within the conversation; only save/replace the local file after user confirmation.
  • Local directory: date_scriptName/; video file named after the script; version starts at v1, retain v1 through vN.
  • Cover: 3:4; send the cover link as well if needed.
  • Delivery notes must include: template ID, duration, resolution, bitrate, BGM source, and self-check results.

10. Extending Templates

  • Current template IDs: TP01, TP02; TP03–TP05 are reserved.
  • New templates must first run with real sample videos before being assigned an ID; IDs are never reused, only retired by changing status.
  • Only reuse a common base; do not copy entire old template code.

Invocation Examples

  • Use $oral-video-production, follow TP02, turn this oral script into a 30-second vertical video, send the CDN link first.
  • Use TP01 to make a 20-second news clip, use the material in the link I sent, self-check then send the link.
  • Revise to v2 with TP02: shots cut too fast, don't add transitions on every cut, let key captions enter according to word-level timestamps.

Resource Navigation

  • references/workflow.md: full pipeline from script to render, audio commands, shot list template.
  • references/tp02-red-cream-oral.md: TP02 coordinates, colors, subtitles, transitions, data structures.
  • references/tp01-blueprint-news.md: TP01 coordinates, colors, info card, data structures.
  • references/self-check.md: pre-delivery self-check checklist and Douyin safe zone criteria.
  • references/samples.md: TP01/TP02 sample videos, source projects, QC results, and known issues.
  • references/audit-2026-11-27.md: differences and corrections found by comparing against two sample videos and source projects.
  • references/remotion-patterns.md: Remotion component skeleton, dynamic shots, transitions, subtitles, key annotations.
  • scripts/qc_video.py: framerate, resolution, bitrate, black frames, freeze frames, volume checks.
  • scripts/qc_captions.py: blank/low-text subtitle bar frame checks, outputs contact sheet.
  • assets/template-registry.json: template registry; TP01/TP02 active, TP03–TP05 reserved.
  • assets/previews/README.md: preview image descriptions; JPGs not stored in repo, use previewCdn.
  • assets/douyin-safe-area-1080x1920.svg: 1080×1920 Douyin conservative safe zone reference.

Common Pitfalls

  • Mounting/unmounting subtitles per sentence → blank frames at switch point; fix by keeping the bar always on and only changing the text.
  • Adding transitions on every cut → weak rhythm; fix by hard-cutting mostly, transitioning only at chapter boundaries.
  • Arranging visuals before audio → mismatched material and lines; fix by establishing the voiceover timeline first.
  • Using a fixed 3-second rule for oral clips → sentences cut off; fix by cutting according to speech and semantics.
  • Only checking technical metrics, ignoring visuals → missed black/freeze frames and wrong material; both technical and frame-by-frame checks are required.
  • Bottom info card flush to bottom → obscured by Douyin UI; shift it upward or place key information in the upper half.

Related Skills