The difference in one table
SMPTE timecode tracks numbered video frames, while an SRT timestamp records elapsed clock time.
| SMPTE timecode | SRT timestamp | |
|---|---|---|
| Example | 01:00:10:12 |
01:00:10,480 |
| Last unit | Frames, 0 to the frame rate minus one | Milliseconds, 000 to 999 |
| Separator before the last unit | Colon, or semicolon for drop-frame | Comma |
| Depends on the frame rate | Yes | No |
| Smallest step | One frame (40 ms at 25 fps) | One millisecond |
| Where it is used | Edit timelines, camera files, logging sheets | Subtitle and caption files |
| Typical first value | 01:00:00:00 for a sequence | 00:00:00,000 |
Why does SRT write milliseconds?
An SRT file has no frame field and does not store a frame rate, so a cue time is a duration in milliseconds and does not depend on the frame rate of the video it is shown with. The Library of Congress format description defines the format as hours:minutes:seconds,milliseconds. A cue contains a number, a line with “start –> end”, the text, and a blank line. WebVTT uses a period instead of the comma (see SRT vs VTT).
How do I convert frames to milliseconds and back?
To convert an SMPTE timecode to an SRT timestamp:
- Separate the hours, minutes, seconds, and frames from the label.
- Convert the frame number to milliseconds: frames / frame rate x 1000.
- Add the milliseconds to the whole seconds.
| Frame 12 at | Milliseconds |
|---|---|
| 24 fps | 500 |
| 25 fps | 480 |
| 30 fps | 400 |
| 29.97 fps | 400 (400.4) |
The SMPTE timecode 01:00:10:12 at 25 fps is 1 hour and 10 seconds plus 12 frames. At 25 fps, 12 frames equal 0.48 seconds, which gives the SRT time 01:00:10,480. At 24 fps, that same label 01:00:10:12 equals 01:00:10,500.
To convert back, calculate frame = floor(fraction of a second x frame rate). The SRT time 00:00:05,500 at 25 fps is 5 seconds plus 0.5 seconds. Multiplying 0.5 by 25 gives 12.5, which falls inside frame 12 (frame 12 covers 480 ms to 520 ms), so the SMPTE label is 00:00:05:12.
What happens to the frames in an SRT file?
An SRT file does not store a frame number or a frame rate. A millisecond is shorter than a frame at common rates (40 ms at 25 fps, about 41.7 ms at 24 fps, and about 33.4 ms at 29.97 and 30 fps). The program reading the file converts the millisecond time back into frames using its own project frame rate.
- Drop-frame labels cannot be written in an SRT file, because the format lacks a semicolon and a frame field.
- Drop-frame timecode exists only at 29.97 fps and skips frame numbers 00 and 01 at the start of every minute except every tenth minute, while non-drop 29.97 timecode runs about 3.6 seconds behind the clock per hour.
- The file does not specify which frame number a timestamp targets.
Start timecode and the offset
Edit sequences usually start at 01:00:00:00, but a transcript or SRT file made from a recording normally starts at zero. To align the two, add the timeline start timecode to the SRT cue times. In DaVinci Resolve, the option Insert Selected Subtitles to Timeline Using Timecode aligns subtitles with the timeline timecode (see import an SRT file into DaVinci Resolve). In Final Cut Pro, Relative to Timeline adds the project start time to each caption start time (see import an SRT file into Final Cut Pro). For Premiere Pro, see import an SRT file into Premiere Pro.
Making both from one recording
The time coded transcript generator lets you choose SMPTE HH:MM:SS:FF transcript labels at 23.976, 24, 25, 29.97 (drop-frame or non-drop), or 30 fps, and set a start timecode. The SRT download has no frames, and its cue times are the recording time plus the start timecode written as HH:MM:SS,mmm. Frame labels in the transcript come from word times given by the speech model and can be off by a fraction of a second. The start timecode and SMPTE frame format come with a minute pack, while the free result provides [HH:MM:SS] per sentence with TXT and SRT downloads. Read more about SMPTE timecode transcripts that match your edit. If you only need the subtitle file, the SRT generator page covers the SRT download.