Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: nvenc requested but not found #2522

Open
mrtajniak opened this issue Sep 29, 2023 · 12 comments
Open

ERROR: nvenc requested but not found #2522

mrtajniak opened this issue Sep 29, 2023 · 12 comments

Comments

@mrtajniak
Copy link

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

@hydra3333
Copy link
Contributor

eek. I rely on on nvenc and vapoursynth baked into in ffmpeg..

Please also see #2514 (comment) for suggestion on how to possibly contribute to updating MABS.

@mrtajniak
Copy link
Author

mrtajniak commented Sep 30, 2023

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

@hydra3333
Copy link
Contributor

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
Copy link
Author

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

@hydra3333
Copy link
Contributor

hydra3333 commented Oct 1, 2023

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
Copy link
Author

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

@mrtajniak
Copy link
Author

I need VVC and HEVC nvenc

@hydra3333
Copy link
Contributor

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

@dongrixinyu
Copy link

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
Copy link

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
Copy link
Contributor

hydra3333 commented Jan 16, 2024

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
Copy link

nikolasr commented Jan 24, 2024

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

jrottenberg added a commit to jrottenberg/ffmpeg that referenced this issue Feb 11, 2024
jrottenberg added a commit to jrottenberg/ffmpeg that referenced this issue Feb 12, 2024
* ubuntu 22.04 base

* refreshed nvidia base

* skip lcb, it's in docker anyway

* m-ab-s/media-autobuild_suite#2522 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants