Skip to content

Vinicius-8/Strusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strusion

This python tool provides a subtitle' handler, that allows you to merge subtitles and change some features, like position, color and so on.

Usage

Basic merging

The basic usage merge two subtitles and shows them at the same time on screen, as the example below:

Portuguese and english subtitles

Portuguese and english subtitles

The above subtitle position is set by default

For that use:

$ python strusion.py -S portuguese_sub.srt english_sub.srt -o merged_sub.srt

Basic merging and set position

Add -x -y in the command:

$ python strusion.py -S portuguese_sub.srt english_sub.srt -o merged_sub.srt -x 192 -y 48

Note that changes only the above subtitle

Set subtitle position

Add -x -y in the command:

$ python strusion.py -s movie_sub.srt -o movie_sub.mod.srt -x 192 -y 48

Note the use of -s for handling just one subtitle

Sync subtitles

Add -d in the command, then put the millisecs and subtitle:

$ python strusion.py -d 2500 unsynchronized_sub.srt -o synchronized_sub.srt