【发布时间】:2016-06-21 08:31:11
【问题描述】:
我正在尝试为直播实现隐藏式字幕。
视频从源头生成,通过编码器转换成m3u8+ts文件,放入服务器。视频采用 3 比特率进行自适应流式传输。
语音到文本转换器正在为语音提供 XML 文件以及 UTC 时间戳(我可以更改为任何时区),它与生成它的视频流绑定。
是否可以在 WebVTT 文件中使用 XML 数据。在我的理解中,WebVTT 包含带有时间的字幕(采用 hh:mm:sss.mmm 格式),它会在视频中出现。喜欢
WEBVTT
X-TIMESTAMP-MAP=MPEGTS:900000,LOCAL:00:00:10.000
00:00:30.006 --> 00:00:30.706
Instant Folgers!
00:00:30.900 --> 00:00:31.900
Instant Folgers?
00:00:32.646 --> 00:00:33.800
Tastes good as fresh-perked.
00:00:34.446 --> 00:00:36.646
Good as fresh-perked? I'll try it.
00:00:39.446 --> 00:00:41.746
Jean, this coffee is delicious, do you know that?
00:00:41.846 --> 00:00:43.722
Mm mm
00:00:43.822 --> 00:00:45.822
It's not the same kind we've been using, is it?
00:00:45.922 --> 00:00:47.922
Mm mm
00:00:48.022 --> 00:00:49.022
Don't just shake your head.
00:00:49.122 --> 00:00:50.909
Explain why the coffee's so good
00:00:51.009 --> 00:00:53.700
Good taste.
00:00:55.409 --> 00:00:57.370
Tastes good as fresh-perked.
00:00:57.734 --> 00:01:00.134
Instant Folgers.
但在直播中,我们是否需要将日期信息连同它一起传递(hh:mm:sss.mmm),因为只有时间不能达到目的,因为时间可能会重复另一天,导致混乱。
以及视频时间如何与直播中的WebVTT时间信息相关联,因为VOD视频具有恒定的时长。
如果您已经使用任何技术实现了直播的隐藏式字幕,请分享任何信息
【问题讨论】:
标签: video live-streaming http-live-streaming closed-captions webvtt