

This will cause the configure script to fail with the message 'ERROR: failed checking for nvcc.'.

nvcc from CUDA toolkit version 11.0 or higher does not support compiling for 'compute_30'.Not specifying -extra-ldflags in the correct format will lead to error - argument not recognized.It is required for enabling NVCUVID, otherwise the configuration will lead to an error - “ CUDA Not found”.

Make sure cuda.h is available in /usr/local/cuda/include along with SDK header files.Msys (and not Msys2) cannot launch the mingw64 command shell.Using mingw32 would result in errors such as - “ Relocation truncated to fit - R_X86_64_32”. Make sure you are using mingw64 for a 64-bit system.Please check out a release version if it is broken, or use an older snapshot. To compile FFmpeg on WSL, follow the steps as specified in Compiling for Linux.Ĭommonly faced issues and tips to resolve them To compile FFmpeg on Linux, do the following:Ĭompiling for Windows Subsystem for Linux (WSL)įFmpeg with NVIDIA GPU acceleration is supported on WSL. 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.
