在此处关注文档: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
不幸的是,这会输出以下内容:
Unknown option "–disable-shared". See ./configure --help for available options.
我试图跳到下一步,看看这个错误是否只是一个可以忽略的警告,但是执行
make -j 8
mingw64.exe 环境产生以下输出:Makefile:180: /tests/Makefile: No such file or directory make: *** No rule to make target '/tests/Makefile'. Stop.
显然,我在构建支持 nVidia 硬件加速的 ffmpeg 版本时遇到了麻烦。我想知道他们的文档是否可能已经过时了。
是否有可用的二进制文件让我跳过这一步?或者,有没有办法使用 GPU 硬件加速与标准 windows ffmpeg 构建进行编码?
我对这个二进制文件很陌生……谢谢。
最佳答案
您错过了 –disable-shared
中的破折号,所以它是 -–disable-shared
.
无论如何,编码操作中的瓶颈是 -loop
强制执行的连续图像解码。选项。相反,请使用循环过滤器。
ffmpeg -i image.jpg -vf loop=-1:1:0 -t 00:30:00 -vcodec h264_nvenc out.mp4
关于ffmpeg - 尝试在 Windows 上使用 NVIDIA 硬件加速支持构建 ffmpeg 时出现未知选项 "–disable-shared",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71289491/