[FFmpeg-user] ffmpeg compile issue with msvc and ffnvcodec

Santosh Kamble skamble at cemtrexlabs.com
Wed May 11 17:48:21 EEST 2022


Helo,
I am facing compilation error, when I try to compile FFMPEG 4.4.2 or 4.4.1
source code using msvc and ffnvcodec.
command is as below:
./configure --enable-nonfree --disable-shared --enable-ffnvcodec
--enable-cuda-llvm --enable-gpl --disable-debug --enable-cuda-nvcc
--enable-libnpp --toolchain=msvc --extra-cflags=-I../nv_sdk
--extra-ldflags=-libpath:../nv_sdk --nvccflags="-gencode
arch=compute_61,code=sm_61 -O2"
and after configure succeeds,
make -j 8
make ends with the error:
libavfilter/vf_scale_cuda_bicubic.ptx.c(2842): fatal error C1060: compiler
is out of heap space
make: *** [ffbuild/common.mak:67: libavfilter/vf_scale_cuda_bicubic.ptx.o]
Error 2



There is similar tracticket #9019 with similar error
and a patch is provided there. But when I apply that patch
 git am 0001-Patch-for-ticket-9019-CUDA-Compile-Broken-Using-MSVC.patch
configure command fails with the error:
ERROR: failed checking for nvcc.
It seems the provided patch is for linux, since config.log shows
xxd command not found error.

Please provide the fix or patch for compilng ffmpeg with ffnvcodec using
msvc on Windows.

Thanks
Santosh K
Developer


More information about the ffmpeg-user mailing list