Build Script tasks
Stub
This page is a stub. You can help by expanding it.
How can I help?
You can help by updating this page with examples.
This is a list of all the tasks automatically included in our build script.
Tasks
merge
The merge
task combines multiple subtitle files into a single ASS file.
It's used to merge the main dialogue file with other components like OP/ED, extras, inserts, and typesetting.
Key features: - Includes the main dialogue file - Optionally includes OP/ED files with sync line matching - Includes extra files if present - Sets script info like title, border/shadow scaling, and layout resolution
cleanmerge
The cleanmerge
task processes the merged subtitle file to remove unnecessary lines:
- Removes blank lines
- (Optionally) Removes karaoke template lines
chapters
Generates chapter markers from the dialogue file: - Uses "chapter" as the chapter marker - Creates a chapters file for muxing
swap
Applies text swapping for honorifics and other predefined replacements: - Operates on specified styles (e.g., "Main", "Default", "Alt") - Creates an alternative subtitle track with swapped text
mux
The mux
task combines video, audio, and subtitle files into a single MKV container:
- Sets title and track metadata
- Includes video and audio from the premux
- Adds regular and honorific subtitle tracks
- Attaches fonts and chapters
- Applies compression to subtitle tracks
- Skips unused fonts
- Outputs the final muxed file
NC Tasks
For NCOP/NCED (creditless openings/endings):
merge
- Combines NC-specific subtitle files
cleanncmerge
- Removes unnecessary lines from NC subtitles
chapters
- Generates NC-specific chapters
mux
- Creates a separate muxed file for NC videos with appropriate metadata and attachments