
To work around this error, use -nvccflags="-gencode arch=compute_52,code=sm_52 -O2" which overrides the default nvcc flags. This will cause the configure script to fail with the message 'ERROR: failed checking for nvcc.'.


It will also clone the FFMPEG and other relevant repositories. Choose the libraries that you want to include in your build (license restrictions may apply for some libraries)Īfter selecting all the options, the Media Autobuild Suite script will download the MingW environment and all the required dependencies.Go to the folder media-autobuild_suite and run media-autobuild_suite.bat.To compile FFmpeg on Linux, do the following: More Information on building FFmpeg can be found at: įFmpeg with NVIDIA GPU acceleration is supported on all Linux platforms. Download the FFmpeg source code repository and compile it using an appropriate compiler. To compile FFmpeg, the CUDA toolkit must be installed on the system, though the CUDA toolkit is not needed to run the FFmpeg compiled binary.īefore using FFmpeg, it is recommended to refer to the FFmpeg documentation, note the version of the Video Codec SDK it uses, and ensure that the minimum driver required for that version of the Video Codec SDK is installed.įFmpeg is an open-source project. FFmpeg has been compiled and tested with Microsoft Visual Studio 2013 SP2 and above (Windows), MinGW (msys2-x86_64-20161025) (Windows) and gcc 4.8 and above (Linux) compilers.įFmpeg requires separate git repository nvcodec-headers for NV-accelerated ffmpeg build. įor the rest of this document, it is assumed that the system being used has a GPU which has both NVENC and NVDEC.įFmpeg supports both Windows and Linux.

FFmpeg with NVIDIA GPU acceleration requires a system with Linux or Windows operating system and a supported NVIDIA GPU.įor a list of supported GPUs, refer to.
