Repository navigation
Releases
Releases · psyb0t/assctl
v0.4.1
- The agent skill's Docker examples now run with
--network none, because the image already holds every preset font andvalidateandburnneed no network. The skill also warns that the container can write to the mounted directory, so it should hold only the inputs and the output. - Publishing the skill to ClawHub now pins
psyb0t/assctlin the published copy to the release tag and its digest, so the skill names the exact image that release promoted instead of the moving default.
v0.4.0
- Added
burn, which draws an ASS file into a video with FFmpeg. Only the picture is encoded again, with the source's codec, resolution, frame rate, pixel format and color tags at a visually lossless default quality that--crfcan change. Audio, other tracks, cover art, chapters and metadata are copied unchanged. It supports H.264, HEVC, VP9 and AV1 video, turns rotated phone videos upright before drawing, and needsffmpegandffprobeonPATH, which the Docker image includes.
v0.3.0
assctl now ships as the psyb0t/assctl Docker image, with FFmpeg and libass and every built-in preset's font already verified and installed, so it can create, check and burn captions with no Go, no font download and no network.
- Added the
psyb0t/assctlimage forlinux/amd64andlinux/arm64. Default-branch builds publishlatestandsha-<commit>, and each release promotes its commit's image tovX.Y.Zwithout rebuilding. assctl versionprints the version stamped at build time when the binary has no module version, such assha-<commit>in the image.
v0.2.0
Social captions now stay out from under TikTok, YouTube Shorts and Instagram Reels buttons, using each platform's published safe area, and scripts can carry their own fonts. Go callers and existing specs have three breaking changes to migrate:
- The
Effectconstants are removed. libass ignoresBanner,Scroll upandScroll downwithout their numbers, and does not knowScroll,Scroll left,Scroll rightorKaraokeas Effect field values. Build effects withass.BannerEffectandass.ScrollEffect. Karaoke is unaffected: it comes from the\k,\kf,\koand\kttags, whichOverride.KaraokeandOverride.KaraokeStartstill write. Script.Infono longer acceptsKerningorLanguage. SetScript.KerningandScript.Languageinstead.- Styles with a
BorderStyleother than 0, 1, 3 or 4, or anEncodingbelow -1, are now rejected when a script is written. Renderers do not support other values.
Changes:
- Added
safe-areaandsafe-areas, andass.SafeArea,ass.SafeAreas,ass.LookupSafeArea,ass.SafeAreaAll,Document.CheckSafeArea,ass.SafeAreaIssueand theass.Edge*constants. The check reports every style or event whose margins reach under a platform's buttons and captions. The areas come from TikTok's In-Feed safe zone template, Google's vertical video safe zones and Meta's Reels ad guide. - Changed
portrait-center,portrait-lower-middleand the lower and centered social presets to a left margin of 120/1080 and a right margin of 300/1080 of the width, clear of TikTok's button column.social-hookandportrait-upperkeep 18%. AddedPreset.RightMarginRatiofor custom themes. - Added embedded fonts:
Script.Fonts,ass.EmbeddedFont,Document.EmbedFonts,--embed-font FILEoncreate,captionsandtheme, and--embed-preset-fontsoncaptionsandtheme, which installs the preset's fonts and embeds them. FFmpeg renders with them without installed fonts. - Added
ass.BorderStyleEventBox(one box behind the whole event),ass.EncodingAuto(automatic text direction), andScript.KerningandScript.Languageheaders. These are libass extensions. - Added
Override.ResetScalefor\fsc, and aTransformwithEnd0 now runs until the event ends. - Added
ass.EscapeTextandass.ScrollDirection.captionsnow escapes{in plain dialogue, which used to hide the text after it, and still wraps and uppercases text that contains braces. - Changed margins from ratios to round up to a whole pixel instead of down, so positions and social presets stay inside the safe areas at every video size, and numbers in generated scripts to at most three decimals, so a font size prints as
86.4rather than86.39999999999999. - Fixed
PlayResXorPlayResYof zero or less failing themes and positions. They are now treated as missing and inferred, as libass does.
v0.1.0
Adds social caption looks, independent text positions, typed override tags, and a single verified font installer. Go callers have three breaking changes to migrate:
ass.ErrNotFoundandass.ErrInvalidValueare removed. Matchcommerr.ErrNotFoundandcommerr.ErrInvalidValuefromgithub.com/psyb0t/ctxerrors/commerrwitherrors.Isinstead.ass.ErrInvalidDocumentandass.ErrInputTooLargeare unchanged.WrapStyleSmartBottomis now 3 andWrapStyleForcedis 2, the values libass (the subtitle renderer FFmpeg uses) gives them. v0.0.1 had them swapped. Code that uses the constants now gets the wrapping it asked for; code that wrote the numbers needs to swap them.Color.Ptrreturns*Colorinstead of*string, so it fillsOverridecolor fields.
Changes:
- Added seven social caption looks with TikTok Sans Bold, Barlow Condensed ExtraBold, Anton, and THE BOLD FONT's free version, with resolution-scaled horizontal margins and lower-middle, center, and upper-hook placement.
- Added independent text positions, the
positionandpositionscommands, and--text-positionfor creation and theming. - Added
tagsfor typed override generation: karaoke, drawing, vector clips, simple fades, style resets, spacing, and axis-specific borders and shadows. - Added custom Script Info headers and comment event creation. With custom headers,
PlayResXandPlayResYfollow them. Scripts without custom headers are unchanged. Header names containing;are rejected. - Added
ass.DefaultPreset, font family constants for the built-in presets, andAlpha.Ptr. - Changed
fonts-installto use one verified installer for every preset font. It downloads each archive once, fetches only missing or changed files, and checks every file before writing any. On Windows it also registers each font for the current user. - Changed the canvas size used for themes and positions when a script omits
PlayResXorPlayResYto the size libass assumes, so margins land where the renderer draws them. - Rejected duplicate JSON fields, ambiguous ASS Format columns, duplicate header edits, invalid generated UTF-8, negative style geometry, conflicting typed overrides, malformed vector clips, invalid fade timings, and non-finite geometry.
- Fixed partial writes and help-output failures being reported as success.
- Fixed reader and writer disagreeing at the maximum timestamp duration, and rejected timestamp arithmetic overflow.
- Fixed a JSON spec over 64 MiB being reported as an oversized ASS file.
- Added tests that render every preset and position with libass, fuzz tests for the reader and writer, and a font download check that runs with
make test-real. CI fails below 90% test coverage.
v0.0.1
Initial release of the ASS subtitle CLI and Go library.
- Added commands to create, inspect, edit, validate, and theme ASS subtitle scripts.
- Added four presets with fonts, colors, backgrounds, borders, shadows, and placement.
- Preserved untouched text, karaoke tags, and metadata when editing existing ASS files.
- Added Cobra command help, shell completion, and flags before or after the input path.
- Added
fonts-installto verify and install preset fonts in the user's font directory. - Published CLI and Go guides with search and the shared GitHub Pages workflow.
- Added release checks, badges, skill publishing, repository mirrors, and funding links.