Skip to content

Instantly share code, notes, and snippets.

@Ze1598
Last active January 28, 2021 11:25
Show Gist options
  • Save Ze1598/b44b984498659b4dde2ce3895378d14f to your computer and use it in GitHub Desktop.
Save Ze1598/b44b984498659b4dde2ce3895378d14f to your computer and use it in GitHub Desktop.
Extract audio from video
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