# -*- coding: utf-8 -*- from moviepy.editor import * video = VideoFileClip('Sora no Kiseki the 3rd Evolution [BGM RIP] - Cry for your Eternity.mp4') video.audio.write_audiofile('test.mp3')
Here is what the above code is Doing:
1. Importing the VideoFileClip class from moviepy.editor.
2. Creating a video clip from the video file.
3. Extracting the audio from the video clip.
4. Writing the audio to a file.