我成功地提取了608个标题,并在我的Mac上用brew Installcc提取器v0.88生成了一个webvtt文件。
这是命令
ccextractor file.mp4 -out=webvtt
我得到一个填充的webvtt文件,其中包含样式、时间戳和封闭的标题。
以下是cc提取器的编译说明
但是,当我brew安装最新版本的.094时,我会看到下面的错误
[CEA-708] dtvcc_handle_G0: Window has to be defined first
[CEA-708] dtvcc_handle_CWx_SetCurrentWindow: window [0] is not
我在看https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API。 相关的示例如下: WEBVTT - This file has cues.
14
00:01:14.815 --> 00:01:18.114
- What?
- Where are we now?
15
00:01:18.171 --> 00:01:20.991
- This is big bat country.
16
00:01:21.058 --> 00:01:23.868
- [ Bats Screeching ]
- They wo
我是JS和Node.js的新手,我正在开发一个个人项目,使用Azure Translator API翻译webVTT字幕文件--为此,我使用节点- webVTT包解析/编译webVTT文件。解析操作提供了一个JSON对象,该对象包含数千个线索数组,如下所示:
[
{
"identifier":"",
"start":60,
"end":61,
"text":"My text to be translated #1",
通过使用sinatra和我想要生成一个webVTT,它考虑了空格,以生成一个相同的返回文件,如下所示:
WEBVTT
1
00:00:22.865 --> 00:00:30.413
Now we are gonna focus on the hihats, and this is where you actually get to hold these sticks. And
2
00:00:30.416 --> 00:00:37.745
I play matched grip which is where your both the sticks are held in th
如何将WEBVTT字幕格式转换为SRT格式
WEBVTT文件是这样的
WEBVTT
1
00:08.000 --> 00:12.000
Our remote engineer support program
is designed to assist you
00:12.000 --> 00:15.000
in solving operational
or maintenance problems
SRT格式
1
00:00:00,000 --> 00:00:18,032
Come on over in my direction
So thankful for th
我有一根这样的绳子
var subtitle = `WEBVTT
00:01.000 --> 00:04.000
- Never drink liquid nitrogen.
00:05.000 --> 00:09.000
- It will perforate your stomach.
- You could die.`
现在,我想动态地将它从这个变量加载到VideoJS,而不需要请求到WebVTT文件。
怎么做,还是不可能?谢谢