Subtitles and closed caption - Plugins 编辑

Just as audio and video may need transcoding for the web, subtitles and closed captions may also need to be converted and made available.

Getting subtitles and closed captions

If you have existing subtitle or closed caption files, you may need to convert them. Original assets may contain broadcast closed captions. You can also create closed captions using tools, some of which can convert Flash closed captions and subtitles for you. Regardless of how you get them, most web use cases require closed captions in the WebVTT format.

Captioning tools:

Playing them back on the web

If you're not using a custom player capable of playing other caption subtitle formats, then you will be using WebVTT. There are two methods for using these files on the web.

Muxing
Use your video editing tool to incorporate the caption as an additional stream in your video containers. Although this method ensures that the captions will always be available to the viewer this will make your video files larger, and less flexible than using <track> (see below).
The <track> element
The <track> element can be included as a child of the video element, which will load your WebVTT file separately and allow you to display it when needed, alter the positioning and styling of each track, etc.

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:109 次

字数:2793

最后编辑:6 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文