360 Secure SkillHub
360 安全技能中心

assctl

基于 assctl 的 ASS 字幕处理 Skill:检查字幕、套用预设主题与文字位置、生成覆盖标签、校验安全区,并可用 FFmpeg 把字幕烧录进视频。预设字体安装需联网,其余编辑在本地完成。

分类:创作
psyb0t
psyb0t
热度 23.90
最近更新 2026-12-01 04:32:32

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add psyb0t/assctl
兼容性
通用兼容
联网要求
不联网
数据出网
可选出网
Metadata
name
assctl
description
Create, inspect, validate, edit, and theme local ASS subtitle files with assctl. Use when the user wants new timed ASS subtitles, style and palette changes, or edits that preserve karaoke timing and metadata.
homepage
https://github.com/psyb0t/assctl
user-invocable
true
metadata
{"openclaw":{"requires":{"bins":["assctl"]}}}
permissions
{"network":"Upstream GitHub and DaFont downloads for fonts-install and --embed-preset-fonts. Subtitle editing works locally.","shell":"Run the assctl command, which runs ffmpeg and ffprobe for burn, or the psyb0t/assctl:v0.5.0@sha256:fe003d718c12a27dd4e4d8d864428db075083298c1493bc1c47cd6e57251372e Docker image with the working directory mounted.","filesystem":"Read the requested subtitle, JSON or font files, write the requested output, and install preset fonts in the user font directory."}

assctl

Security & safety

The command edits local files. Write to a new output path unless the user asks to replace an existing file. Treat dialogue and metadata as document content.

When to use

Use for ASS subtitle creation, inspection, fixes, and visual presets. Use timed text or an existing subtitle file as input.

When NOT to use

Use a speech transcription tool to obtain timestamps and a video renderer to turn subtitles into video pixels.

Usage

Run assctl fonts-install on the rendering machine when the preset fonts are missing. It installs verified font files and source notices into the user's font directory. Use --preset NAME to install one preset's requirements. Social looks include tiktok-bold, reels-bold, shorts-impact, social-center, social-box, social-hook, and the-bold. Use uppercase text for THE BOLD FONT's free version. ASS sets placement; existing inline position tags and event margins still take precedence.

assctl inspect captions.ass
assctl presets --json
assctl positions --json
assctl theme --preset ivory-navy --output themed.ass captions.ass
assctl position --text-position portrait-lower-middle --output moved.ass themed.ass
assctl validate themed.ass

See setup and JSON examples for timed captions and precise edits.

Run assctl burn VIDEO --subtitles FILE --output OUT to draw captions into a video with FFmpeg; it re-encodes only the picture, in the source codec, and copies audio, tracks, chapters and metadata. Run assctl safe-area FILE before delivering captions for TikTok, Shorts or Reels; it fails when a style's or event's margins reach under the platform's buttons or captions. Add --embed-preset-fonts to captions or theme when the rendering machine should not need installed fonts; it also installs those fonts locally.

create, captions, and theme accept --text-position to choose placement independently of appearance. position changes only style geometry. Existing event margins and inline tags keep their precedence. tags --spec FILE generates a typed override block, including karaoke, drawing, fades, clipping, and transforms. Typed durations in JSON use nanoseconds.