m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.53k stars 263 forks source link

ERROR: nvenc requested but not found #2522

Open mrtajniak opened 1 year ago

mrtajniak commented 1 year ago

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

hydra3333 commented 1 year ago

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.

mrtajniak commented 1 year ago

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

hydra3333 commented 1 year ago

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

mrtajniak commented 1 year ago

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

hydra3333 commented 1 year ago

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
mrtajniak commented 1 year ago

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

mrtajniak commented 1 year ago

I need VVC and HEVC nvenc

hydra3333 commented 12 months ago

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

dongrixinyu commented 8 months ago

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
ffmpeg-user@ffmpeg.org 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 commented 8 months ago

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.
hydra3333 commented 8 months ago

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.

nikolasr commented 8 months ago

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