sudo apt-get install build-essential git yasm nasm unzip wget sysstat apt-get install nvidia-384 nvidia-384-dev -y apt-get install nvidia-cuda-toolkit --install-recommends -y sudo systemctl reboot mkdir Development cd Development wget -c https://github.com/jniltinho/oficinadotux/raw/master/ffmpeg_nvenc/Video_Codec_SDK_8.0.14.zip unzip Video_Codec_SDK_8.0.14.zip sudo cp Video_Codec_SDK_8.0.14/Samples/common/inc/*.h /usr/local/include wget http://developer.download.nvidia.com/compute/redist/ffmpeg/1511-patch/cudautils.zip unzip cudautils.zip cd cudautils make cd .. git clone git://git.videolan.org/x264.git cd x264 ./configure --disable-cli --enable-static --enable-shared --disable-asm --enable-strip make -j 4 sudo make install sudo ldconfig cd .. git clone git://source.ffmpeg.org/ffmpeg.git wget http://developer.download.nvidia.com/compute/redist/ffmpeg/1511-patch/ffmpeg_NVIDIA_gpu_acceleration.patch cd ffmpeg git reset --hard b83c849e8797fbb972ebd7f2919e0f085061f37f git apply ../ffmpeg_NVIDIA_gpu_acceleration.patch **** replace libavcodec/libx264.c by ezhometech libx264.c **** cd .. mkdir ffmpeg_build cd ffmpeg_build ../ffmpeg/configure --enable-nonfree --enable-nvenc --enable-nvresize --extra-cflags=-I../cudautils --extra-ldflags=-L../cudautils --enable-gpl --enable-libx264 make -j 4 ./ffmpeg -encoders | grep 264 ./ffmpeg -filters | grep nvresize sudo make install sudo ldconfig