Version 2.6 of ffmpeg supports hardware accelerated H.264 encoding with nVidia card from the Fermi and Kepler architectures, see [1]. However, the current ebuild doesn't offer a USE flag to optionally turn this feature on (default off). [1] http://git.videolan.org/?p=ffmpeg.git;a=blob;f=RELEASE_NOTES;hb=release/2.6 Reproducible: Always
good, but where can i find nvEncodeAPI.h ?
Hmmm, I guess we need a new ebuild for https://developer.nvidia.com/nvidia-video-codec-sdk :(
Created attachment 400290 [details] ffmeg with nvenc support
This one seems to work. User needs to manually download sdk from https://developer.nvidia.com/nvidia-video-codec-sdk unpack and place nvEncodeAPI.h in the ebuild's catalogue. This is only a temporary solution of course...
commit 3078ef8fab1424f2c198f6ecad63e0db3665c57f Author: Alexis Ballier <aballier@gentoo.org> Date: Sat Oct 24 13:31:31 2015 +0200 media-video/ffmpeg: Add nvenc useflag to live ebuild. Bug #542726. finally took time to add nvenc ebuild!
The hard dependency on the cuda-toolkit in the new nvenc ebuild seems unneccesary. It only copies some headers around, and ffmpeg doesn't have any external dependencies for nvenc except for a single header.
nvenc use requires --enable-nonfree, otherwise configure fails with "nvenc is nonfree and --enable-nonfree is not specified"
Are there plans to add nvenc to non-live ebuilds starting from 2.6? ffmpeg-2.8.4 is out and that's annoying to have so many packages in local overlay.
Also ffmpeg is famous for breaking api compatibility, so can't really use 9999 version.