python moviepy 特效编辑

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

python moviepy 特效编辑_第1张图片

你可能感兴趣的:(日常)