movis.subtitle.write_srt_file#

movis.subtitle.write_srt_file(start_times: Sequence[float], end_times: Sequence[float], texts: Sequence[str], dst_srt_file: str | PathLike) None[source]#

Writes an SRT (SubRip Text) subtitle file.

Args:
start_times:

A list of start times in seconds for each subtitle entry.

end_times:

A list of end times in seconds for each subtitle entry.

texts:

A list of text strings corresponding to each subtitle entry.

dst_srt_file:

The destination path for the generated SRT file.