A caption file is only part of the spec.
Start with the required format, then check frame rate, start timecode, line length and reading speed.
Start with the required format: SRT, WebVTT, SCC or a timed-text profile. Then check frame rate, start timecode, line length and reading speed.
Match the cues to the delivery master. A correct file type cannot fix the wrong timing.
Explore captions, or see how a CCSL sits beside the caption file in what a CCSL is.