Ir para o conteúdo

Subtitle

SubtitleClipMaker

Bases: TextClipMaker

A clip maker for subtitle assets.

The subtitle clip maker performs these transformations:

  1. Execute the text clip maker process
  2. Position the subtitle at the top, bottom, or center of the video
  3. Return the subtitle clip

Note

For further details, refer to the TextClipMaker documentation.

Examples:

# Create a basic subtitle clip
maker = SubtitleClipMaker(duration=5.0, video_resolution=(1920, 1080))
clip = maker.make_clip(subtitle_asset)