python-3.x - 我想混合 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")
解决方案
推荐阅读
- laravel - 如何运行 Laravel Dusk 在 Docker 容器中抓取网站
- javascript - 如何模拟不是构造函数依赖的第三方组件?
- c# - 如何从 C# 中的 xml 字符串中获取节点值?
- php - AWS PHP SDK v3 检查文件是否已存在于 S3 存储桶中
- typescript - 打字稿 - 无法动态导入类
- angular - 在提升 Angular 的同时初始化类?
- c# - 从 VSTest.Console.exe 将参数或选项传递给单元测试
- r - 打印无限序列部分和的简单 For 循环给出错误:替换长度为零
- c - Truestudio atollic(基于 Eclipse 的 IDE)创建空的二进制文件,尽管不是空的 elf 文件和大量代码
- apache - 如何在子文件夹中部署带有 mod_rewrite 的 Nuxt SSR?