Python 3 Moviepy Script to Convert Mp4 Video to Mp3 Audio

Python 3 Moviepy Script to Convert Mp4 Video to Mp3 Audio

Python 3 Moviepy Script to Convert Mp4 Video to Mp3 Audio

from moviepy.editor import *

mp4_file = r'E:VID_20180308_141907.mp4'
mp3_file = r'E:VID_20180308_141907.mp3'


videoclip = VideoFileClip(mp4_file)

audioclip = videoclip.audio
audioclip.write_audiofile(mp3_file)

audioclip.close()
videoclip.close()
Share on:

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Comment