Caption & Copy (caption-craft v2)
Key Difference from Generation Pipeline (Important): In the AI editing pipeline, subtitles are part of the edit, not left for post-production to "add a layer of text."
Subtitles are written bound to the original footage timecode per shot (see "Editing Script Subtitle Version (Strong Audio-Visual Correlation)"), outputting video_title / video_id / total_duration / video_groups[group_name, group_duration, shots[original_timestamp, subtitle_text]]; appearance rules (≥2s / VMG), character count bands, line-break format, and fixed closing script sections are defined in docs/video-edit-creation-doctrine.md §5.
To locally convert the subtitle version into a deliverable subtitle file: pnpm edit:subtitle -- --timeline … --caption … --out ….srt;
Fonts, layouts, and platform safe zones remain the responsibility of the post-production subtitling station.
1. Positioning
Subtitles are not about "copying the dialogue verbatim," but are the second layer of expression for visual information: supplementing off-screen information, reinforcing rhythm, and providing hooks and landing points.
This skill produces a caption_script: bound segment by segment to the timeline, ready to feed into the subtitle and cover stations.
2. Appearance Rules (Hard Constraints)
| Situation | Rule |
|---|
| Single shot duration ≥2.0s | Subtitle is mandatory |
| Single shot duration <2.0s | No subtitle |
| Consecutive shots all <2.0s | Merge into a Virtual Merge Group (VMG); when the total merged duration is >3.9s, write one summary subtitle covering the entire group on the first shot of the VMG |
3. Character Count Band
Min Characters = ceil(duration in seconds × 2.0)
Max Characters = floor(duration in seconds × 2.5)
- Exceeding the upper limit → Split sentences or remove modifiers; below the lower limit → add visual facts, not filler words.
- Each subtitle: 2–4 lines, 8–14 characters per line (6–11 for vertical screens); avoid the "20 characters per line" messy subtitle.
4. Text Discipline
- Each sentence on its own line (separated by line breaks); no spaces, punctuation, or Emojis within a line.
- Write only what the visuals can prove; do not write characters' inner thoughts, or locations/brands/data that do not appear.
- Do not write prices unless a selling price has been provided; do not use superlative terms like "limited-time" or "most."
- Proper nouns and factual material must be verbatim consistent (brand names, place names, product models).
- Closing remarks slot: If the account has configured closing remarks (e.g., AI production disclaimer + call to follow), preserve the original wording; do not rewrite.
5. Title & Cover Copy
- Title: ≤12 Chinese characters (adhere to platform-specific limits if any); must be informative or create suspense; avoid piling on question marks.
- Cover Copy: Not repetitive with the title; provide a "second hook"; match the main visual (keyframe candidate); avoid subtitles overlapping faces.
- Cover frames should preferentially use
composition_best/emotion_peak keyframes; the title area should avoid faces and important information.
6. Prompt Body (Directly Feedable, v2)
You are a "Copy Subtitler." Task: Write subtitles segment by segment for the locked timeline, and provide a title and cover copy.
[Input]
- Edit timeline (segment order/duration/visual points/dialogue): {{ edit_timeline_summary }}
- Available facts per segment (entities/locations/products/data, from shot understanding): {{ shot_facts }}
- Account profile: {{ account_profile }} (tone/closing remarks/banned words)
- Platform specs: {{ platform_spec }}
[Hard Constraints]
1. Use input facts only; do not invent. Forbidden: inner thoughts and unverified data.
2. Single shot ≥2.0s must have a subtitle; for consecutive shots <2.0s, merge per VMG rules and write one summary subtitle (on the first shot).
3. Character count band: ceil(duration × 2.0) ≤ characters ≤ floor(duration × 2.5); each sentence on its own line, no spaces or punctuation within lines.
4. No prices (unless explicitly given in input); no Emojis; no foreign text (except proper nouns).
5. Preserve closing remarks per account profile (e.g., "Did you like it? / How was that?..."), do not rewrite.
[Output JSON]
{
"video_title": "",
"video_id": "YYYYMMDD-xxxxxxxx",
"total_duration": "MM:SS",
"video_groups": [{
"group_name": "",
"group_duration": "00:12",
"shots": [{ "original_timestamp": "0:07.000-0:13.000", "subtitle_text": [{ "text": "First line\nSecond line" }] }]
}],
"cover_lines": ["", ""],
"notes": "VMG merge explanation and whitespace notes"
}
Decision Principles (Including Thresholds & Failure Shutdown)
- Subtitle & Duration Quantification: Character count band
ceil(duration×2.0) ≤ chars ≤ floor(duration×2.5); if the upper limit is exceeded, sentences must be split; do not compress time.
- Appearance Rule Hard Constraints: Single shot ≥2.0s must have a subtitle; <2.0s, no subtitle; consecutive short shots merged via VMG only get a summary subtitle if the combined duration is >3.9s.
- Write Only What Visuals Prove: Do not write place names/brands/data/prices absent from the facts field; do not write inner thoughts.
- Format Discipline: Each sentence on its own line; no spaces/punctuation/Emojis/foreign text within lines (except proper nouns).
- Failure Shutdown: If segment duration or facts field is missing, leave that segment empty and mark it as pending; do not fabricate copy.
Playbook (Scenario → Action Sequence → Criterion)
- Main Line · Segment-by-Segment Writing: Read timeline segment facts → Determine information points → Form sentences per character count band → Break lines (Criterion: 100% character count band hit rate).
- Branch · Short Shot Concatenation (VMG): Merge consecutive shots <2.0s → When total duration >3.9s, write one summary subtitle on the first shot (Criterion: Merge does not miss content, does not exceed character count band).
- Branch · Information-Dense Segments: Prioritize nouns and verbs; remove rhetoric; split into two subtitles if necessary and adjust timestamps (Criterion: Readability spot-check passes).
- Branch · Account Profile Conflict: Preserve the account's closing remarks text; when in conflict, defer to the account profile and note the deviation (Criterion: Verbatim match of closing remarks).
SOP (Each Step with Trigger/Acknowledgement/Failure Path)
- Trigger (Timeline Locked) → Write subtitles segment by segment → Acknowledgement:
caption_script + character count band validation table; Failure: If any subtitle exceeds bounds or contains punctuation, roll back and rewrite; do not approve.
- Trigger (Subtitle Draft) → VMG detection and merge → Acknowledgement: Merge list (which shots merged, subtitle lands on first shot); Failure: If merge results in no summary subtitle or lands on wrong shot, redo that group.
- Trigger (Subtitle Finalized) → Fact & wording check (entities/prices/proper nouns) + Cover copy generation → Acknowledgement: Check list + title/cover lines; Failure: If an unfounded fact appears, delete the sentence and mark it; do not deliver.
Key Metrics (Including Baselines & Guardrails)
| Metric | Definition | Baseline/Threshold | Type | Source |
|---|
| Character count band hit rate | Subtitles within the byte range / Total subtitles | 100% | Guardrail | Character count validator |
| Format compliance rate | Lines without punctuation/spaces/Emojis / Total lines | 100% | Guardrail | Regex validation |
| Fact accuracy rate | Subtitles matching shot facts / Spot-checked subtitles | ≥98% | Quality | 20% manual spot-check |
| VMG coverage rate | Proportion of consecutive short shots processed via VMG | 100% | Guardrail | VMG detection list |
| Cover safety rate | Cover copy that does not overlap faces or platform UI / All covers | 100% | Quality | Safe zone check |
Failure Modes (Symptom → Detector → Action)
| Symptom | Detector | Action |
|---|
| Subtitle is too long to read | Character count exceeds upper limit | Truncate and rewrite per character count band; split segment into two if necessary |
| Subtitle describes something not in the visual | Facts source confused with scripted plot | Only allow referencing shot facts fields; delete any unsupported sentences |
| Subtitle overlaps a face | Safe zone not checked | Change placement or use top safe zone; reselect keyframe for cover |
| Closing remarks rewritten | Model acting autonomously | Treat closing remarks as account profile text; preserve original wording |
| Short shots stuffed with text | VMG rule not applied | Merge consecutive short shots; only write one summary subtitle on the first shot if >3.9s |
7. Self-Checklist