2017-01-05 8 views
-1

NVIDIAハードウェアアクセラレーションをサポートするようにffmpegをコンパイルしようとしています。しかし、次のエラーが発生しています:NVIDIAハードウェアアクセラレーションをサポートするためにffmpegをコンパイルできません

libavcodec/cuvid.c: In function ‘check_cu’: 
libavcodec/cuvid.c:83:5: error: implicit declaration of function ‘cuGetErrorName’ [-Werror=implicit-function-declaration] 
    cuGetErrorName(err, &err_name); 
    ^
libavcodec/cuvid.c:84:5: error: implicit declaration of function ‘cuGetErrorString’ [-Werror=implicit-function-declaration] 
    cuGetErrorString(err, &err_string); 

NVIDIA Developerフォーラムの指示に従ってCUDAをインストールしました。私が使用した設定は:

私のラップトップのGPUは、NVIDIA Corporation GM108M [GeForce 840M]です。

答えて

0

はCUDAユーティリティをインストールしてください:

$ wget http://developer.download.nvidia.com/compute/redist/ffmpeg/1511-patch/cudautils.zip 
$ unzip cudautils.zip 
$ cd cudautils 
$ make 

およびコンフィギュレーションに追加します:--extra-CFLAGS = -I ../ cudautils --extra-LDFLAGS = -L ../ cudautils

いずれにしてもthis manualが良いでしょう。

0

あなたは次のようにそれを設定必要があります。

に./configure --enable-nonfreeを--disable-共有--enable-nvenc --enable-CUDA --enable-cuvid - enable-libnpp --extra-cflags = -Ilocal/include --extra-cflags = -I ../ PATH_TO_NVENC_SDK --extra-ldflags = -L ../ PATH_TO_NVENC_SDK

関連する問題