Module fastedit.Overlays

Classes

class Subtitles (subtitles: str)

Initialize subtitles.

Parameters

subtitles : str
Path to the file containing the subtitles.

Methods

def getPath(self)

Getting subtitles path.

Returns

str
Path to the subtitles file.
class Text (text: str, x, y, start, end, fontSize: int = 18, fontColor: str = 'white')

Initialize text.

Parameters

text : str
String to display.
x : int or str
x-axis of the text.
y : int or str
y-axis of the text.
start : int or float
Start timestamp to start displaying the text.
end : int or float
End timestamp to end displaying the text.
fontSize : int, default=18
Size of the text's font.
fontColor : str, default="white"
Color of the text's font.

Methods

def getText(self)

Getting text with parameters.

Returns

dict
Dictionnary containing the text and its parameters.