Convert a video to mp3 in python without ffmpeg

394 views Asked by At

I have some problems when I tryed to convert a video to music in python with moviepy and the prompt given me a error, because this library need ffmepg, so I can't install ffmepg, because now only have the x64 version to download, and now I have this problem, and I thinking what is the other way to install the ffmepg or convert a video to music! Can someone help-me, Thanks!

Code to convert:

with VideoFileClip(mp4f) as vc:
    with vc.audio as ac:
        ac.write_audiofile(mp3f)

Error:

OSError: MoviePy error: the file X could not be found!
Please check that you entered the correct path.

System details: Python - 3.8.6 Windows 10 Pro x86

0

There are 0 answers