ass-restyler

Transform SSA/ASS subtitle styles on the command line

Usage no npm install needed!

<script type="module">
  import assRestyler from 'https://cdn.skypack.dev/ass-restyler';
</script>

README

npm

ass-restyler

Build Status Dependency Status

Transform SSA/ASS subtitle styles on the command line.

Example

Bring Default style to middle of the screen and adjust font size:

$ ass-restyler Default:MarginV=335 Default:Fontsize+=10 input.ass >output.ass

CLI

ass-restyler [clause]... [file]
ass-restyler -i [clause]... [file]...

Reads SSA/ASS subtitles from files or stdin and outputs transformed SSA/ASS. With -i, writes transformed subtitles back to the original files, otherwise writes to stdout.

Clauses:

  • Style:Attribute=Value
  • Style:Attribute+=Value (if it makes sense for the attribute)
  • Style:Attribute-=Value (if it makes sense for the attribute)
  • Style:Attribute*=Value (if it makes sense for the attribute)

References

Install

npm install ass-restyler -g

License

MIT