視頻調音
視頻整體靜音
整體靜音指將視頻資源中的聲音進行整體消除,通過設置Effects字段實現。
成片效果 | Timeline示例 |
| {
"VideoTracks": [
{
"VideoTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h4.mp4",
"Effects": [
{
"Type": "Volume",
"Gain": 0
}
]
}
]
}
]
}
|
調節音量
視頻和音頻都支持調節音量。
成片效果 | Timeline示例 |
| {
"VideoTracks": [
{
"VideoTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h4.mp4",
"Effects": [
{
"Type": "Volume",
"Gain": 0.5
}
]
}
]
}
],
"AudioTracks": [
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m1.wav",
"Effects": [
{
"Type": "Volume",
"Gain": 2
}
]
}
]
}
]
}
|
視頻整體靜音+音頻混音
視頻整體靜音+音頻混音指的是將原視頻靜音后重新配音,合成新的視頻,是一個典型的配音場景。
說明 所有與音頻處理相關的Clip都放入AudioTracks。
TimelineIn未設置,默認該音頻在輸出視頻的第0秒開始疊加。
TimelineOut未設置,默認為整段音頻都進行混流。如果音頻的尾部超過了視頻軌的總時長,則將對音頻進行截斷,播放持續到視頻軌結束。
AudioTrackClips可以是純音頻資源,也可以是帶聲音的視頻資源。下文中此字段與之類似,不再重復說明。
成片效果 | Timeline示例 |
| {
"VideoTracks": [
{
"VideoTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h1.mp4",
"Effects": [
{
"Type": "Volume",
"Gain": 0
}
]
}
]
}
],
"AudioTracks": [
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m1.wav"
}
]
}
]
}
|
視頻整體靜音 + 多音軌混音
視頻整體靜音+多音軌混音指的是將原視頻靜音并使用多個音軌混合后重新配音。
成片效果 | Timeline示例 |
| {
"VideoTracks": [
{
"VideoTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h1.mp4",
"Effects": [
{
"Type": "Volume",
"Gain": 0
}
]
}
]
}
],
"AudioTracks": [
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m1.wav",
"In": 1,
"Out": 5,
"TimelineIn": 2,
"Effects": [
{
"Type": "Volume",
"Gain": 2
}
]
}
]
},
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/speech.mp3",
"In": 2,
"Out": 10,
"TimelineIn": 4,
"Effects": [
{
"Type": "Volume",
"Gain": 0.5
}
]
}
]
}
]
}
|
音頻循環播放
說明 視頻靜音,將音頻m2.wav的4s~10s剪輯出來,在時間線2s~14s上循環播放。
成片效果 | Timeline示例 |
| {
"VideoTracks": [
{
"VideoTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h4.mp4",
"Effects": [
{
"Type": "Volume",
"Gain": 0
}
]
}
]
}
],
"AudioTracks": [
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m2.wav",
"LoopMode": true,
"In": 4,
"Out": 10,
"TimelineIn": 2,
"TimelineOut": 14
}
]
}
]
}
|
音頻淡入淡出
純音頻配置淡入淡出
通過添加"Type": "AFade"字段,實現音頻的淡入淡出效果。
成片效果 | Timeline示例 |
| {
"AudioTracks": [
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m1.wav",
"Effects": [
{
"Type": "AFade",
"SubType": "In",
"Duration": 3,
"Curve": "tri"
},
{
"Type": "AFade",
"SubType": "Out",
"Duration": 4,
"Curve": "tri"
}
]
}
]
}
]
}
|
視頻中的音頻配置淡入淡出
與音頻配置淡入淡出類似,視頻的音頻也可以配置淡入淡出效果。
說明 對視頻軌上含有音頻的媒資配置了3秒淡入,4秒淡出,音量呈線性漸強/漸弱。
成片效果 | Timeline示例 |
| {
"VideoTracks": [
{
"VideoTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h4.mp4",
"Effects": [
{
"Type": "AFade",
"SubType": "In",
"Curve": "tri",
"Duration": 3
},
{
"Type": "AFade",
"SubType": "Out",
"Duration": 4,
"Curve": "tri"
}
]
}
]
}
]
}
|
指定區間靜音
相對于整體靜音,指定區間靜音增加了入出點參數的設置。
說明 將視頻的第2秒到第5秒的區間進行靜音,視頻的剩余部分音量不變。
成片效果 | Timeline示例 |
| {
"VideoTracks": [
{
"VideoTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h4.mp4",
"Effects": [
{
"Type": "Volume",
"Gain": 0,
"In": 2,
"Out": 5
}
]
}
]
}
]
}
|
指定配音入點
將原視頻靜音并重新配音時,支持指定配音的入出點。
說明 截取音頻第10秒到第19秒的區間,從輸出視頻的第5秒開始疊加。
成片效果 | Timeline示例 |
| {
"VideoTracks": [
{
"VideoTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h4.mp4",
"Effects": [
{
"Type": "Volume",
"Gain": 0
}
]
}
]
}
],
"AudioTracks": [
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m1.wav",
"In":10,
"Out":19,
"TimelineIn":5
}
]
}
]
}
|
音頻降噪
包含音頻流的視頻和純音頻,都支持配置降噪效果。
成片效果 | Timeline示例 |
| {
"VideoTracks": [
{
"VideoTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h4.mp4",
"Effects": [
{
"Type": "ADenoise",
"Mode": 1
}
]
}
]
}
],
"AudioTracks": [
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m1.wav",
"Effects": [
{
"Type": "ADenoise",
"Mode": 1
}
]
}
]
}
]
}
|
綜合配音
綜合配音指視頻+多軌音頻混音。
成片效果 | Timeline示例 |
| {
"VideoTracks": [
{
"VideoTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h4.mp4",
"Effects": [
{
"Type": "Volume",
"Gain": 0,
"In": 4,
"Out": 6
},
{
"Type": "Volume",
"Gain": 0.8,
"In": 9,
"Out": 14
}
]
}
]
}
],
"AudioTracks": [
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m1.wav",
"In": 10,
"Out": 17,
"TimelineIn": 4,
"Effects": [
{
"Type": "Volume",
"Gain": 2
}
]
}
]
},
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/speech.mp3",
"In": 15,
"Out": 20,
"TimelineIn": 9,
"Effects": [
{
"Type": "Volume",
"Gain": 1
}
]
}
]
}
]
}
|
音量歸一
說明 僅適用于音視頻clip,如果ALoudNorm和ADenosie或Volume一起使用時,應用順序為:ADenoise > Volume > ALoudNorm。
對音頻進行音量歸一化。
成片效果 | Timeline示例 |
| {
"AudioTracks": [
{
"AudioTrackClips": [
{
"Comment": "針對音頻進行音量歸一",
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m1.wav",
"Effects": [
{
"Type": "ALoudNorm",
"Loudness": -24.0,
"TruePeak": -2.0
}
]
},
{
"Comment": "針對音頻進行音量歸一",
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m2.wav",
"Effects": [
{
"Type": "ALoudNorm",
"Loudness": -24.0,
"TruePeak": -2.0
}
]
}
]
}
]
}
|
對視頻里的音頻進行音量歸一化。
成片效果 | Timeline示例 |
| {
"VideoTracks": [
{
"VideoTrackClips": [
{
"Comment": "針對視頻里的音頻進行音量歸一",
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h4.mp4",
"Effects": [
{
"Type": "ALoudNorm",
"Loudness": -24.0,
"TruePeak": -2.0
}
]
},
{
"Comment": "針對視頻里的音頻進行音量歸一",
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h1.mp4",
"Effects": [
{
"Type": "ALoudNorm",
"Loudness": -24.0,
"TruePeak": -2.0
}
]
}
]
}
]
}
|
音量均衡
對視頻中的音頻進行音量均衡。
成片效果 | Timeline示例 |
| {
"VideoTracks": [
{
"VideoTrackClips": [
{
"Comment": "針對視頻中的音頻進行音量均衡",
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h4.mp4"
},
{
"Comment": "針對視頻中的音頻進行音量均衡",
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h1.mp4"
}
]
}
],
"EffectTracks": [
{
"EffectTrackItems": [
{
"Type": "AEqualize",
"Peak": 0.95,
"Gain": 10
}
]
}
]
}
|
對音頻進行音量均衡。
成片效果 | Timeline示例 |
| {
"AudioTracks": [
{
"AudioTrackClips": [
{
"Comment": "針對音頻進行音量均衡",
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m1.wav"
},
{
"Comment": "針對音頻進行音量均衡",
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m2.wav"
}
]
}
],
"EffectTracks": [
{
"EffectTrackItems": [
{
"Type": "AEqualize",
"Peak": 0.95,
"Gain": 10
}
]
}
]
}
|
輸出為音頻
提取音頻
提取音頻指在某些場景中,需要將視頻資源中的音頻提取為單獨的音頻資源,通過創建AudioTracks并將視頻資源作為AudioTrackClips傳入實現。
成片效果 | Timeline示例 |
| {
"AudioTracks": [
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/h4.mp4"
}
]
}
]
}
|
音頻拼接
音頻拼接是指在同一個音軌將兩個音頻資源截取指定的區間順序相接。
成片效果 | Timeline示例 |
| {
"AudioTracks": [
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m1.wav",
"In": 0,
"Out": 12
},
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/speech.mp3",
"In": 12,
"Out": 20
}
]
}
]
}
|
多軌純音頻混音
多軌純音頻混音指將多個音軌的音頻資源進行混音。
成片效果 | Timeline示例 |
| {
"AudioTracks": [
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/m1.wav",
"In": 10,
"Out": 20,
"Effects": [
{
"Type": "Volume",
"Gain": 2
}
]
}
]
},
{
"AudioTrackClips": [
{
"MediaURL": "https://ice-document-materials.oss-cn-shanghai.aliyuncs.com/test_media/music/speech.mp3",
"In": 5,
"Out": 15,
"Effects": [
{
"Type": "Volume",
"Gain": 1
}
]
}
]
}
]
}
|