5 libsub is a library to read and write subtitles in a variety of formats. It can be used to read subtitles for
6 processing, to write them or to convert between formats.
8 The current version has reasonable support for the following subtitle formats:
9 - Digital Cinema Package (DCP) XML
11 - EBU-STL text and binary
19 shared_ptr<sub::Reader> reader = reader_factory (filename);
20 list<sub::Subtitle> subs = collect<list<sub::Subtitle> > (reader->subtitles ());
24 shared_ptr<sub::Reader> reader = reader_factory (filename);
26 This looks at the extension of `filename' and, if necessary, its header, and guesses
27 what format it is in. Based on the format it creates an appropriate Reader object.
28 This reader object can then return its subtitles using