


hevc H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_cuvid ) (encoders: nvenc_hevc hevc_nvenc )Ĭompare FFmpeg Transcode Performance with NVENC and libx264 configure -enable-nonfree -enable-nvenc -enable-libx264 -enable-gpl -enable-cuda -enable-cuvid -enable-cuda-nvccĮxample output: DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_v4l2m2m h264_cuvid ) (encoders: libx264 libx264rgb h264_nvenc h264_v4l2m2m nvenc nvenc_h264 )ĭEV.L. configure -disable-cli -enable-static -enable-shared -enable-stripĭownload FFmpeg sources from git or download latest stable FFmpeg release from FFmpeg website, compile and install # git clone git:///ffmpeg.gitĬonfigure and make with –enable-nonfree –enable-nvenc options (for scale use:–enable-cuda-nvcc –enable-cuda-sdk): #. It’s optional step but if you planning using in future regular software encoding also, you need install x264. # cp Video_Codec_SDK_9.0.20/Samples/common.mk /usr/local/include/

$ export PATH=/usr/local/cuda-10.1/bin$įrom NVIDIA website download Video Codec SDK from: ,Īfter unzip copy all headers: # unzip Video_Codec_SDK_9.0.20.zip IMPORTANT! Set up environment variable and LD_LIBRARY_PATH path. You can check NVIDIA GPU drivers installation by command: # nvidia-smi Install CUDA Toolkit 10.1 from NVIDIA official site. Here is Video Encode and Decode GPU Support Matrix. In our case it’s NVIDIA GP106 Pascal family GPU with NVENC support. Identify your installed NVIDIA video card: # lshw -numeric -C display To disable the default Nouveau Nvidia driver follow guide: How to disable Nouveau Nvidia driver on Ubuntu 18.04. Install CUDA Toolkot 10.1, NVIDIA drivers on Ubuntu 18.04īefore proceeding installation NVIDIA drivers on Ubuntu you must disable Nouveau kernel driver. Libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev Libavcodec-dev libavformat-dev libavutil-dev pkgconf g++ freeglut3-dev \ Install necessary software: dpkg -add-architecture i386Īpt-get install build-essential git yasm unzip wget sysstat nasm libc6:i386 \ To enable hardware acceleration transcoding in FFmpeg we need compile FFmpeg with NVENC h264 codec support. How To Compile FFmpeg With NVENC H264 Hardware Encoder in Ubuntu 18.04
