simple-yet-powerful-srt-subtitle-parser-cpp
simple-yet-powerful-srt-subtitle-parser-cpp copied to clipboard
A single header simple, powerful and full blown srt subtitle parser written in C++.
When I try to load captions, the parser doesn't even start because of the following error:  Call Stack: ``` > SRTSynchedLyrics.exe!std::vector::operator[](const unsigned __int64 _Pos) Line 1948 C++ SRTSynchedLyrics.exe!SubtitleItem::timeMSec(std::string value)...
Visual Studio creates an assert here when using the attached file [Kings.24Lines.zip](https://github.com/saurabhshri/simple-yet-powerful-srt-subtitle-parser-cpp/files/14143862/Kings.24Lines.zip)
unique_copy (output.begin(), output.end(), std::back_insert_iterator(_justDialogue), [](char a,char b) => a = -30 , b = -128 The value comes in like this, and there's an error here srt 1 00:00:00,000 -->...
Thanks for the nice subtitle parser, it works very well with Open Frameworks. I wonder if it is possible to get line break information (\n), so that I can format...
Not sure, if this is wanted in any case - so maybe it would make sense as an option... But this pull request includes line break information of the subtitle...
I find that subtitle text returned frome getDialogue(0,1,1) does not have speaker names. `inline std::string SubtitleItem::getDialogue(bool keepHTML, bool doNotIgnoreNonDialogues, bool doNotRemoveSpeakerNames) { if(_justDialogue.empty()) extractInfo(keepHTML, doNotIgnoreNonDialogues, doNotRemoveSpeakerNames); return _justDialogue; }` why...
Implement #2
Currently they are just stripped not extracted and saved.