Sub Styles

Yukine provides a way to process subtitles. This is done by using the SubProcessor class, or by providing a muxtools.SubFile object to the Source object.

Applying Styles Example
vid1 = Source(
    video_input=input_file,
    subs=[
        SetSubtitleTrack(
            file=input_file,
            style_methods=SubProcessor.style(GJM_GANDHI_PRESET), # (1)!
        ),
    ],
)
  1. Optional Option Options

    style_methods can be a list of SubProcessor objects, a single SubProcessor object, or a muxtools.SubFile object,

Applying muxtools.subtitle.Styles isn’t the thing you can change, SubProcessor has a select few functions from muxtools that you can use, I’m too lazy to write docs for all of them, but you can check the muxtools docs and check the available methods in SubProcessor through your editor or by clicking on the class name.

Another thing to note is that since it can take a muxtools.SubFile you can do anything you want to the subtitle file that muxtools allows you to do, you aren’t limited to just using SubProcessor. Though, you will have to tinker around as you won’t be able to use matching with it as providing a muxtools.SubFile to style_methods will overrule the chosen subtitle track.