Nuke, the ASS and SRT files are both text file formats that look very much like that.
Unfortunately, neither of them are proper, fully documented standards, although both are supported by VLC to some extent.
ASS appears more flexible, but SRT is much easier to parse so SRT is probably the better option to support initially:
Example SRT file:
1
00:02:17,440 --> 00:02:20,375
Senator, we're making
our final approach into Coruscant.
2
00:02:20,476 --> 00:02:22,501
Very good, Lieutenant.
So, I have a question.
Can this already be done in a script?
- This is the most logical place, as it allows different formats to be easily supported.
- However, it will require a hook when a Video is started allowing access to info about the video (filename, codec, playback size etc), plus hooks per frame of Video playback, and obviously the ability for LUA to read and write to the framebuffer used during playback.
- Do such hooks already exist?
If they don't already exist:
- Are there any other uses for hooks here?
- If there aren't any, then is it better to add the hooks and presume that somebody will come up with other usage, or is it better to add support for SRT directlky into the code?