cuda先自己装
Clone ffnvcodec (但要找到相应的专有版本) git clone https://git.videolan.org/git/ffmpeg/NV-codec-headers.git
installffnvcodeccdnv-codec-headerssudomakeinstall
clone ffmpeg’spublicgitrepository.git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg /
installnecessarypackages.sudo apt-getinstallbuild-essentialyasmcmakelibtoollibc6libc6- devunzipwgetlibnuma1lib numa-dev
configure./configure---enable-shared---prefix=/usr/local/f mpeg---enable-nonfree---enable
Compile make -j 8
installthelibraries.make install