media-autobuild_suite
media-autobuild_suite copied to clipboard
ERROR: nvenc requested but not found
logs.zip
I cannot compile ffmpeg because ERROR: nvenc requested but not found
eek. I rely on on nvenc and vapoursynth baked into in ffmpeg..
Please also see https://github.com/m-ab-s/media-autobuild_suite/issues/2514#issuecomment-1741595999 for suggestion on how to possibly contribute to updating MABS.
So what should I do? I have to compile ffmpeg with Fraunhofer VVC
I'm having a (rather slow) look now. I'm no expert and hopefully someone else will get in before me.
AFAIK nvenc is unrelated to vvc, offhand do you know if there is there a mabs option to not build ffmpeg with nvenc (perhaps you could edit the file "build\ffmpeg_options.txt") ?
I don't know but there is a couple of options in this options file
Also media-autobuild_suite.ini but nothing for nv stuff in there.
perhaps try commenting this line out in ffmpeg_options.txt so that nvdec/nvenc are not built with ffmpeg
--enable-nvdec
--enable-nvenc
or better still, does it accept
--disable-nvdec
--disable-nvenc
I am using nvenc to encode HEVC it's faster so commenting out this line is not ideal for me
I need VVC and HEVC nvenc
ah. i'm in the process of building (slow) as I need it too. someone else may jump in first ...
I encountered the same problem.
ffmpeg version: 6.0 configure command:
./configure --prefix=/home/cuichengyu/pyffmpeg_workspace/ffmpeg-6.0 --enable-gpl --enable-shared --enable-libx264 --enable-nonfree --enable-cuda-nvcc --enable-libnpp --disable-debug --disable-asm --disable-stripping --enable-nvenc --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
got the logs:
ERROR: nvenc requested but not found
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Finally I find the solution:
Finally solved.
nv-codec-headers is responsible for many hours lost.
The right version is 11.1.5.3 - the last 11.X version.
Despite a new nvidia kernel/driver installed, nv-codec-headers must be < 12.X.
Works with the latest 545.23.06 kernel/driver.
All options are autodetected with original Pats ffmpeg.SlackBuild.
As I'm out of US, I set to compile patented and non_free code.
Well,
I just successfully compiled ffmpeg using standard MABS (excluding libplacebo, libjxl, and a couple of others) with nvdec/nvenc and did NOT need to fiddle with any header related stuff.
Built in a windows sandbox. Host had latest win11 and nearly up to date nvidia drivers (no cuda toolkit etc).
Cheers PS: just an fyi/check, your "solution" link to https://www.linuxquestions.org/questions/slackware-14/ffmpeg-compile-with-nvidia-acceleration-failed-4175729366/ is about slackware linux, not building under windows.
PPS: I've NEVER seen a person thumbs-up their own inapplicable solution, as you have above ;) Perhaps a cultural thing, but I would not bet on it.
@dongrixinyu Thanks a lot, will try that. I encountered this problem when trying to compile a 5.4 version of ffmpeg. (I've given up hope on my ffmpeg ticket https://trac.ffmpeg.org/ticket/9882 for a version >6.x bug). However I did not encounter this error when using ffmpeg git master.