python视频提取音频

代码如下:

from moviepy.editor import VideoFileClip # ,AudioFileClip,afx
video = VideoFileClip(“Why Don’t We-What Am I.mp4”)
audio = video.audio
audio.write_audiofile(‘what am I.mp3’)
posted @ 2022-06-17 13:11  小默同学  阅读(61)  评论(0编辑  收藏  举报