Windows下怎么安装FFFmpeg呢?

在Windows下使用Open-webui报错,说Couldn't find ffmpeg or avconv,解决open-webui报错Couldn't find ffmpeg or avconv-CSDN博客于是尝试解决问题,那么Windows下怎么安装FFFmpeg呢? 尝试了两种方法。

第一种方法pip安装(失败)

到github网站找到地址:GitHub - FFmpeg/FFmpeg: Mirror of https://git.ffmpeg.org/ffmpeg.git

到repo里去下载windows下软件:

没找到编译好的,只有源代码。

那么就用pip安装好了:

复制代码
pip install ffmpeg

成功!

未成功:

还是报错

INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2

E:\py311\Lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work

warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)

WARNI [langchain_community.utils.user_agent] USER_AGENT environment variable not set, consider setting it to identify your requests.

证明open-webui还是没有找到ffmpeg软件包。

第二种方法二进制安装(成功)

进入官网:FFmpeg

下载windows版本软件

Download FFmpeg

查看发布版本:

Releases · BtbN/FFmpeg-Builds · GitHub

下载ffmpeg-master-latest-win64-gpl.zip 这个文件

解压到目标目录,比如E:\ai\ffmpeg-master-latest-win64-gpl 目录

设置windows的环境变量,在PATH里加入ffmpeg的执行文件所在的目录:

E:\ai\ffmpeg-master-latest-win64-gpl\bin

使用set看看环境变量,发现已经加到最后了:

Path=E:\py311\Scripts;E:\Program Files\cuda12\bin;E:\Program Files\cuda12\libnvvp;C:\Program Files\VanDyke Software\Clients\;E:\Program Files\cuda\bin;E:\Program Files\cuda\libnvvp;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;e:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;E:\Program Files\PuTTY\;C:\Program Files\Docker\Docker\resources\bin;E:\Program Files\anaconda;E:\Program Files\anaconda\Library\mingw-w64\bin;E:\Program Files\anaconda\Library\usr\bin;E:\Program Files\anaconda\Library\bin;E:\Program Files\anaconda\Scripts;C:\Users\Admin\AppData\Local\Microsoft\WindowsApps;C:\Users\Admin\.dotnet\tools;C:\Users\Admin\AppData\Local\Programs\Ollama;e:\Programs\Microsoft VS Code\bin;C:\Users\Admin\AppData\Local\Muse Hub\lib;e:\Program Files\Huawei\DevEco Studio\bin;;E:\ai\ffmpeg-master-latest-win64-gpl\bin;

再次执行open-webui,发现原来的报错消失,问题解决,证明ffmpeg安装成功!

相关推荐
木心术112 小时前
Windows系统下MySQL与AI工具集成方案:数据存储与调用实践
人工智能·windows·mysql
beyond阿亮13 小时前
Hermes Agent快速接入 QQ 完整教程|QQ聊天使用AI智能体
人工智能·windows·ai·openclaw·hermes agent
DONSEE广东东信智能读卡器14 小时前
用PowerShell实现Windows 本地 WSS/HTTPS 自签名证书配置方法
windows·网络协议·https·powershell·身份证阅读器
_oP_i16 小时前
FFmpeg 如何与ai结合剪辑出效果好的视频
人工智能·ffmpeg·音视频
DogDaoDao17 小时前
Windows 下 Git 报错:`touch` 无法识别 —— 原因分析与 7 种解决方案(从入门到精通)
windows·git·程序员·npm·powershell·cmd·touch
Ai.den17 小时前
Windows 安装 MinerU 3.x 实现本地批量解析 PDF
人工智能·windows·ai
xfddlm18 小时前
在Windows上配置Claude Code
windows
AI行业学习18 小时前
Notepad++ 下载+安装+插件集合 完整教程(Windows,安全无捆绑)
windows·notepad++
__zRainy__19 小时前
uni-app 全局容器实战系列(二):Vite 虚拟模块
windows·uni-app
Omics Pro19 小时前
前沿学科:量子生物学!
大数据·数据库·人工智能·windows·redis·量子计算