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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论