import moviepy.editor as mp
def extract_audio(videos_file_path):
my_clip = mp.VideoFileClip(videos_file_path)
return my_clip
if __name__ == "__main__":
file_path = r'048b2ee3a2f097163502e35a5f84900e.mp4'
my_clip = extract_audio(file_path)
my_clip.audio.write_audiofile(f'test2.mp3')
提取视频音质
最新推荐文章于 2024-08-25 17:59:44 发布