ffmpy.FFExecutableNotFoundError: Executable ‘ffmpeg‘ not found

ffmpy.FFmpeg()中传递带有ffmpeg可执行文件路径的可执行参数。

from ffmpy import FFmpeg

exe = r'D:\xxxx\FFmpeg\ffmpeg-master-latest-win64-gpl-shared\bin\ffmpeg.exe'
ff = FFmpeg(executable=exe, inputs={video_path: None},
                outputs={audio_path: '-f {} -vn'.format(format)})
print(ff.cmd)
ff.run()

去这里下载:
https://ffmpeg.org/download.html#build-windows

ffmpy.FFExecutableNotFoundError: Executable ‘ffmpeg‘ not found_第1张图片

https://github.com/BtbN/FFmpeg-Builds/releases

ffmpy.FFExecutableNotFoundError: Executable ‘ffmpeg‘ not found_第2张图片

解压后得到exe路径

你可能感兴趣的:(Error,音视频,python)