maintainer-feedback requested: [Bug 264027] multimedia/ffmpeg: add NVENC option

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 16 May 2022 21:08:57 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-multimedia
(Nobody) <multimedia@FreeBSD.org> for maintainer-feedback:
Bug 264027: multimedia/ffmpeg: add NVENC option
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264027



--- Description ---
1. Mostly taken from
https://github.com/scfarley/ports/commit/42b8875ea435c0fb4ff8a1d9db8797f6fa25be
37.

2. Would be nice to make this a default setting as well.

3. At the moment there are no native FreeBSD versions of
libcuda.so/libnvidia-encode.so/libnvcuvid.so, so to actually use NVENC we need
to load the Linux binaries for those libs with the help of emulators/libc6-shim
and the `nv-sglrun` script from that port. Something like this:

% sudo pkg install nvidia-driver linux-nvidia-libs libc6-shim obs-studio
% nv-sglrun obs

4. nvidia-driver version should be >= 495.