devine icon indicating copy to clipboard operation
devine copied to clipboard

Add support for outputting subtitles as SubStationAlpha and SubStationAlphav2 (SSA, ASS) formats

Open rlaphoenix opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. Currently --sub-format has been implemented for all other non-fragmented formats under the Subtitle.Codecs enum, other than SSA and ASS. This is mainly because pycaption does not have a writer for those formats.

Describe the solution you'd like One potential solution is to use the pycaption.DFXPWriter() then pass the now TTML (aka DFXP) subtitle to https://github.com/Paco8/ttml2ssa

Describe alternatives you've considered None.

Additional context If a service provides TTML subtitles then SSA/ASS may be preferred as MKVToolNix doesn't seem to support muxing TTML subtitles (or the spec?). Therefore using --sub-format vtt is currently the only solution to have an MKV while keeping positioning, styling, and all other fancy properties of TTML subtitles. In some communities (namely anime) ASS/SSA is preferred (for whatever reason). Using --sub-format ASS at the moment just logs an error that it is not yet supported and stops devine, unless the subtitle was already ASS.

rlaphoenix avatar Dec 02 '23 21:12 rlaphoenix