golang library to read and write various subtitle formats
Clone or download
wargarblgarbl
wargarblgarbl fixing ttml
Latest commit f890984 Dec 3, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci 0ci update Jan 29, 2018
ass Fixing more issues Oct 18, 2018
mdvd update format script, update struct docs Sep 20, 2017
scripts ttml & ufeff fix Oct 17, 2018
srt Fixing more issues Oct 18, 2018
testfiles Fixing more issues Oct 18, 2018
ttml fixing ttml Dec 4, 2018
wvtt code cleanup Aug 27, 2017
LICENSE Fixing repo structure Aug 20, 2017
README.md Update README.md Oct 10, 2018
tf.sh 0ci update Jan 29, 2018

README.md

libgosubs

Golang library to read and write subtitles in the following formats

  • Advanced SubStation Alpha v4
  • SRT
  • TTML v1.0 - This is based on the spec provided by Netflix in their documentation
  • WebVTT experimental support
  • MicroDVD experimental support

notes

TTML is somewhat complex to implement in Go due to the way that Go handles XML namespaces. Until this issue is fixed, two different structs for reading and writing, as well as a lengthy conversion function will probably be necessary. See the test file for a sample (and probably poor) implementation.

todo

  • Clean up the ASSv4 format, specifically do something about the way headers are handled

updates

  • Experimental MicroDVD format support added

libgosubs project garbage

Documentation

Available via Godoc

Godoc Format
GoDoc ASS
GoDoc SRT
GoDoc TTML
GoDoc WVTT
GoDoc MicroDVD

Test Coverage

Coverage Format
gocover.io go ASS
gocover.io go SRT
gocover.io go TTML
gocover.io go WVTT
gocover.io go MDVD

Other

Go Report Card