dramapack
v0.3.1Short-drama delivery packs, -14 LUFS mastering, subtitle safe areas, clean masters, rights checks.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
inspect
Measure a video/audio file: duration_s, width/height, fps, codecs, file size, integrated loudness (LUFS), true peak (dBTP), loudness range, and the constant gain needed to reach the -14 LUFS short-drama target. Read-only. Use it to check an episode before or after mastering.
| Parameter | Type | Description |
|---|---|---|
path * | string |
master
Master ONE short-drama episode into a platform-ready file: burns `srt` subtitles inside the safe area (18% bottom margin clear of the player bar, text box <= 70% of frame width for TikTok Drama Center), normalises loudness to -14 LUFS with a constant gain + peak limiter (no dynamic loudnorm), optionally lays a procedural music bed (`bed`: one of tension, warm, suspense, dread, hope) that ducks under dialogue, trims `head_trim` seconds (subtitles shift with it) and appends an end card. Set burn=false for a clean master without subtitles. Writes `output`; returns its measured spec. For a whole s…
| Parameter | Type | Description |
|---|---|---|
input * | string | |
output * | string | |
bed | ||
burn | boolean | |
card_secs | number | |
cover_band | number | |
end_card_lines | ||
end_card_site | ||
end_card_title | ||
head_trim | number | |
music | ||
srt | ||
subtitle_font | string |
package
Build a complete short-drama delivery package (platform submission pack) from `input_dir`, which holds episodes 01.mp4, 02.mp4, ... (un-subtitled cuts by default; set masters_ready=true if they are finished subtitled masters) plus optional 01.srt subtitles, 01.jpg covers, 01.timeline.json edit timelines, show.json and rights.json. Writes to `output_dir`: episodes/NN.mp4 + same-name NN.srt, clean/NN.mp4 clean masters (no subtitles), covers/NN.jpg (3:4, >=350x500), timeline renders + EDL CSV, docs/CHAIN-OF-TITLE.md (blank, to be signed by a person), docs/AI-DISCLOSURE.md, manifest.json with meas…
| Parameter | Type | Description |
|---|---|---|
input_dir * | string | |
output_dir * | string | |
bed | ||
clean | boolean | |
cover_head | boolean | |
covers | boolean | |
edge_lift | boolean | |
episodes | ||
language | ||
masters_ready | boolean | |
music | ||
platform_pairs | boolean | |
rights | ||
show | ||
studio | ||
target | ||
timeline | boolean | |
title |
audit
Acceptance QC: grade finished short-drama episodes green/yellow/red against market benchmarks - duration (TikTok Creator Rewards needs > 60 s), average shot length, long-shot share, mean volume, seam level jumps (give splice points in `bounds`), frozen tail / end-card length, black frames (mid-episode black >= 0.5 s is red), and with faster-whisper installed: dialogue density (`speech`) and subtitle-to-speech alignment (`align`: cue offsets, cues with no speech, speech with no cue, likely typos when subtitles are in the spoken language; uses `srt` or the same-name .srt next to the file; speech…
| Parameter | Type | Description |
|---|---|---|
files * | array | |
align | boolean | |
bounds | ||
cut | ||
speech | boolean | |
srt | ||
srt_lang | ||
vlm | boolean | |
vlm_max_frames | integer |
check_rights
Rights hygiene check for overseas short-drama distribution. Grades every music cue declared in rights.json (source: generated | procedural | public_domain | licensed | unknown) and every font burned into the picture. Red: undeclared/unknown music, major-label publishers (Sony / Universal / Warner and imprints), public domain published <= 50 years ago, fonts not free for commercial use. Yellow: licensed without proof, font not installed (substitute is checked too). Give `rights` (path to rights.json) and/or `input_dir` (uses its rights.json, scans *.ass). Not legal advice. Read-only.
| Parameter | Type | Description |
|---|---|---|
allow_fonts | ||
bed | ||
end_card | boolean | |
input_dir | ||
music | ||
rights | ||
subtitle_font |