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: cuvid requested, but not all dependencies are satisfied: ffnvcodec #187

Open
whittinghamj opened this issue Mar 27, 2023 · 5 comments

Comments

@whittinghamj
Copy link

Im running this script on a brand new ubuntu 22 install and get the following error

ERROR: cuvid requested, but not all dependencies are satisfied: ffnvcodec

@PhiSYS
Copy link

PhiSYS commented Mar 28, 2023

Same as #183

@JohnBFrm
Copy link

JohnBFrm commented Apr 10, 2023

Changing
--disable-ffnvcodec
to
--enable-ffnvcodec
in the script "build-ffmpeg" temporarily solves the issue and allows it to compile

--disable-ffnvcodec
is supposed to result in ffmpeg autodetecting the presence of the headers, but this for some reason isn't working, even when they are present system-wide or in the include directories. I've not gone further into finding out why yet.

@tuxthepenguin84
Copy link

Thanks, this worked for me but I also had to modify my path and add the following since I'm building the nv-codec-headers under the HWaccel library section.

Here's my git diff that let's me successfully build:

diff --git a/build-ffmpeg b/build-ffmpeg
index 357b140..5a9559b 100755
--- a/build-ffmpeg
+++ b/build-ffmpeg
@@ -869,11 +869,12 @@ fi
 ##
 
 if [[ "$OSTYPE" == "linux-gnu" ]]; then
+  export PATH=$PATH:/usr/local/cuda/bin
   if command_exists "nvcc"; then
     if build "nv-codec" "11.1.5.2"; then
       download "https://github.com/FFmpeg/nv-codec-headers/releases/download/n11.1.5.2/nv-codec-headers-11.1.5.2.tar.gz"
       execute make PREFIX="${WORKSPACE}"
-      execute make PREFIX="${WORKSPACE}/usr" install
+      execute make PREFIX="${WORKSPACE}" install
       build_done "nv-codec" "11.1.5.2"
     fi
     CFLAGS+=" -I/usr/local/cuda/include"
@@ -929,7 +930,7 @@ download "https://github.com/FFmpeg/FFmpeg/archive/refs/heads/release/$FFMPEG_VE
   --enable-static \
   --enable-small \
   --enable-version3 \
-  --disable-ffnvcodec \
+  --enable-ffnvcodec \
   --extra-cflags="${CFLAGS}" \
   --extra-ldexeflags="${LDEXEFLAGS}" \
   --extra-ldflags="${LDFLAGS}" \

@garyritchie
Copy link

garyritchie commented May 2, 2023

I also set line 932 to --enable-ffnvcodec but that wasn't enough. After some searching I tried this and it worked...

cd packages/nv-codec-headers-11.1.5.2/
make install PREFIX=~/ffmpeg-build-script/workspace/usr

(Ubuntu 22.04)

@kirk29974
Copy link

#183 (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

6 participants