未知选项“禁用共享”当尝试在 Windows 上构建具有 NVIDIA 硬件加速支持的 ffmpeg 时
按照此处的文档操作: https:// docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/
在 mingw64 环境中,我导航到ffmpeg目录并执行以下命令:
./configure --enable-nonfree --disable-shared --enable-cuda-nvcc --enable-libnpp --toolchain=msvc --extra-cflags=-I../nv_sdk --extra-ldflags=-libpath:../nv_sdk
不幸的是,这会输出以下内容:
未知选项“–disable-shared”。请参阅 ./configure --help 了解可用信息 选项。
我尝试跳到下一步,看看这个错误是否只是一个可以忽略的警告,但从 mingw64.exe 环境中执行 make -j 8
会产生以下输出:
Makefile:180: /tests/Makefile: 没有这样的文件或目录 make: *** 没有 规则来创建目标'/tests/Makefile'。停止。
显然,我在构建支持 nVidia 硬件加速的 ffmpeg 版本时遇到了麻烦。我想知道他们的文档是否可能已经过时了。
是否有可用的二进制文件可以让我跳过此步骤?或者,有没有办法使用 GPU 硬件加速通过标准 Windows ffmpeg 构建进行编码?
我对这个二进制文件很陌生......谢谢。
Following the docs here: https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/
Within the mingw64 environment, I have navigated to the ffmpeg directory and executed the following command:
./configure --enable-nonfree –disable-shared --enable-cuda-nvcc
--enable-libnpp –-toolchain=msvc --extra-cflags=-I../nv_sdk --extra-ldflags=-libpath:../nv_sdk
Unfortunately, this outputs the following:
Unknown option "–disable-shared". See ./configure --help for available
options.
I tried to skip to the next step and see if this error was just a warning that could be ignored, but executing make -j 8
from the mingw64.exe environment produces the following output:
Makefile:180: /tests/Makefile: No such file or directory make: *** No
rule to make target '/tests/Makefile'. Stop.
Clearly, I am having trouble building a version of ffmpeg that supports nVidia hardware acceleration. I am wondering if their docs have become outdated possibly.
Is there a binary available that lets me skip this step? Alternatively, is there a way to use GPU hardware acceleration for encoding with the standard windows ffmpeg build?
I am pretty new to this binary...thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您错过了
–disable-shared
中的破折号,因此它是-–disable-shared
。无论如何,编码操作的瓶颈是由
-loop
选项强制进行的连续图像解码。相反,请使用环路滤波器。You missed a dash in
–disable-shared
, so it's-–disable-shared
.In any case, the bottleneck in your encoding op is the continuous image decode forced by
-loop
option. Instead, use the loop filter.