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

Can it support CUDA acceleration? #31

Open
sirstrone opened this issue Aug 14, 2023 · 3 comments
Open

Can it support CUDA acceleration? #31

sirstrone opened this issue Aug 14, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@sirstrone
Copy link

Hi,

libVmaf seems to be able to use CUDA for computational acceleration(Netflix/vmaf#1185), which is a great improvement.
easyVmaf can support this feature? Using the CPU for computation is a bit slow.

Thank you.

@gdavila
Copy link
Owner

gdavila commented Nov 17, 2023

Hi @sirstrone

Sorry for my late reply, easyVmaf is just a wrapper to automatically deal with the preprocessing required for VMAF computations. So it fully rely on ffmpeg and libvmaf at the end of the day. I just took a look to cuda option, I would say it is not supported but should be really simply to add it.

would be great if someone can share some sample ffmpeg commands to compute vmaf with cuda to get started.

@sirstrone
Copy link
Author

Hi @gdavila
Thank you for your reply.
I previously tried following the vmaf-cuda PR and compiled an FFmpeg integrated with LibVmaf-cuda. Its usage is very simple; you just need to replace the inputCmd.
inputCmd = f'-hwaccel cuda -hwaccel_output_format cuda -an {self.main.videoSrc} -hwaccel cuda -hwaccel_output_format cuda -an {self.ref.videoSrc} -map 0:v -map 1:v'
However, currently, this PR only supports Vmaf's CUDA acceleration and seems to lack support for SSIM and other metrics computation. I am not sure how to replace the SSIM alignment part of easyVmaf.

@gdavila gdavila added the enhancement New feature or request label Dec 6, 2023
@MDKAOD
Copy link

MDKAOD commented Feb 3, 2024

FYI VMAF 3.0 includes native cuda support. Perhaps this can be revisited?

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

No branches or pull requests

3 participants