libgosubs

October 10, 2018 ยท View on GitHub

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

GodocFormat
GoDocASS
GoDocSRT
GoDocTTML
GoDocWVTT
GoDocMicroDVD

Test Coverage

CoverageFormat
gocover.io goASS
gocover.io goSRT
gocover.io goTTML
gocover.io goWVTT
gocover.io goMDVD

Other

Go Report Card