BUG解决:ValueError: ffplay from ffmpeg not found, necessary to play audio.

文章目录

  • Linux
  • Windows

Linux

sudo apt install ffmpeg

安装即可。

Windows

在github上下载ffmpeg

https://github.com/GyanD/codexffmpeg/releases/tag/2023-07-19-git-efa6cec759

选择:
BUG解决:ValueError: ffplay from ffmpeg not found, necessary to play audio._第1张图片
安装后解压到任何你想要的位置,可以修改文件夹名字为ffmpeg
BUG解决:ValueError: ffplay from ffmpeg not found, necessary to play audio._第2张图片
进入解压后的文件夹,复制bin文件夹的地址。
在我的电脑里,这个路径是:

"D:\ffmpeg\bin"

之后把这个路径添加到环境变量中。(在搜索栏或者系统设置里找)
BUG解决:ValueError: ffplay from ffmpeg not found, necessary to play audio._第3张图片
找到Path条目,点击新建,把刚才的路径复制进去,点击确定。
(我的电脑上有两个Path,不太能分得清,我都复制了一次)
打开cmd,输入ffmpeg,查看是否有输出,有的话即为安装成功。
BUG解决:ValueError: ffplay from ffmpeg not found, necessary to play audio._第4张图片

你可能感兴趣的:(bug,ffmpeg)