Answer the question
In order to leave comments, you need to log in
How to make it so that after downloading the video immediately translate it into audio?
How to make it so that after downloading the video immediately translate it into audio?
this is what i have now
import youtube_dl
import moviepy.editor
print('ссылку:')
i = input('')
ydl_opts = {'outtmpl': "%()s.%(ext)s"}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download([i])
video = moviepy.editor.VideoFileClip('.mp4')
audio = video.audio
audio.write_audiofile('.mp3')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question