音乐
要为您的视频添加音乐,请使用 Remotion Recorder 提供的三个配乐之一,或者添加您自己的音乐。
添加音乐
在右侧边栏的默认属性编辑器中,您可以为每个场景选择 music
的值:
"none"
- 无音乐"previous"
- 与上一个场景相同的设置"soft"
,"euphoric"
,"epic"
- 三个提供的配乐之一
提供的配乐
Remotion Recorder 包含三首音乐曲目,您可以在视频中使用:
- "Nature" (2:34, ID
"soft"
) - "I Woke Up In A Dream" (2:23, ID
"euphoric"
) - "Rhythmic Reverie" (3:29, ID
"epic"
)
所有曲目均由Utope Music专门为 Recorder 制作,并已获得 Recorder 制作的视频的授权。
添加您的背景音乐
要添加背景音乐,首先必须将歌曲添加到 public/sounds
文件夹中。
然后在 config/sounds.ts
中注册该曲目。
tsx
export const music = z.enum(["previous","none","somesong",// You can give your song any label. This is the name you will see in the editor."<your-song-label>",]);export const getAudioSource = (track: Music) => {if (track === "somesong") {return staticFile("sounds/soundtrack1.mp3");}// Add your track here. The label has to match the one you added above.if (track === "<your-song-label>") {return staticFile("sounds/<actual-asset-name>");}};
tsx
export const music = z.enum(["previous","none","somesong",// You can give your song any label. This is the name you will see in the editor."<your-song-label>",]);export const getAudioSource = (track: Music) => {if (track === "somesong") {return staticFile("sounds/soundtrack1.mp3");}// Add your track here. The label has to match the one you added above.if (track === "<your-song-label>") {return staticFile("sounds/<actual-asset-name>");}};
现在,您可以通过在右侧边栏中选择曲目来将新添加的音乐应用于场景。
更改音乐
音乐将自动延续到下一个场景。
如果要更改音乐,请为场景选择不同的曲目,音乐将进行交叉淡入淡出。
停止音乐
如果要停止音乐,请选择 none
作为曲目。