moviepy从视频中提取音频

moviepy从视频中提取音频

代码如下

from moviepy.editor import *
video_src = 'E:\\Datasets\\GreenScreenVideoGen\\src\\src2.mp4'
audio_dst = 'E:\\Datasets\\GreenScreenVideoGen\\1.mp3'
video = VideoFileClip(video_src)
audio = video.audio
audio.write_audiofile(audio_dst)

你可能感兴趣的:(视频,ffmpeg)