Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter "scale_cuda" #91

Open
Aleksoid1978 opened this issue Oct 18, 2021 · 8 comments
Open

Add filter "scale_cuda" #91

Aleksoid1978 opened this issue Oct 18, 2021 · 8 comments

Comments

@Aleksoid1978
Copy link

It is possible to add ?

@Sibras
Copy link
Member

Sibras commented Oct 19, 2021

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.

@Aleksoid1978
Copy link
Author

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

@Aleksoid1978
Copy link
Author

Aleksoid1978 commented Oct 19, 2021

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

@Sibras
Copy link
Member

Sibras commented Oct 19, 2021

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.

@Aleksoid1978
Copy link
Author

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 ?

@Sibras
Copy link
Member

Sibras commented Oct 20, 2021

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

@Aleksoid1978
Copy link
Author

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

@zhuya1996
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants