Subtitle Delivery Specification
Deliverables and Default Paths
Successfully rendered source mirrors move directly into formal post-production and retain program audio. Subtitles come from explicitly provided text and timelines; no ASR is performed unless a transcription request is made. Poor original video quality, dialogue, or legacy font/typography failures do not require recreating the shot.
| Deliverable | Default Content | Evidence |
|---|
| New final video or soft subtitle version | The actually requested burned-in or softsub output | File path and SHA256 |
| Subtitle plan | Font, font size, stroke, margins, ASS styles and events | Actual plan / ASS file |
| Text/timeline receipt | Requested entries, adopted entries, and explicit changes | Real count and start/end times |
| Extended track receipt | Danmaku, sticker, karaoke, bilingual request parameters | Actual placements/timing/density settings |
| Frame-by-frame quality evidence | Not collected by default | Only provided for explicit independent diagnostics |
SOP
- Trigger on explicit subtitle or extended text request. Verify text, timeline, source SHA256, font license, and output path. Empty/invalid shapes, illegal times, and permission mismatches fail explicitly.
- Select bundled fonts and platform parameters as requested, generate ASS plan. Retain all text and danmaku entries by default; do not default to a 20-character or 8-concurrent limit.
- Execute burn-in once, or copy original video/audio tracks for a soft subtitle path. Original master is read-only; no subtitling operation may regenerate video, dub, or perform hidden transcription.
- Verify actual text events against requested timeline, font resolution, output stream, and current SHA256. Quality is not reviewed; do not claim contrast, visibility, or picture quality passed.
- Only thin or reject entries based on user-explicit density/length limits, and report original count, retained count, and the limit. On user return to modify text layer, do not redo unnamed shots.
Typography Reference Table
| Item | Suggestion / Original Process Reference | Current Boundary |
|---|
| Subtitle font size | 3.8%–7.5% of the short edge | Creative reference; not a default final video measurement gate |
| Title font size | 8.5%–16% of the short edge | Determined by request parameters and font capability |
| Single-line Chinese characters | 18 (vertical) / 22 (horizontal) | Recommended line break; do not truncate content |
| Safe margin | At least 2.5% of the short edge | Platform design reference; not a default pixel audit |
| Danmaku density | User can explicitly set a concurrency limit | No limit by default; nine simultaneous entries retain all nine |
| Danmaku length | User can explicitly set a positive integer limit | No default 20-character limit |
| Sticker time window | Originally recommended 1.5–3s | Retained based on request/interface validity |
| Karaoke | Per-word duration corresponds to event time window | Real text with explicit/equal-division granularity recorded |
Parameter Boundaries and Discipline
- Font must exist and its license must cover the intended use (G-SUB5); missing fonts cannot silently drop characters.
- Source video is read-only; soft subtitles must not trigger unnecessary video re-encoding; burn-in writes a new file; master remains clean.
- Timeline and array shapes must be valid; unknown modes/error parameters fail explicitly; do not fabricate added text.
- Only explicit, valid positive integers for
max_chars / max_concurrent impose corresponding limits; null/boolean/invalid values cannot silently become default limits.
- Existing CJK punctuation formatting and content truncation are different; record the formatting rules adopted; do not delete numeric/English/text entries based on default quality judgments.
- Do not perform frame-by-frame contrast/ink/visibility/sharpness reviews by default; unmeasured quality items are null/unreviewed.
Failure and User Return Attribution
| Symptom | Cause / First Check | Action |
|---|
| Invalid ASS/SRT time | start/end/entry shape | Return request error, retain source, do not guess times |
| Missing font glyphs or file | Font resolution and license | Identify missing font/characters; do not silently drop characters |
| FFmpeg/libass processing failure | Actual logs, encoder, and path | Keep real failure; do not repackage as low quality score |
| Default long danmaku / nine simultaneous entries lost | Implicit max_chars / max_concurrent | Must not truncate or thin by default; generate per full request |
| User says text blocks UI / too small | Explicit user feedback and typography parameters | New local text request; modify position/font size |
| User says time or translation is wrong | Explicit timeline/text change | Record new entry version; do not auto-ASR or re-dub original audio |
| Upstream black frames / low resolution / existing hardcoded subtitles | Actual content of successful source | Continue with requested processing by default; log opinions separately only; do not re-render |
Version, Receipt, and Interface
Naming: <project>-vN-<platform>.mp4/.ass/.srt; outputs are append-only, never overwritten. The manifest records source/output SHA256, font/encoder/adopted style, entry timeline, explicit thinning or formatting, and processing errors. Text is not part of the image generation authorization; compliance, actual missing items, and processing failures are made explicit.