audio extract from video two files added

This commit is contained in:
Akash Jain 2022-10-04 10:17:44 +05:30
parent e7d673430e
commit ecc2188aea
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,7 @@
# extract audio from video
## Usage
- Clone the repo
- download the requirements
- run `python video_to_audio.py`

View File

@ -0,0 +1,8 @@
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)