code
1 2 3 4 5 6 7 8 9 10 11
| import moviepy import moviepy.editor
def mp3_from_mp4(mp4_file): video = moviepy.editor.VideoFileClip(mp4_file) audio = video.audio audio.write_audiofile(mp4_file[0:-4] + '.mp3')
if __name__=='__main__': mp4_file = input("파일을 입력하세요. : ") mp3_from_mp4(mp4_file)
|
Author:
Slay
Permalink:
http://sean-baek.github.io/2022/09/20/2022-09-20-python-extract-mp3-from-mp4/
License:
Copyright (c) 2021 CC-BY-NC-4.0 LICENSE
Slogan:
Do you believe in DESTINY?