Skip to content

Instantly share code, notes, and snippets.

@JayantGoel001
Created February 11, 2021 15:31
Show Gist options
  • Save JayantGoel001/44a3f4e6037530deadb76470e8d91a0a to your computer and use it in GitHub Desktop.
Save JayantGoel001/44a3f4e6037530deadb76470e8d91a0a to your computer and use it in GitHub Desktop.
Convert Video to Audio using moviepy
from moviepy import editor
video = editor.VideoFileClip("GIF.mp4") # Put Video Path
audio = video.audio
file_name = str(audio.filename).split('.')[0]
audio.write_audiofile(file_name+".mp3")
print("==========Succesfully Converted==========")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment