您可以在集成隐藏字幕MP3,WAV,OGG,F4V和flv的音频对象。该字幕文本根据字幕文件中指定的细节音频中显示。
|
该方案支持可扩展标记语言(XML),这是Flash视频的字幕格式。
从三个支持格式中进行选择:
网络视频文本轨道(WebVTT插入) -字幕格式HTML媒体播放器(推荐)
SubRip字幕(SRT) -用于YouTube和Facebook字幕流行的标准
可扩展标记语言(XML) -对于Flash视频的字幕格式
下面提供各种格式的例子。
此外,您可以自定义标题样式,包括字体和字体突出显示。下面字体属性可闭合字幕文件内进行配置:
Font属性 |
描述 |
例 |
颜色 |
一般的颜色名称或一个特定的十六进制颜色值。 |
红色或#FFCC00 |
字体系列 |
已安装的字体。 |
宋体 |
字体大小 |
在像素的字体大小。默认字体大小为14。 |
12 |
字体样式 |
字体风格。默认值是正常的。 |
斜体 |
字体重量 |
中字体的粗细。默认值是正常的。 |
胆大 |
文本对齐 | 标题文本无论是左,右,或居中对齐。默认为中心。 | 中央 |
文字修饰 |
增强的字体突出显示。默认是没有的。 |
强调 |
创建字幕文件时,请遵循以下规则:
指定开始和结束时间为每个标题集。时间的格式为:小时:分钟:秒:百分之一秒(HH:MM:SS:HHH)
指定每个字幕组的文本。如果需要,文本可以出现在多条线路。
可选,定制使用的字体样式<SPAN>标记。
Save the file as a plain text file with the desired name and change the file extension to the appropriate captioning file format (.vtt, .srt, or .xml).
Sample files are provided to help you quickly get started creating and specifying the closed captioning file.
To create and specify a closed-captioning file:
Do one of the following:
In the Title Explorer, double-click the graphic of the audio object.
In the Title Explorer, right-click the graphic of the audio object and select Properties.
In the work area, double-click the audio object.
In the work area, right-click the audio object and select Properties.
On the Properties ribbon, click Add Captions in the Playback Options group. The Add Captions window opens.
For an existing captioning file, use the Caption File pull-down list to navigate and select the captioning file. Click to edit the file if necessary. To view a sample format file that you can edit and save to your title, click one of the three file formats under Sample caption file formats. The WebVTT format (.vtt) is recommended. Click Save to Title when you are done editing the captioning file.
Click OK.
Examples
WebVTT (Recommended)
00:00:00.000 --> 00:00:00.000
<span style="text-align:center"></span>
00:00:08.000 --> 00:00:10.000
VTT Format: This line should appear at 8 seconds
00:00:10.500 --> 00:00:12.500
These two lines should
appear at 10.5 seconds
00:00:17.000 --> 00:00:20.000
These two lines should appear
with styling at <span style="color: #FF0000;font-weight: bold;">17 seconds</span>!
SRT
00:00:00.000 --> 00:00:00.000
|
XML
<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/2006/10/ttaf1">
<div>
<p begin="00:00:00" end="00:00:00"> <span style="text-align:center"></span> <p begin="00:00:08" end="00:00:10">
XML Format: This line should appear at 8 seconds
</p> <p begin="00:00:10.5" end="00:00:12.5">
These two lines should appear at 10.5 seconds
</p> <p begin="00:00:17" end="00:00:20">
These two lines should appear
with styling at <span style="color: #FF0000;font-weight: bold;">17 seconds</span>! </p>
</div>
</tt>
技术支持 | 关于 Trivantis
© 版权 Trivantis 2017