moviepy.video.tools.subtitles.file_to_subtitles#

moviepy.video.tools.subtitles.file_to_subtitles(filename, encoding=None)[source]#

Converts a srt file into subtitles.

The returned list is of the form [((start_time,end_time),'some text'),...] and can be fed to SubtitlesClip.

Only works for '.srt' format for the moment.