Z
Z
Zhenia Bel2020-12-27 02:02:47
YouTube
Zhenia Bel, 2020-12-27 02:02:47

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

1 answer(s)
W
Wispik, 2020-12-27
@Wispik

WELL DIRECTLY THE PREVIOUS QUESTION WAS: How to convert video clip mp4 to mp3 using ffmpeg in python?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question