Skip to content

Commit 4dfc9d9

Browse files
authored
Convert Video to audio
Run this code and extract any audio as a mp3 file from a video.
1 parent 229f8d6 commit 4dfc9d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Convert Video to audio

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import moviepy.editor as mp #[at first install moviepy in ur system]
2+
3+
clip = mp.VideoFileClip(r'C:\\Users\\ADMIN\\Desktop\\Despacito.mp4') #[copy and paste the path where u saved ur video]
4+
5+
clip.audio.write_audiofile('C:\\Users\\ADMIN\\Desktop\\Despacito_cvrt.mp3') #[give the path where u want to save ur audio file]

0 commit comments

Comments
 (0)