Created
February 11, 2021 15:31
-
-
Save JayantGoel001/44a3f4e6037530deadb76470e8d91a0a to your computer and use it in GitHub Desktop.
Convert Video to Audio using moviepy
This file contains hidden or 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 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