From: Jaroslav Kysela Date: Sat, 26 Dec 2015 18:05:29 +0000 (+0100) Subject: configure: add --enable-nvenc for static ffmpeg build, fixes #3438 X-Git-Tag: v4.2.1~1275 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f8cf9bb159934e9ebf5a01efa67f3f1a4acbb4d;p=thirdparty%2Ftvheadend.git configure: add --enable-nvenc for static ffmpeg build, fixes #3438 --- diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg index 54919a090..ba7fdfe3c 100644 --- a/Makefile.ffmpeg +++ b/Makefile.ffmpeg @@ -138,6 +138,18 @@ DECODERS += h264_vdpau endif +# +# NVENC +# + +ifeq (yes,$(CONFIG_NVENC)) + +EXTRAARG += --enable-nvenc --enable-nonfree + +ENCODERS += nvenc_h264 nvenc_hevc + +endif + # # MFX Dispatcher (libmfx) # diff --git a/configure b/configure index 4e8517553..f90d18b3e 100755 --- a/configure +++ b/configure @@ -39,6 +39,7 @@ OPTIONS=( "libx265:no" "libx265_static:yes" "vdpau:auto" + "nvenc:auto" "libmfx:no" "libmfx_static:yes" "inotify:auto" @@ -426,6 +427,15 @@ if enabled libffmpeg_static; then fi fi + # nvenc + if enabled_or_auto nvenc; then + if check_cc_header nvEncodeAPI; then + enable nvenc + elif enabled nvenc; then + die "NVENC library (https://developer.nvidia.com/nvidia-video-codec-sdk) not found" + fi + fi + # libmfx if enabled libmfx; then check_cc_lib va || die "libva not found"