Skip to content

blutorange/stltools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ebu Stl Subtitle Writer

Purpose

Create subtitles in the stl format. Support colors, boldface, italics, underlining; in order to get formatted subtitles on youtube.

You may also be interested in this project, converting subtitles from stl to srt (SubRipText): Subtitle Converter

Usage

Requires the gem bindata.

$ gem install bindata

Write a simple subtitle file:

EbuStl::StlTools.new do
    subtitle 0,  10, 'Subtitle from 0s to 10s'
    subtitle 10, 20, '<color=red>Red color.</color>'
    output '/path/to/file'
end

More examples at the end of save_stream_stl.rb.

Writes a simple stl file.

$ ruby 'stltools.rb' > ./testfiles/writing_test.stl

Reads a file and pretty prints it in utf-8 to stdout.

$ ruby 'stltools.rb' < ./testfiles/writing_test.stl

If everything works out, you should see something like this:

cli output

License

MIT. Do whatever you want. I reccommend you start by fixing bugs. :w

Reference

Based upon: STL Reference

See here and here for more info on formatting with teletext codes used by the stl format.

About

Creates ebu-stl, that can be used with youtube.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages