首页 > 解决方案 > 我想混合 4 个音频文件并将最终混合的音频文件添加到 moviepy 中的视频中。那可能吗?

问题描述

我正在尝试从moviepy和moviepy编辑视频,我想添加4个不同的音频文件。我没有找到任何文档。我猜。这可能吗?

我尝试了很多,但无法弄清楚。

from moviepy.editor import *
audio1=AudioFileClip("audio1.mp3")
audio2=AudioFileClip("audio2.mp3")
audio3=AudioFileClip("audio3.mp3")
audio4=AudioFileClip("audio4.mp3")

#I want to mix all these audio and add it in a video

video=VideoFileClip("video.mp4")

#now add that mixed audio and export it.
#what should I do here to mix all the audio and assign them to a variable.

finalvideo.writevideofile("finalvideo.mp4")
  

标签: python-3.xvideomoviepyvideo-editing

解决方案


推荐阅读