Last active
January 28, 2021 11:25
-
-
Save Ze1598/b44b984498659b4dde2ce3895378d14f to your computer and use it in GitHub Desktop.
Extract audio from video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from moviepy.editor import VideoFileClip | |
video = VideoFileClip("your_video.mp4") | |
audio = video.audio | |
audio.write_audiofile("audio_only.wav") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment