https://blog.csdn.net/ucsheep/article/details/80999939
from moviepy.editor import *video = VideoFileClip('/home/chenyang/PycharmProjects/python_ocr/test_name.avi')audio = video.audio shape_data=audio.reader.buffer.shape#这里可以根据shape_data,设计声音的数组audio.write_audiofile('test.mp3')if __name__ == '__main__':pass