Merge pull request #105 from akashJainAJ11/master

audio extract from video two files added
This commit is contained in:
Advaita Saha 2022-10-04 11:00:03 +05:30 committed by GitHub
commit 454825101b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)