sudo pip install moviepy
index.py
from moviepy.editor import * video = VideoFileClip('test.mp4') audio = video.audio audio.write_audiofile('test.mp3')
python3 index.py
➜ py python3 index.py MoviePy - Writing audio in test.mp3 MoviePy - Done.