FFmpeg icon indicating copy to clipboard operation
FFmpeg copied to clipboard

Add filter "scale_cuda"

Open Aleksoid1978 opened this issue 4 years ago • 8 comments

It is possible to add ?

Aleksoid1978 avatar Oct 18 '21 23:10 Aleksoid1978

Due to licensing issues with cuda and the gpl licensed code in ffmpeg it is not allowed to distribute ffmpeg with cuda enabled.

You can create your own build for personal use and manually enable cuda (see for instance FFVSProjectGenerator with --enable-cuda-nvcc) but its not possible to add it to the libraries distributed here.

Sibras avatar Oct 19 '21 12:10 Sibras

--enable-cuda-nvcc - will add scale_cuda ?

Aleksoid1978 avatar Oct 19 '21 12:10 Aleksoid1978

FFVSProjectGenerator error when --enable-cuda-nvcc: Error: CUDA files detected in project. CUDA compilation is not currently supported.

And then link error: 1>libavfilterd.lib(vf_scale_cuda.obj) : error LNK2001: unresolved external symbol ff_vf_scale_cuda_ptx_data 1>libavfilterd.lib(vf_scale_cuda.obj) : error LNK2001: unresolved external symbol ff_vf_scale_cuda_ptx_len

Aleksoid1978 avatar Oct 19 '21 12:10 Aleksoid1978

Ah my bad, I forgot I havnt implemented it completely in FFVSProjectGenerator.

Since the output wouldnt be distributable anyway I havnt spent much time enabling it and with any kind of sponsorship im unlikely to be able to add that feature anytime soon.

Sibras avatar Oct 19 '21 18:10 Sibras

Ah my bad, I forgot I havnt implemented it completely in FFVSProjectGenerator.

Since the output wouldnt be distributable anyway I havnt spent much time enabling it and with any kind of sponsorship im unlikely to be able to add that feature anytime soon.

How much need donate for you to implement it ?

Aleksoid1978 avatar Oct 20 '21 03:10 Aleksoid1978

How much need donate for you to implement it ?

Theres probably a couple of days of work required as unfortunately ffmpeg uses a custom nvcc compilation method so any existing cuda+VS integration wont work and a custom one would need to be created.

If your interested in funding development then feel free to email me using the email on my profile page

Sibras avatar Oct 20 '21 13:10 Sibras

I have already solved this question, I was able to build with "scale_cuda" :)

Aleksoid1978 avatar Oct 20 '21 13:10 Aleksoid1978

我已经解决了这个问题,我能够使用“scale_cuda”进行构建:) How did you solve this problem? thanks

zhuya1996 avatar Aug 10 '23 09:08 zhuya1996