问题
video.js says that there is an error while parsing the .srt subtitle file, here's the content:
1
00:01:14,909 --> 00:01:16,999
WOMAN 1:
Well, my dad was a farmer.
2
00:01:18,162 --> 00:01:20,622
Um, like everybody else back then.
3
00:01:22,750 --> 00:01:24,920
Of course, he didn't start that way.
4
00:01:25,503 --> 00:01:27,463
[DISTANT RUMBLING]
5
00:01:30,008 --> 00:01:31,048
[ALARM BEEPING]
6
00:01:31,217 --> 00:01:33,137
MAN [OVER RADIO]:
Computer says you're too tight.
7
00:01:33,303 --> 00:01:35,853
- Nah, I got this.
- Crossing the Straights.
8
00:01:38,266 --> 00:01:40,016
- Shutting it down, Cooper.
- No!
9
00:01:41,519 --> 00:01:43,939
- Shutting it all down.
-No, I need power up!
10
00:01:46,691 --> 00:01:47,941
[COOPER YELLS]
11
00:01:48,276 --> 00:01:49,316
GIRL:
Dad?
as far as I know it is valid, is it? or is there a way to check how valid it is? or why video.js says that is has some errors, couldn't find much information about this in google
回答1:
The problem is that it is the SRT format. Video.js supports WebVTT.
来源:https://stackoverflow.com/questions/48477324/what-is-wrong-with-the-subtitles-formatvideo-js