media-autobuild_suite icon indicating copy to clipboard operation
media-autobuild_suite copied to clipboard

ERROR: nvenc requested but not found

Open mrtajniak opened this issue 1 year ago • 12 comments

logs.zip I cannot compile ffmpeg because ERROR: nvenc requested but not found

mrtajniak avatar Sep 29 '23 11:09 mrtajniak

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.

hydra3333 avatar Sep 30 '23 00:09 hydra3333

So what should I do? I have to compile ffmpeg with Fraunhofer VVC

mrtajniak avatar Sep 30 '23 17:09 mrtajniak

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") ?

hydra3333 avatar Oct 01 '23 06:10 hydra3333

I don't know but there is a couple of options in this options file

mrtajniak avatar Oct 01 '23 08:10 mrtajniak

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

hydra3333 avatar Oct 01 '23 08:10 hydra3333

I am using nvenc to encode HEVC it's faster so commenting out this line is not ideal for me

mrtajniak avatar Oct 01 '23 09:10 mrtajniak

I need VVC and HEVC nvenc

mrtajniak avatar Oct 01 '23 09:10 mrtajniak

ah. i'm in the process of building (slow) as I need it too. someone else may jump in first ...

hydra3333 avatar Oct 02 '23 02:10 hydra3333

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.

dongrixinyu avatar Jan 15 '24 08:01 dongrixinyu

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.

dongrixinyu avatar Jan 15 '24 09:01 dongrixinyu

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.

hydra3333 avatar Jan 16 '24 05:01 hydra3333

@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.

nikolasr avatar Jan 24 '24 20:01 nikolasr