dramapack

v0.3.1
io.github.dawnwood-ai/dramapack Checked 4 days ago Published 1 month ago

Short-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.

ParameterTypeDescription
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…

ParameterTypeDescription
input *string
output *string
bed
burnboolean
card_secsnumber
cover_bandnumber
end_card_lines
end_card_site
end_card_title
head_trimnumber
music
srt
subtitle_fontstring

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…

ParameterTypeDescription
input_dir *string
output_dir *string
bed
cleanboolean
cover_headboolean
coversboolean
edge_liftboolean
episodes
language
masters_readyboolean
music
platform_pairsboolean
rights
show
studio
target
timelineboolean
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…

ParameterTypeDescription
files *array
alignboolean
bounds
cut
speechboolean
srt
srt_lang
vlmboolean
vlm_max_framesinteger

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.

ParameterTypeDescription
allow_fonts
bed
end_cardboolean
input_dir
music
rights
subtitle_font