Skip to content

dvdmrn/STL-to-SRT-conversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STL-to-SRT-conversion

Converts an .stl closed captioning file to .srt format

This hasn't been robustly tested, let me know if there are any errors!

How to use:

If you already have Python installed:

  • Open a terminal window, navigate to where STLconvert.py is located, and type python STLconvert.py
  • Enter the filepath of your .stl file. For example, if it's named 'myClosedCaptioningFile.stl', and if it is located in the same folder as STLconvert.py, you can just type myClosedCaptioningFile.stl
  • STLconvert will output your file in the same folder that contains it.

If you are on Windows and do not want to install Python:

  • Go into windows_exe>dist and open STLconvert.exe
  • Enter the filepath to your .stl file. For example, if it is located in the same folder that STLconvert.exe is located, you can just type myClosedCaptioningFile.stl. If you like to keep everything somewhere specific, you can type: C:\<THE_PATH_TO_YOUR_FILE>\myClosedCaptioningFile.stl
  • STLconvert.exe will output your new .srt file in the same folder that your old .stl file is living in, and will name it <NAME_OF_YOUR_OLD_STL_FILE>_converted.srt

Troubleshooting:

  • Make sure to include the file extension when inputting the file path.
  • If you run into any problems be sure to add them onto the issues tab so we can list them here, and solve it! Of particular concern is the validity of the translation between .stl and .srt files since I have not accounted for formatting or anything beyond basic timecode and dialogue markup. This script also assumes that your .stl file is not compressed in any way (i.e. whitespace and line breaks matter).

About

Converts an .stl closed captioning file to .srt format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages