Commit 7a73145b authored by Fredy Pulido's avatar Fredy Pulido Committed by Fredy Pulido

ffmpeg: nvidia flags only for linux 386 and x64

Flags nvenc, nvdec and cuvid only for Linux desktop i386 / x86_64

Change-Id: If5406611602dba23e02ebce281aeaeb43bc4d53c
parent 4d9c9cc2
......@@ -223,18 +223,35 @@ FFMPEGCONF += \
--enable-hwaccel=mjpeg_vaapi \
--enable-encoder=h264_vaapi \
--enable-encoder=vp8_vaapi \
--enable-encoder=mjpeg_vaapi \
--enable-cuvid \
--enable-ffnvcodec \
--enable-nvdec \
--enable-nvenc \
--enable-hwaccel=h264_nvdec \
--enable-hwaccel=hevc_nvdec \
--enable-hwaccel=vp8_nvdec \
--enable-hwaccel=mjpeg_nvdec \
--enable-encoder=h264_nvenc \
--enable-encoder=hevc_nvenc
--enable-encoder=mjpeg_vaapi
# ffnvcodec is not supported on ARM then we enable it here for i386 and x86_64
ifeq ($(ARCH),i386)
FFMPEGCONF += --enable-cuvid \
--enable-ffnvcodec \
--enable-nvdec \
--enable-nvenc \
--enable-hwaccel=h264_nvdec \
--enable-hwaccel=hevc_nvdec \
--enable-hwaccel=vp8_nvdec \
--enable-hwaccel=mjpeg_nvdec \
--enable-encoder=h264_nvenc \
--enable-encoder=hevc_nvenc
endif
ifeq ($(ARCH),x86_64)
FFMPEGCONF += --enable-cuvid \
--enable-ffnvcodec \
--enable-nvdec \
--enable-nvenc \
--enable-hwaccel=h264_nvdec \
--enable-hwaccel=hevc_nvdec \
--enable-hwaccel=vp8_nvdec \
--enable-hwaccel=mjpeg_nvdec \
--enable-encoder=h264_nvenc \
--enable-encoder=hevc_nvenc
endif
# End Desktop Linux:
endif
# End HAVE_LINUX:
endif
ifdef HAVE_MACOSX
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment