python-scripts/scripts/extract_audio_from_video/video_to_audio.py
2022-10-04 10:17:44 +05:30

9 lines
222 B
Python

import moviepy.editor
path_video = input("Enter the path of video: ")
video = moviepy.editor.VideoFileClip(path_video)
audio = video.audio
path_audio = input("Enter the path of audio:")
audio.write_audiofile(path_audio)