vcpkg icon indicating copy to clipboard operation
vcpkg copied to clipboard

[ffmpeg] add support in portfile for NVIDIA hardware acceleration

Open marcbertola opened this issue 7 years ago • 6 comments

Hello,

FFmpeg has support for NVIDIA hardware decode and encode acceleration for H.264 and H.265 (HEVC). However, the existing portfile does not expose this functionality via the features described in the CONTROL file.

I have successfully managed to make a few small modifications to the existing CONTROL and portfile.cmake to accomplish this, and have already compiled successfully for x64-windows, x64-linux and cross-compiled from x64-linux to aarch64-linux (NVIDIA Jetson Xavier board). What is the correct procedure to perform a code review of the changes and pull request?

Also worth noting: ffmpeg's scripts depend on the presence of the header-only FFmpeg/nv-codec-headers repo. To implement my fix, I needed to add a new port for this, and create a dependency on it in the CONTROL file. https://github.com/FFmpeg/nv-codec-headers

marcbertola avatar Oct 09 '19 14:10 marcbertola

Just open a Pull request containing all your fixes, you will be guided in case any modification is necessary

cenit avatar Oct 10 '19 04:10 cenit

Ok, I need to get some other dependencies compiled before I can try this, but if testing goes well, I'll kick off the process.

marcbertola avatar Oct 10 '19 19:10 marcbertola

Ok, I need to get some other dependencies compiled before I can try this, but if testing goes well, I'll kick off the process.

Hi, marcbertola. Does the ffmpeg in vcpkg support ffnvcodec now? I didn't find any change in portfile.cmake and CONTROL. How can I compile ffmpeg with NVIDIA hardware acceleration? Thanks!

zhuohekeji avatar Nov 30 '19 06:11 zhuohekeji

Sorry - haven't gotten around to publishing it, but it works. I'll get a PR together asap and let you know as soon as it's ready.

marcbertola avatar Dec 01 '19 02:12 marcbertola

Pull request has been submitted. https://github.com/microsoft/vcpkg/pull/9171

marcbertola avatar Dec 01 '19 16:12 marcbertola

Hi @marcbertola

Thanks for your great effors and patience. Since the PR has been merged,I close this issue now.

NancyLi1013 avatar Mar 25 '20 01:03 NancyLi1013