共计 15992 个字符,预计需要花费 40 分钟才能阅读完成。
本文为阿里云智能媒体服务 IMS「云端智能剪辑」实际指南第四期,通过使用官网提供的花字模版或自定义设计花字,实现丰盛、精美的花字特效视频剪辑。
昱尘|作者
在视频前期剪辑中,“花字”是一种特地的存在。
通过应用适宜视频的花字,不仅能够丰盛视频内容,还能够让视频传播的信息更加容易让用户承受,加深观众对于视频内容的印象。
对于做短视频营销场景的客户来说,花字更是起着至关重要的作用,不仅能够加强视频传播信息的能力,还能够减少视频的成果精美度。
视频中罕用的花字,个别会蕴含几个因素:文字色彩、纹理、字体、多层描边、多层暗影以及背景及发光成果 等。
本文次要介绍如何通过应用智能媒体服务 IMS「云端智能剪辑」减少花字,将从「如何应用官网花字」以及「如何自定义设计花字」两方面来介绍弱小的花字能力。本文成果实现较为简单,将视频地址换成您本人的 oss 地址,即能够实现示例成果。
01 原始字幕
咱们参考市面上比拟支流的营销类短视频剪辑模式,以上面这个流程作为 demo 展现的模版。
- 应用一张图片作为视频封面,减少主题目、副标题以及形容文字;
- 应用三个横屏拍摄的视频作为主体内容,输入为竖屏视频(不便手机观看),高低减少背景含糊成果;
- 每一个视频或者图片,对应一段 TTS 口播,让视频或者图片与口播对齐,保障视频的流畅性;
- TTS 口播同时搭配 ASR 字幕。
依照下面这个模版,咱们先看一个不应用任何简单字幕成果剪辑成的视频成果:
https://v.qq.com/x/page/p3502q8vcef.html
通过观看视频发现,该视频中的字幕存在一些问题:
l 视频背景比较复杂,在字幕色彩和视频底色比拟靠近时,会导致字幕不够清晰;
l 字幕比拟单调乏味,视频内容不够粗劣,容易让用户产生视觉疲劳,升高流传力;
l 字幕成果不够突出亮眼,无奈一眼就让用户把握视频要害信息。
原始字幕 Timeline:
{
"VideoTracks": [{
"VideoTrackClips": [{
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg",
"Width": 1,
"Height": 1,
"Type": "Image",
"AdaptMode": "Cover",
"ReferenceClipId": "speech_1",
"Effects": [{
"Type": "Text",
"Font": "HappyZcool-2016",
"Content": "敌人聚餐",
"Y": 0.5,
"FontSize": 80,
"Angle": "30",
"Alignment": "TopCenter",
"FontColor": "#ffffff"
},
{
"Type": "Text",
"Font": "HappyZcool-2016",
"Content": "同学聚会",
"Y": 0.6,
"FontSize": 80,
"Angle": "30",
"Alignment": "TopCenter",
"FontColor": "#ffffff"
},
{
"Type": "Text",
"Font": "HappyZcool-2016",
"Content": "家人团圆",
"Y": 0.7,
"FontSize": 80,
"Angle": "30",
"Alignment": "TopCenter",
"FontColor": "#ffffff"
},
{
"Type": "Text",
"Font": "HappyZcool-2016",
"Content": "共事团建",
"Y": 0.8,
"FontSize": 80,
"Angle": "30",
"Alignment": "TopCenter",
"FontColor": "#ffffff"
}
]
},
{
"Comment": "火锅",
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/%E7%81%AB%E9%94%85.mp4",
"Y": 0.3,
"Width": 1080,
"Height": 608,
"AdaptMode": "Cover",
"Effects": [{
"Type": "Background",
"SubType": "Blur",
"Radius": 0.1
}],
"ReferenceClipId": "speech_2"
},
{
"Comment": "烤羊肉串",
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/%E7%83%A4%E7%BE%8A%E8%82%89%E4%B8%B2.mp4",
"Y": 0.3,
"Width": 1080,
"Height": 608,
"AdaptMode": "Cover",
"Effects": [{
"Type": "Background",
"SubType": "Blur",
"Radius": 0.1
}],
"ReferenceClipId": "speech_3"
},
{
"Comment": "大鱿鱼",
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/%E7%83%A4%E9%B1%BF%E9%B1%BC.mp4",
"Y": 0.3,
"Width": 1080,
"Height": 608,
"AdaptMode": "Cover",
"Effects": [{
"Type": "Background",
"SubType": "Blur",
"Radius": 0.1
}],
"ReferenceClipId": "speech_4"
},
{
"Comment": "陈腐蔬菜",
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/%E8%94%AC%E8%8F%9C.mp4",
"Y": 0.3,
"Width": 1080,
"Height": 608,
"AdaptMode": "Cover",
"Effects": [{
"Type": "Background",
"SubType": "Blur",
"Radius": 0.1
}],
"ReferenceClipId": "speech_5"
}
]
}],
"AudioTracks": [{
"AudioTrackClips": [{
"Type": "AI_TTS",
"Content": "周末就来阿云美食城吧",
"Voice": "zhimi_emo",
"ClipId": "speech_1"
},
{
"Type": "AI_TTS",
"Content": "这里有入口醇香的老北京火锅!",
"Voice": "zhimi_emo",
"Effects": [{
"Type": "AI_ASR",
"Font": "HappyZcool-2016",
"Alignment": "TopCenter",
"Y": 0.65,
"FontSize": 80,
"FontColor": "#ffffff"
}],
"ClipId": "speech_2"
},
{
"Type": "AI_TTS",
"Content": "这里有香喷喷的烤羊肉串!",
"Voice": "zhimi_emo",
"Effects": [{
"Type": "AI_ASR",
"Font": "HappyZcool-2016",
"Alignment": "TopCenter",
"Y": 0.65,
"FontSize": 80,
"FontColor": "#ffffff"
}],
"ClipId": "speech_3"
},
{
"Type": "AI_TTS",
"Content": "这里有无比鲜嫩的大鱿鱼!",
"Voice": "zhimi_emo",
"Effects": [{
"Type": "AI_ASR",
"Font": "HappyZcool-2016",
"Alignment": "TopCenter",
"Y": 0.65,
"FontSize": 80,
"FontColor": "#ffffff"
}],
"ClipId": "speech_4"
},
{
"Type": "AI_TTS",
"Content": "还有各种陈腐蔬菜等你来品味~",
"Voice": "zhimi_emo",
"Effects": [{
"Type": "AI_ASR",
"Font": "HappyZcool-2016",
"Alignment": "TopCenter",
"Y": 0.65,
"FontSize": 80,
"FontColor": "#ffffff"
}],
"ClipId": "speech_5"
}
]
}],
"SubtitleTracks": [{
"SubtitleTrackClips": [{
"Comment": "主题目",
"Type": "Text",
"Font": "HappyZcool-2016",
"Y": 0.05,
"FontSize": 200,
"Content": "阿云美食城",
"FontColor": "#CFFAFF",
"SizeRequestType": "Nominal",
"AdaptMode": "AutoScale",
"Spacing": 3,
"Alignment": "TopCenter"
},
{
"Comment": "副标题",
"Type": "Text",
"Font": "HappyZcool-2016",
"Y": 0.2,
"FontSize": 100,
"Content": "味蕾盛宴",
"FontColor": "#CFFAFF",
"SizeRequestType": "Nominal",
"AdaptMode": "AutoScale",
"Spacing": 3,
"Alignment": "TopCenter"
}
]
}]
}
02 32 套官网花字
为了解决上述原始字幕文字不显著以及成果比拟差等一些问题,咱们能够用 IMS 中已集成的官网花字来丰盛视频内容。阿里云智能媒体服务新增 32 套高级花字。
花字成果示例:
https://help.aliyun.com/document_detail/449561.html
能够简略设置花字 Id 来一键式实现多种花字成果。应用官网花字对视频内容进行丰盛的成果如下:
https://v.qq.com/x/page/r3502mwbj8h.html
比照没有配置花字的原始字幕版本的成果,能够发现:应用官网花字制作的营销短视频,不再会因为视频底色变动而让人看不清字幕,从而更加能抓住观众的注意力,加深印象。
设置花字的形式也非常简便,间接设置一个花字 Id 即可,比方 ”EffectColorStyle”: “CS0002-000011″,如果须要批改文字字体,能够应用自定义字体性能或者应用咱们的官网内置字体库。
官网花字 Timeline:
{
"VideoTracks": [{
"VideoTrackClips": [{
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg",
"Width": 1,
"Height": 1,
"Type": "Image",
"AdaptMode": "Cover",
"ReferenceClipId": "speech_1",
"Effects": [{
"Type": "Text",
"Content": "敌人聚餐",
"Y": 0.5,
"FontSize": 80,
"Angle": "30",
"Alignment": "TopCenter",
"EffectColorStyle": "CS0001-000015"
},
{
"Type": "Text",
"Content": "同学聚会",
"Y": 0.6,
"FontSize": 80,
"Angle": "30",
"Alignment": "TopCenter",
"EffectColorStyle": "CS0001-000015"
},
{
"Type": "Text",
"Content": "家人团圆",
"Y": 0.7,
"FontSize": 80,
"Angle": "30",
"Alignment": "TopCenter",
"EffectColorStyle": "CS0001-000015"
},
{
"Type": "Text",
"Content": "共事团建",
"Y": 0.8,
"FontSize": 80,
"Angle": "30",
"Alignment": "TopCenter",
"EffectColorStyle": "CS0001-000015"
}
]
},
{
"Comment": "火锅",
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/%E7%81%AB%E9%94%85.mp4",
"Y": 0.3,
"Width": 1080,
"Height": 608,
"AdaptMode": "Cover",
"Effects": [{
"Type": "Background",
"SubType": "Blur",
"Radius": 0.1
}],
"ReferenceClipId": "speech_2"
},
{
"Comment": "烤羊肉串",
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/%E7%83%A4%E7%BE%8A%E8%82%89%E4%B8%B2.mp4",
"Y": 0.3,
"Width": 1080,
"Height": 608,
"AdaptMode": "Cover",
"Effects": [{
"Type": "Background",
"SubType": "Blur",
"Radius": 0.1
}],
"ReferenceClipId": "speech_3"
},
{
"Comment": "大鱿鱼",
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/%E7%83%A4%E9%B1%BF%E9%B1%BC.mp4",
"Y": 0.3,
"Width": 1080,
"Height": 608,
"AdaptMode": "Cover",
"Effects": [{
"Type": "Background",
"SubType": "Blur",
"Radius": 0.1
}],
"ReferenceClipId": "speech_4"
},
{
"Comment": "陈腐蔬菜",
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/%E8%94%AC%E8%8F%9C.mp4",
"Y": 0.3,
"Width": 1080,
"Height": 608,
"AdaptMode": "Cover",
"Effects": [{
"Type": "Background",
"SubType": "Blur",
"Radius": 0.1
}],
"ReferenceClipId": "speech_5"
}
]
}],
"AudioTracks": [{
"AudioTrackClips": [{
"Type": "AI_TTS",
"Content": "周末就来阿云美食城吧",
"Voice": "zhimi_emo",
"ClipId": "speech_1"
},
{
"Type": "AI_TTS",
"Content": "这里有入口醇香的老北京火锅!",
"Voice": "zhimi_emo",
"Effects": [{
"Type": "AI_ASR",
"Font": "KaiTi",
"Spacing": 2,
"Alignment": "TopCenter",
"Y": 0.65,
"FontSize": 70,
"AdaptMode": "AutoWrap",
"EffectColorStyle": "CS0001-000014"
}],
"ClipId": "speech_2"
},
{
"Type": "AI_TTS",
"Content": "这里有香喷喷的烤羊肉串!",
"Voice": "zhimi_emo",
"Effects": [{
"Type": "AI_ASR",
"Font": "KaiTi",
"Spacing": 2,
"Alignment": "TopCenter",
"Y": 0.65,
"FontSize": 70,
"AdaptMode": "AutoWrap",
"EffectColorStyle": "CS0001-000014"
}],
"ClipId": "speech_3"
},
{
"Type": "AI_TTS",
"Content": "这里有无比鲜嫩的大鱿鱼!",
"Voice": "zhimi_emo",
"Effects": [{
"Type": "AI_ASR",
"Font": "KaiTi",
"Spacing": 2,
"Alignment": "TopCenter",
"Y": 0.65,
"FontSize": 70,
"AdaptMode": "AutoWrap",
"EffectColorStyle": "CS0001-000014"
}],
"ClipId": "speech_4"
},
{
"Type": "AI_TTS",
"Content": "还有各种陈腐蔬菜等你来品味~",
"Voice": "zhimi_emo",
"Effects": [{
"Type": "AI_ASR",
"Font": "KaiTi",
"Spacing": 2,
"Alignment": "TopCenter",
"Y": 0.65,
"FontSize": 70,
"AdaptMode": "AutoWrap",
"EffectColorStyle": "CS0001-000014"
}],
"ClipId": "speech_5"
}
]
}],
"SubtitleTracks": [{
"SubtitleTrackClips": [{
"Comment": "主题目",
"Type": "Text",
"Y": 0.05,
"FontSize": 200,
"Content": "阿云美食城",
"FontColor": "#CFFAFF",
"SizeRequestType": "Nominal",
"AdaptMode": "AutoScale",
"Spacing": 2,
"Alignment": "TopCenter",
"EffectColorStyle": "CS0002-000003"
},
{
"Comment": "副标题",
"Type": "Text",
"Y": 0.2,
"FontSize": 100,
"Content": "味蕾盛宴",
"FontColor": "#CFFAFF",
"SizeRequestType": "Nominal",
"AdaptMode": "AutoScale",
"Spacing": 2,
"Alignment": "TopCenter",
"EffectColorStyle": "CS0002-000011"
}
]
}]
}
03 自定义设计花字
当官网花字仍无奈满足视频制作成果的需要,咱们也反对自定义花字性能。您能够灵便组织多层描边成果,多层暗影成果,咱们也反对设置高斯含糊,实现字幕发光成果。
在具体 Timeline 设置前,咱们先来看一下自定义设计花字的成片成果。
https://v.qq.com/x/page/h3502f25vuk.html
自定义花字的 API 协定:
https://help.aliyun.com/document_detail/198823.html
首先,咱们来看一个多层描边的花字示例。咱们以官网花字 CS0001-000016 这个成果为例。
CS0001-000016 花字
仔细观察,能够晓得这个花字是通过从外到内叠加色彩逐步变深的多层描边来实现的,通过在 SubtitleEffects 中设置多层色彩逐步变深的描边成果即可实现这个花字。
Color 字段为 RGB 色彩值,Type 设置为 Outline 示意描边,Bord、Shift 设置成 0 - 1 的小数时,示意绝对字体大小的值,理论渲染时会乘以 FontSize 值,这样即可实现不同字体大小下,花字成果根本保持一致。
SubtitleEffects 是一个 JSON 数组,越靠前的在渲染时会越在底层,所以底层描边 Bord 须要比下层描边 Bord 设置的稍大一些,否则底层的描边会被下层的描边遮住,从而失去成果。
该花字的文字色彩为红色,设置字体为站酷高兴体,据此能够设置字幕轨道参数为如下。
CS0001-000016 花字 SubtitleTrackClips 参数解析:
{
"Type": "Text",
"FontSize": 130,
"Content": "阿里云剪辑",
"Spacing": 2,
"Alignment": "TopCenter",
"Font": "HappyZcool-2016",
"FontColor": "#ffffff",
"SubtitleEffects": [{
"Color": "#c6f295",
"Type": "Outline",
"Blur": 0.0,
"XBord": 0.16,
"YBord": 0.16,
"XShift": 0.0,
"YShift": 0.0,
"Opacity": 1.0
}, {
"Color": "#99dda3",
"Type": "Outline",
"Blur": 0.0,
"XBord": 0.12,
"YBord": 0.12,
"XShift": 0.0,
"YShift": 0.0,
"Opacity": 1.0
}, {
"Color": "#66c19c",
"Type": "Outline",
"Blur": 0.0,
"XBord": 0.08,
"YBord": 0.08,
"XShift": 0.0,
"YShift": 0.0,
"Opacity": 1.0
}, {
"Color": "#138b8a",
"Type": "Outline",
"Blur": 0.0,
"XBord": 0.04,
"YBord": 0.04,
"XShift": 0.0,
"YShift": 0.0,
"Opacity": 1.0
}]
}
咱们再来看如何自定义 实现字幕发光成果。
CS0002-000015 花字
咱们以 CS0002-000015 这个花字成果为例。认真看,这个花字整体是由两局部组成的,一部分为底部的文字投影,一部分为下层的文字主体。
再细细察看,能够发现,文字投影局部最外是由一层淡蓝色发光成果形成,两头是一层描边,描边两头蕴含深蓝色的文字实体。发光的成果咱们是通过给暗影减少含糊成果来实现。
下层文字主体局部,是由一个层描边蕴含文字主体的轮廓形成,文字主体局部有半透明成果,所以该花字成果解析的字幕轨道参数如下:
CS0002-000015 花字 SubtitleTrackClips 参数解析:
{
"Type": "Text",
"FontSize": 130,
"Content": "阿里云剪辑",
"Y": 0.3,
"Spacing": 2,
"SizeRequestType": "Nominal",
"Alignment": "TopCenter",
"Font": "HappyZcool-2016",
"FontColor": "#00e6ff",
"FontColorOpacity": 0.5607843137254902,
"SubtitleEffects": [{
"Color": "#1be6ff",
"Type": "Shadow",
"Blur": 0.14,
"XBord": 0.02,
"YBord": 0.02,
"XShift": 0.04,
"YShift": 0.04,
"Opacity": 1.0
},
{
"Color": "#008c9e",
"Type": "Shadow",
"Blur": 0.0,
"XBord": 0.04,
"YBord": 0.04,
"XShift": 0.04,
"YShift": 0.04,
"Opacity": 1.0
},
{
"Color": "#29e6ff",
"Type": "Outline",
"Blur": 0.0,
"XBord": 0.02,
"YBord": 0.02,
"XShift": 0.04,
"YShift": 0.04,
"Opacity": 1.0
},
{
"Color": "#ffffff",
"Type": "Outline",
"Blur": 0.0,
"XBord": 0.02,
"YBord": 0.02,
"XShift": 0.0,
"YShift": 0.0,
"Opacity": 1.0
}
]
}
依照下面这个自定义花字的办法,咱们能够实现任意想实现的花字成果。下面这个探店营销短视频的 timeline 就这样实现进去了。
自定义花字营销视频 Timeline:
{
"VideoTracks": [{
"VideoTrackClips": [{
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg",
"Width": 1,
"Height": 1,
"Type": "Image",
"AdaptMode": "Cover",
"ReferenceClipId": "speech_1",
"Effects": [{
"Type": "Text",
"Content": "敌人聚餐",
"Y": 0.5,
"FontSize": 100,
"Angle": "30",
"Alignment": "TopCenter",
"FontColor": "#FDC219",
"FontURL": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/AliHYAiHei.ttf",
"SubtitleEffects": [{
"Type": "Outline",
"Bord": 0.06,
"Color": "#FDFDFD"
},
{
"Type": "Outline",
"Bord": 0.02,
"Color": "#040404"
}
]
},
{
"Type": "Text",
"Content": "同学聚会",
"Y": 0.6,
"FontSize": 100,
"Angle": "30",
"Alignment": "TopCenter",
"FontColor": "#FDC219",
"FontURL": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/AliHYAiHei.ttf",
"SubtitleEffects": [{
"Type": "Outline",
"Bord": 0.06,
"Color": "#FDFDFD"
},
{
"Type": "Outline",
"Bord": 0.02,
"Color": "#040404"
}
]
},
{
"Type": "Text",
"Content": "家人团圆",
"Y": 0.7,
"FontSize": 100,
"Angle": "30",
"Alignment": "TopCenter",
"FontColor": "#FDC219",
"FontURL": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/AliHYAiHei.ttf",
"SubtitleEffects": [{
"Type": "Outline",
"Bord": 0.06,
"Color": "#FDFDFD"
},
{
"Type": "Outline",
"Bord": 0.02,
"Color": "#040404"
}
]
},
{
"Type": "Text",
"Content": "共事团建",
"Y": 0.8,
"FontSize": 100,
"Angle": "30",
"Alignment": "TopCenter",
"FontColor": "#FDC219",
"FontURL": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/AliHYAiHei.ttf",
"SubtitleEffects": [{
"Type": "Outline",
"Bord": 0.06,
"Color": "#FDFDFD"
},
{
"Type": "Outline",
"Bord": 0.02,
"Color": "#040404"
}
]
}
]
},
{
"Comment": "火锅",
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/%E7%81%AB%E9%94%85.mp4",
"Y": 0.3,
"Width": 1080,
"Height": 608,
"AdaptMode": "Cover",
"Effects": [{
"Type": "Background",
"SubType": "Blur",
"Radius": 0.1
}],
"ReferenceClipId": "speech_2"
},
{
"Comment": "烤羊肉串",
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/%E7%83%A4%E7%BE%8A%E8%82%89%E4%B8%B2.mp4",
"Y": 0.3,
"Width": 1080,
"Height": 608,
"AdaptMode": "Cover",
"Effects": [{
"Type": "Background",
"SubType": "Blur",
"Radius": 0.1
}],
"ReferenceClipId": "speech_3"
},
{
"Comment": "大鱿鱼",
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/%E7%83%A4%E9%B1%BF%E9%B1%BC.mp4",
"Y": 0.3,
"Width": 1080,
"Height": 608,
"AdaptMode": "Cover",
"Effects": [{
"Type": "Background",
"SubType": "Blur",
"Radius": 0.1
}],
"ReferenceClipId": "speech_4"
},
{
"Comment": "陈腐蔬菜",
"MediaUrl": "https://your-bucket.oss-cn-shanghai.aliyuncs.com/%E8%94%AC%E8%8F%9C.mp4",
"Y": 0.3,
"Width": 1080,
"Height": 608,
"AdaptMode": "Cover",
"Effects": [{
"Type": "Background",
"SubType": "Blur",
"Radius": 0.1
}],
"ReferenceClipId": "speech_5"
}
]
}],
"AudioTracks": [{
"AudioTrackClips": [{
"Type": "AI_TTS",
"Content": "周末就来阿云美食城吧",
"Voice": "zhimi_emo",
"ClipId": "speech_1"
},
{
"Type": "AI_TTS",
"Content": "这里有入口醇香的老北京火锅!",
"Voice": "zhimi_emo",
"Effects": [{
"Type": "AI_ASR",
"Font": "KaiTi",
"Spacing": 2,
"Alignment": "TopCenter",
"Y": 0.65,
"FontSize": 70,
"AdaptMode": "AutoWrap",
"FontColor": "#FFFFFF",
"SubtitleEffects": [{
"Color": "#0420B6",
"Type": "Shadow",
"XBord": 0.07,
"YBord": 0.07,
"YShift": 0.06
},
{
"Color": "#F2213F",
"Type": "Shadow",
"XBord": 0.07,
"YBord": 0.07,
"YShift": 0.03
},
{
"Color": "#000000",
"Type": "Shadow",
"XShift": 0.01,
"YShift": 0.01
},
{
"Color": "#000000",
"Type": "Outline",
"XBord": 0.01,
"YBord": 0.01
}
]
}],
"ClipId": "speech_2"
},
{
"Type": "AI_TTS",
"Content": "这里有香喷喷的烤羊肉串!",
"Voice": "zhimi_emo",
"Effects": [{
"Type": "AI_ASR",
"Font": "KaiTi",
"Spacing": 2,
"Alignment": "TopCenter",
"Y": 0.65,
"FontSize": 70,
"AdaptMode": "AutoWrap",
"FontColor": "#FFFFFF",
"SubtitleEffects": [{
"Color": "#0420B6",
"Type": "Shadow",
"XBord": 0.07,
"YBord": 0.07,
"YShift": 0.06
},
{
"Color": "#F2213F",
"Type": "Shadow",
"XBord": 0.07,
"YBord": 0.07,
"YShift": 0.03
},
{
"Color": "#000000",
"Type": "Shadow",
"XShift": 0.01,
"YShift": 0.01
},
{
"Color": "#000000",
"Type": "Outline",
"XBord": 0.01,
"YBord": 0.01
}
]
}],
"ClipId": "speech_3"
},
{
"Type": "AI_TTS",
"Content": "这里有无比鲜嫩的大鱿鱼!",
"Voice": "zhimi_emo",
"Effects": [{
"Type": "AI_ASR",
"Font": "KaiTi",
"Spacing": 2,
"Alignment": "TopCenter",
"Y": 0.65,
"FontSize": 70,
"AdaptMode": "AutoWrap",
"FontColor": "#FFFFFF",
"SubtitleEffects": [{
"Color": "#0420B6",
"Type": "Shadow",
"XBord": 0.07,
"YBord": 0.07,
"YShift": 0.06
},
{
"Color": "#F2213F",
"Type": "Shadow",
"XBord": 0.07,
"YBord": 0.07,
"YShift": 0.03
},
{
"Color": "#000000",
"Type": "Shadow",
"XShift": 0.01,
"YShift": 0.01
},
{
"Color": "#000000",
"Type": "Outline",
"XBord": 0.01,
"YBord": 0.01
}
]
}],
"ClipId": "speech_4"
},
{
"Type": "AI_TTS",
"Content": "还有各种陈腐蔬菜等你来品味~",
"Voice": "zhimi_emo",
"Effects": [{
"Type": "AI_ASR",
"Font": "KaiTi",
"Spacing": 2,
"Alignment": "TopCenter",
"Y": 0.65,
"FontSize": 70,
"AdaptMode": "AutoWrap",
"FontColor": "#FFFFFF",
"SubtitleEffects": [{
"Color": "#0420B6",
"Type": "Shadow",
"XBord": 0.07,
"YBord": 0.07,
"YShift": 0.06
},
{
"Color": "#F2213F",
"Type": "Shadow",
"XBord": 0.07,
"YBord": 0.07,
"YShift": 0.03
},
{
"Color": "#000000",
"Type": "Shadow",
"XShift": 0.01,
"YShift": 0.01
},
{
"Color": "#000000",
"Type": "Outline",
"XBord": 0.01,
"YBord": 0.01
}
]
}],
"ClipId": "speech_5"
}
]
}],
"SubtitleTracks": [{
"SubtitleTrackClips": [{
"Comment": "主题目",
"Type": "Text",
"Y": 0.05,
"FontSize": 200,
"Content": "阿云美食城",
"Spacing": 2,
"SizeRequestType": "Nominal",
"Alignment": "TopCenter",
"Font": "HappyZcool-2016",
"FontColor": "#F688AA",
"SubtitleEffects": [{
"Color": "#F688AA",
"Type": "Shadow",
"Blur": 0.30,
"XBord": 0.15,
"YBord": 0.15
},
{
"Color": "#FFFFA0",
"Type": "Shadow",
"Blur": 0.08,
"XBord": 0.08,
"YBord": 0.08
},
{
"Color": "#A33952",
"Type": "Shadow",
"XBord": 0,
"YBord": 0,
"XShift": 0.04,
"Opacity": 1.0
},
{
"Color": "#F5D2CC",
"Type": "Shadow",
"XBord": 0,
"YBord": 0,
"XShift": -0.04,
"Opacity": 1.0
}
]
},
{
"Comment": "副标题",
"Type": "Text",
"Y": 0.2,
"FontSize": 100,
"Content": "味蕾盛宴",
"SizeRequestType": "Nominal",
"Spacing": 2,
"Alignment": "TopCenter",
"Font": "HappyZcool-2016",
"FontColor": "#F9FAFA",
"SubtitleEffects": [{
"Color": "#F4DF50",
"Type": "Shadow",
"Blur": 15,
"XBord": 7,
"YBord": 7
},
{
"Color": "#464120",
"Type": "Outline",
"XBord": 2,
"YBord": 2
}
]
}
]
}]
}
以上视频制作中,没有任何工夫截取的参数设置,通过轨道对齐性能,实现口播和视频绝对齐,实现全流程自动化剪辑。轨道对齐示例文档请参考:
https://help.aliyun.com/document_detail/2507542.html
智能媒体服务 IMS「云端智能剪辑」是基于云计算和人工智能技术的视频剪辑生产服务,能为用户提供直播剪辑、视频剪辑、模版工厂、数字人制作等外围性能,并可应用 AI 辅助剪辑生产。该产品可广泛应用于互联网、文化传媒、广告营销、教育金融等行业,满足企业进行规模、高效、便捷、智能的视频内容生产需要。
理解更多产品信息,请点击阿里云云端智能剪辑:https://www.aliyun.com/product/apsaravideo/ice/editor?spm=517…
欢送退出官网答疑钉钉群征询交换:31783668