python mp4 to mp3

Solutions on MaxInterview for python mp4 to mp3 by the best coders in the world

showing results for - "python mp4 to mp3"
Melina
02 Jan 2017
1# -*- coding: utf-8 -*-
2from moviepy.editor import *
3
4video = VideoFileClip('Sora no Kiseki the 3rd Evolution [BGM RIP] - Cry for your Eternity.mp4')
5video.audio.write_audiofile('test.mp3')
Salomé
10 Aug 2016
1import os
2from moviepy.editor import *
3video = VideoFileClip(os.path.join("path","to","movie.mp4"))
4video.audio.write_audiofile(os.path.join("path","to","movie_sound.mp3"))
5