View | Details | Raw Unified | Return to bug 49193
Collapse All | Expand All

(-)a/.gear/ffmpeg.spec (-1 / +17 lines)
Lines 13-19 Link Here
13
# License
13
# License
14
%def_enable gpl
14
%def_enable gpl
15
%def_enable version3
15
%def_enable version3
16
%def_disable nonfree
16
%def_enable nonfree
17
17
18
# Enable/Disable stuff
18
# Enable/Disable stuff
19
%def_enable doc
19
%def_enable doc
Lines 142-151 Link Here
142
142
143
# nvidia cuda doesn't support arm, mips and others
143
# nvidia cuda doesn't support arm, mips and others
144
# https://developer.nvidia.com/nvidia-video-codec-sdk/download
144
# https://developer.nvidia.com/nvidia-video-codec-sdk/download
145
# ---
146
# Describing Nvidia specific options --nvccflags:
147
# nvcc from CUDA toolkit version 11.0 or higher does not support compiling for 'compute_30' (default in ffmpeg)
148
# 52 is the minimum required for the current CUDA 11 version (Quadro M6000 , GeForce 900, GTX-970, GTX-980, GTX Titan X)
149
# https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/
150
# Anyway below 50 arch card don't support nvenc encoding hevc https://developer.nvidia.com/nvidia-video-codec-sdk (Supported devices)
151
# Nvidia docs:
152
# https://docs.nvidia.com/video-technologies/video-codec-sdk/12.1/pdf/Using_FFmpeg_with_NVIDIA_GPU_Hardware_Acceleration.pdf
145
%ifarch %ix86 x86_64 aarch64 ppc64le
153
%ifarch %ix86 x86_64 aarch64 ppc64le
146
%def_enable cuvid
154
%def_enable cuvid
155
%def_enable cuda
147
%else
156
%else
148
%def_disable cuvid
157
%def_disable cuvid
158
%def_enable cuda
149
%endif # cuvid
159
%endif # cuvid
150
160
151
%define avdevicever 60
161
%define avdevicever 60
Lines 251-256 BuildRequires: yasm Link Here
251
%{?_enable_vdpau:BuildRequires: libvdpau-devel}
261
%{?_enable_vdpau:BuildRequires: libvdpau-devel}
252
%{?_enable_vulkan:BuildRequires: libvulkan-devel}
262
%{?_enable_vulkan:BuildRequires: libvulkan-devel}
253
%{?_enable_cuvid:BuildRequires: nv-codec-headers}
263
%{?_enable_cuvid:BuildRequires: nv-codec-headers}
264
%{?_enable_cuda:BuildRequires: nvidia-cuda-toolkit}
254
265
255
%define common_descr \
266
%define common_descr \
256
FFmpeg is a collection of libraries and tools to process multimedia content\
267
FFmpeg is a collection of libraries and tools to process multimedia content\
Lines 690-695 xz Changelog Link Here
690
	%{subst_enable cuvid} \
701
	%{subst_enable cuvid} \
691
	--enable-hardcoded-tables \
702
	--enable-hardcoded-tables \
692
	--enable-runtime-cpudetect \
703
	--enable-runtime-cpudetect \
704
%if_enabled cuda
705
	--enable-cuda-nvcc \
706
	--enable-libnpp \
707
	--nvccflags="-gencode arch=compute_52,code=sm_52 -O2" \
708
%endif
693
%if_enabled debug
709
%if_enabled debug
694
	--enable-debug \
710
	--enable-debug \
695
%else
711
%else

Return to bug 49193