UbuntuにNVENCをインストールしてエンコードしてみる

creation date 2017/06/26 03:01 last date modified 2017/06/26 19:13 | category: | tags: Ubuntu
スポンサード リンク

wget http://www.nasm.us/pub/nasm/releasebuilds/2.13.01/nasm-2.13.01.tar.bz2 tar xjf nasm-2.13.01.tar.bz2 rm -f nasm-2.13.01.tar.bz2

sudo apt-get -y install libtool

wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master tar xzvf fdk-aac.tar.gz cd mstorsjo-fdk-aac* autoreconf -fiv ./configure --prefix="$HOME/ffmpeg_build" --disable-shared make -j$(nproc) make -j$(nproc) install make -j$(nproc) distclean

./configure --pkg-config-flags="--static" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --enable-cuda-sdk --enable-cuvid --enable-libnpp --extra-cflags=-I../nv_sdk --extra-ldflags=-L../nv_sdk --extra-cflags="-I/usr/local/cuda/include/" --extra-ldflags=-L/usr/local/cuda/lib64/ --enable-gpl --enable-libass --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-nvenc --enable-nonfree

$ ffmpeg -i ./test.ts -vcodec hevc_nvenc test.mp4

[hevc_nvenc @ 0x3443b60] Driver does not support the required nvenc API version. Required: 8.0 Found: 7.1 [hevc_nvenc @ 0x3443b60] The minimum required Nvidia driver for nvenc is 378.13 or newer

Comments !

social