Loading... ```python from moviepy.editor import VideoFileClip, AudioFileClip def merge_audio_video(audio_file, video_file, output_file): video = VideoFileClip(video_file) audio = AudioFileClip(audio_file) final_audio = audio.set_duration(video.duration) final_video = video.set_audio(final_audio) final_video.write_videofile(output_file) merge_audio_video("低谷期.mp3", "低谷期.mp4", "dddd.mp4") ``` 最后修改:2023 年 02 月 11 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏