2 # - avisynth+ >= 3.7.1 https://github.com/AviSynth/AviSynthPlus
4 # - libtensorflow [-ltensorflow tensorflow/c/c_api.h]
5 # - AMF >= 1.4.28.0 (available at https://github.com/GPUOpen-LibrariesAndSDKs/AMF, where is original source?)
7 # How to deal with ffmpeg/opencv/chromaprint checken-egg problem:
8 # 1. make-request -r --with bootstrap ffmpeg.spec
9 # 2 bump release of opencv.spec and chromaprint.spec
10 # 3. make-request -r opencv.spec chromaprint.spec
11 # 4. bump release of ffmpeg.spec
12 # 5. make-request -r ffmpeg.spec
15 %bcond_with bootstrap # disable features to able to build without installed ffmpeg
16 %bcond_with nonfree # unblock non free options of package (currently: cuda_nvcc, decklib, fdk_aac, npp, openssl, libressl/libtls)
17 %bcond_without amr # AMR-NB/WB de/encoding via libopencore-amrnb/wb
18 %bcond_without aom # AV1 viden de/encoding via libaom
19 %bcond_without aribb24 # ARIB text and caption decoding via libaribb24
20 %bcond_without avs # AVS encoding via xavs
21 %bcond_without avs2 # AVS2 de/encoding via libdavs2/libxavs2
22 %bcond_without bs2b # BS2B audio filter support
23 %bcond_without caca # textual display using libcaca
24 %bcond_without codec2 # codec2 support using libcodec2
25 %bcond_without chromaprint # audio fingerprinting with chromaprint
26 %bcond_with cudasdk # NVIDIA CUDA code using nvcc from CUDA SDK [BR: cuda.h, non-free]
27 %bcond_with dav1d # AV1 decoding via libdav1d
28 %bcond_without dc1394 # IIDC-1394 grabbing using libdc1394
29 %bcond_with decklink # Blackmagic DeckLink I/O support (requires nonfree)
30 %bcond_with fdk_aac # AAC de/encoding via libfdk_aac (requires nonfree)
31 %bcond_without ffnvcodec # NVIDIA codecs support using ffnvcodec headers (covered: cuda cuvid nvdec nvenc)
32 %bcond_without flite # flite voice synthesis support
33 %bcond_without frei0r # frei0r video filtering
34 %bcond_without fribidi # fribidi support
35 %bcond_with glslang # GLSL->SPIRV compilation via libglslang
36 %bcond_without gme # Game Music Emu support
37 %bcond_without gsm # GSM de/encoding via libgsm
38 %bcond_without iec61883 # ec61883 via libiec61883
39 %bcond_without ilbc # iLBC de/encoding via WebRTC libilbc
40 %bcond_without kvazaar # Kvazaar HEVC encoder support
41 %bcond_without ladspa # LADSPA audio filtering
42 %bcond_without lcms # ICC profile support via lcms2
43 %bcond_with lensfun # lensfun lens correction
44 %bcond_with libdrm # Linux Direct Rendering Manager code
45 %bcond_without libjxl # JPEG XL de/encoding via libjxl
46 %bcond_with libklvanc # Kernel Labs VANC processing (in decklink driver)
47 %bcond_without libmysofa # sofalizer filter
48 %bcond_with libplacebo # libplacebo filters
49 %bcond_without librist # RIST support via librist
50 %bcond_with librsvg # SVG rasterization via librsvg
51 %bcond_with libxml2 # XML parsing using libxml2
52 %bcond_without lv2 # LV2 audio filtering
53 %bcond_with mfx # MFX hardware acceleration support
54 %bcond_without modplug # ModPlug via libmodplug
55 %bcond_with npp # NVIDIA Performance Primitives-based code (requires nonfree) [BR: libnppc+libnppi, npp.h]
56 %bcond_without omx # OpenMAX IL support
57 %bcond_without openal # OpenAL 1.1 capture support
58 %bcond_without opencl # OpenCL 1.2 code
59 %bcond_without opencv # OpenCV video filtering
60 %bcond_without opengl # OpenGL rendering support
61 %bcond_with openh264 # OpenH264 H.264 encoder
62 %bcond_without openmpt # OpenMPT module decoder
63 %bcond_with pocketsphinx # asr filter using PocketSphinx
64 %bcond_without pulseaudio # PulseAudio input support
65 %bcond_without rabbitmq # RabbitMQ support
66 %bcond_with rav1e # AV1 encoding using rav1e
67 %bcond_with rkmpp # Rockchip Media Process Platform code [implies libdrm]
68 %bcond_without rubberband # rubberband filter
69 %bcond_without shaderc # GLSL->SPIRV compilation via libshaderc
70 %bcond_without shine # shine fixed-point MP3 encoder
71 %bcond_with smb # SMB support via libsmbclient
72 %bcond_without snappy # Snappy compression support (needed for hap encoding)
73 %bcond_without soxr # SoX Resampler support
74 %bcond_without srt # Haivision SRT protocol support
75 %bcond_without ssh # SFTP protocol support via libssh
76 %bcond_with svtav1 # AV1 encoding via SVT-AV1
77 %bcond_with tesseract # OCR filter based on Tesseract
78 %bcond_without theora # Theora encoding via libtheora
79 %bcond_with uavs3d # AVS3 decoding via libuavs3d (TODO: enable when 1.1.41 released)
80 %bcond_with v4l2_request # V4L2 request API for stateless hw decoding
81 %bcond_without va # VAAPI (Video Acceleration API)
82 %bcond_without vapoursynth # VapourSynth demuxer
83 %bcond_without vidstab # vid.stab video stabilization support
84 %bcond_without vmaf # VMAF filter support
85 %bcond_without voamrwbenc # MR-WB encoding via libvo-amrwbenc
86 %bcond_with vpl # oneVPL instead of MFX
87 %bcond_without vpx # VP8, a high-quality video codec
88 %bcond_without vulkan # Vulkan code
89 %bcond_without webp # WebP encoding support
90 %bcond_without x264 # H.264 x264 encoder
91 %bcond_without x265 # H.265/HEVC x265 encoder
92 %bcond_without xvid # vid encoding via xvidcore
93 %bcond_without zimg # zscale filter based on z.lib
94 %bcond_without zmq # 0MQ message passing
95 %bcond_without zvbi # teletext via libzvbi
96 %bcond_without doc # HTML documentation
97 %bcond_with tests # "make check" (some tests fail as of 2.5)
100 %undefine with_opencv
101 %undefine with_chromaprint
103 %if %{with rkmpp} || %{with v4l2_request}
104 %define with_libdrm 1
107 %undefine with_shaderc
113 %ifnarch %{ix86} %{x8664}
114 %undefine with_ffnvcodec
116 %ifnarch %{ix86} %{x8664} aarch64
119 %ifnarch %{ix86} %{x8664} %{arm}
125 %ifarch i686 pentium4 athlon %{x8664} x32
126 %define with_crystalhd 1
128 Summary: FFmpeg - a very fast video and audio converter
129 Summary(pl.UTF-8): FFmpeg - szybki konwerter audio/wideo
133 # LGPL or GPL, chosen at configure time (GPL version is more featured)
134 # GPL: frei0r libcdio libdavs2 rubberband vidstab x264 x265 xavs xavs2 xvid
135 # v3 (allows *GPLv3 or Apache-licensed libs): gmp lensfun opencore-amr vmaf vo-*enc rkmpp
137 License: GPL v3+ with LGPL v3+ parts
138 Group: Applications/Multimedia
139 Source0: https://ffmpeg.org/releases/%{name}-%{version}.tar.xz
140 # Source0-md5: 47b6c5d930937413c3e308e2fdb3dfb5
141 Patch0: %{name}-omx-libnames.patch
142 Patch1: %{name}-atadenoise.patch
143 Patch2: opencv4.patch
144 Patch3: v4l2-request-hwdec.patch
145 Patch4: binutils2.41.patch
146 URL: http://www.ffmpeg.org/
147 %{?with_decklink:BuildRequires: Blackmagic_DeckLink_SDK >= 10.11}
148 %{?with_openal:BuildRequires: OpenAL-devel >= 1.1}
149 %{?with_opencl:BuildRequires: OpenCL-devel >= 1.2}
150 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
151 # libomxil-bellagio-devel or limoi-core-devel (just headers, library is dlopened at runtime)
152 %{?with_omx:BuildRequires: OpenMAX-IL-devel}
153 BuildRequires: SDL2-devel >= 2.0.1
154 BuildRequires: SDL2-devel < 3.0.0
155 %{?with_vulkan:BuildRequires: Vulkan-Loader-devel >= 1.2.189}
156 BuildRequires: alsa-lib-devel
157 %{?with_aom:BuildRequires: aom-devel >= 1.0.0}
158 %{?with_aribb24:BuildRequires: aribb24-devel}
159 BuildRequires: bzip2-devel
160 BuildRequires: celt-devel >= 0.11.0
161 %{?with_codec2:BuildRequires: codec2-devel}
162 %{?with_dav1d:BuildRequires: dav1d-devel >= 0.5.0}
163 %{?with_avs2:BuildRequires: davs2-devel >= 1.6}
164 %{?with_fdk_aac:BuildRequires: fdk-aac-devel}
165 %{?with_flite:BuildRequires: flite-devel >= 1.4}
166 BuildRequires: fontconfig-devel
167 BuildRequires: freetype-devel
168 %{?with_frei0r:BuildRequires: frei0r-devel}
169 %{?with_fribidi:BuildRequires: fribidi-devel}
170 %{?with_gme:BuildRequires: game-music-emu-devel}
172 # require version with altivec support fixed
173 BuildRequires: gcc >= 5:3.3.2-3
175 %{?with_glslang:BuildRequires: glslang-devel >= 11}
176 BuildRequires: gmp-devel
177 BuildRequires: gnutls-devel
178 BuildRequires: jack-audio-connection-kit-devel
179 %{?with_kvazaar:BuildRequires: kvazaar-devel >= 0.8.1}
180 %{?with_ladspa:BuildRequires: ladspa-devel}
181 BuildRequires: lame-libs-devel >= 3.98.3
182 %{?with_lcms:BuildRequires: lcms2-devel >= 2.13}
183 %{?with_lensfun:BuildRequires: lensfun-devel >= 0.3.95}
184 BuildRequires: libass-devel >= 0.11.0
186 BuildRequires: libatomic-devel
188 %{?with_iec61883:BuildRequires: libavc1394-devel}
189 %{?with_bs2b:BuildRequires: libbs2b-devel}
190 BuildRequires: libbluray-devel
191 %{?with_caca:BuildRequires: libcaca-devel}
192 BuildRequires: libcdio-paranoia-devel >= 0.90-2
193 %{?with_chromaprint:BuildRequires: libchromaprint-devel}
194 %{?with_crystalhd:BuildRequires: libcrystalhd-devel}
195 %{?with_dc1394:BuildRequires: libdc1394-devel >= 2}
196 %{?with_libdrm:BuildRequires: libdrm-devel}
197 %{?with_gsm:BuildRequires: libgsm-devel}
198 %{?with_iec61883:BuildRequires: libiec61883-devel}
199 %{?with_libjxl:BuildRequires: libjxl-devel >= 0.7.0}
200 %{?with_libklvanc:BuildRequires: libklvanc-devel}
201 %{?with_modplug:BuildRequires: libmodplug-devel}
202 %{?with_libmysofa:BuildRequires: libmysofa-devel >= 0.7}
203 %{?with_openmpt:BuildRequires: libopenmpt-devel >= 0.4.5}
204 %{?with_libplacebo:BuildRequires: libplacebo-devel >= 4.192.0}
205 %if %{with dc1394} || %{with iec61883}
206 BuildRequires: libraw1394-devel >= 2
208 %{?with_librist:BuildRequires: librist-devel >= 0.2.7}
209 %{?with_librsvg:BuildRequires: librsvg-devel >= 2}
210 BuildRequires: librtmp-devel
211 %{?with_ssh:BuildRequires: libssh-devel}
212 %{?with_smb:BuildRequires: libsmbclient-devel}
213 %{?with_theora:BuildRequires: libtheora-devel >= 1.0-0.beta3}
214 BuildRequires: libtool >= 2:1.4d-3
215 BuildRequires: libv4l-devel
217 BuildRequires: libva-devel >= 1.0.3
218 BuildRequires: libva-drm-devel >= 1.0.3
219 BuildRequires: libva-x11-devel >= 1.0.3
221 BuildRequires: libvdpau-devel >= 1.3
222 BuildRequires: libvorbis-devel
223 %{?with_vpx:BuildRequires: libvpx-devel >= 1.4.0}
224 %{?with_webp:BuildRequires: libwebp-devel >= 0.4.0}
226 %{?with_x264:BuildRequires: libx264-devel >= 0.1.3-1.20130827_2245}
228 %{?with_x265:BuildRequires: libx265-devel >= 2.0}
229 # libxcb xcb-shm xcb-xfixes xcb-shape
230 BuildRequires: libxcb-devel >= 1.4
231 %{?with_libxml2:BuildRequires: libxml2-devel >= 2}
232 %{?with_lv2:BuildRequires: lilv-devel}
233 %{?with_v4l2_request:BuildRequires: linux-libc-headers >= 7:5.11.0}
234 %{?with_lv2:BuildRequires: lv2-devel}
235 %{?with_mfx:BuildRequires: mfx_dispatch-devel >= 1.28}
241 %{?with_ffnvcodec:BuildRequires: nv-codec-headers >= 12.0.16.0}
242 %{?with_vpl:BuildRequires: oneVPL-devel >= 2.6}
244 %{?with_amr:BuildRequires: opencore-amr-devel}
245 %{?with_opencv:BuildRequires: opencv-devel >= 2}
246 %{?with_openh264:BuildRequires: openh264-devel >= 1.3}
247 BuildRequires: openjpeg2-devel >= 2.1
248 BuildRequires: opus-devel
249 BuildRequires: perl-Encode
250 BuildRequires: perl-tools-pod
251 %{?with_pocketsphinx:BuildRequires: pocketsphinx-devel > 0.8}
252 BuildRequires: pkgconfig
253 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
254 %{?with_rabbitmq:BuildRequires: rabbitmq-c-devel >= 0.7.1}
255 %{?with_rav1e:BuildRequires: rav1e-devel >= 0.5.0}
256 %{?with_rkmpp:BuildRequires: rockchip-mpp-devel >= 1.3.7}
257 BuildRequires: rpmbuild(macros) >= 2.007
258 %{?with_rubberband:BuildRequires: rubberband-devel >= 1.8.1}
259 %{?with_shaderc:BuildRequires: shaderc-devel >= 2019.1}
260 %{?with_shine:BuildRequires: shine-devel >= 3.0.0}
261 %{?with_snappy:BuildRequires: snappy-devel}
262 %{?with_soxr:BuildRequires: soxr-devel}
263 BuildRequires: speex-devel >= 1:1.2-rc1
264 %{?with_glslang:BuildRequires: spirv-tools-devel}
265 %{?with_srt:BuildRequires: srt-devel >= 1.3}
266 %{?with_svtav1:BuildRequires: svt-av1-devel >= 0.9.0}
267 BuildRequires: tar >= 1:1.22
268 %{?with_tesseract:BuildRequires: tesseract-devel}
269 %{?with_doc:BuildRequires: tetex}
270 %{?with_doc:BuildRequires: texi2html}
271 %{?with_doc:BuildRequires: texinfo}
272 BuildRequires: twolame-devel >= 0.3.10
273 %{?with_uavs3d:BuildRequires: uavs3d-devel >= 1.1.41}
274 %{?with_v4l2_request:BuildRequires: udev-devel}
275 %{?with_vapoursynth:BuildRequires: vapoursynth-devel >= 42}
276 %{?with_vidstab:BuildRequires: vid.stab-devel >= 0.98}
277 %{?with_vmaf:BuildRequires: vmaf-devel >= 2.0.0}
278 %{?with_voamrwbenc:BuildRequires: vo-amrwbenc-devel}
279 %{?with_ilbc:BuildRequires: webrtc-libilbc-devel}
280 %{?with_avs:BuildRequires: xavs-devel}
281 %{?with_avs2:BuildRequires: xavs2-devel >= 1.3}
282 BuildRequires: xorg-lib-libX11-devel
283 BuildRequires: xorg-lib-libXext-devel
284 BuildRequires: xorg-lib-libXv-devel
285 %{?with_xvid:BuildRequires: xvid-devel >= 1:1.1.0}
287 BuildRequires: xz-devel
288 %{?with_zmq:BuildRequires: zeromq-devel >= 4.2.1}
289 %{?with_zimg:BuildRequires: zimg-devel >= 2.7.0}
290 BuildRequires: zlib-devel
291 %{?with_zvbi:BuildRequires: zvbi-devel >= 0.2.28}
292 # overflows maximum hash table size
293 BuildConflicts: pdksh < 5.2.14-57
294 Requires: %{name}-libs = %{version}-%{release}
296 Suggests: fonts-TTF-Roboto
297 Obsoletes: libpostproc < 2:1.0-1
298 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
300 %define specflags -fno-strict-aliasing -fPIC
302 # -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one)
303 %define specflags_ia32 -fomit-frame-pointer
304 # -mmmx is needed to enable <mmintrin.h> code.
305 %define specflags_i586 -mmmx
306 %define specflags_i686 -mmmx
309 FFmpeg is a complete solution to record, convert and stream audio and
310 video. It is a command line tool to convert one video file format to
311 another. It also supports grabbing and encoding in real time from a TV
314 %description -l pl.UTF-8
315 FFmpeg to kompletne rozwiÄ…zanie nagrywania, konwersji i transmisji
316 strumieni dźwięku i obrazu. Jest to działające z linii poleceń
317 narzędzie do konwersji obrazu z jednego formatu do innego. Obsługuje
318 także przechwytywanie i kodowanie w czasie rzeczywistym z karty
322 Summary: ffmpeg libraries
323 Summary(pl.UTF-8): Biblioteki ffmpeg
325 Requires: SDL2 >= 2.0.1
326 %{?with_vulkan:Requires: Vulkan-Loader >= 1.2.189}
327 %{?with_aom:Requires: aom >= 1.0.0}
328 Requires: celt >= 0.11.0
329 %{?with_dav1d:Requires: dav1d >= 0.5.0}
330 %{?with_avs2:Requires: davs2 >= 1.6}
331 %{?with_flite:Requires: flite >= 1.4}
332 %if "%(rpm -q --qf '%{V}' gnutls-devel)" >= "3.0.20"
333 # uses gnutls_certificate_set_x509_system_trust if >= 3.0.20
334 Requires: gnutls-libs >= 3.0.20
336 %{?with_kvazaar:Requires: kvazaar-libs >= 0.8.1}
337 Requires: libass >= 0.11.0
338 %{?with_libjxl:Requires: libjxl >= 0.7.0}
339 %{?with_libmysofa:Requires: libmysofa >= 0.7}
340 %{?with_openmpt:Requires: libopenmpt >= 0.4.5}
341 %{?with_libplacebo:Requires: libplacebo >= 4.192.0}
342 %{?with_librist:Requires: librist >= 0.2.7}
343 %{?with_theora:Requires: libtheora >= 1.0-0.beta3}
345 Requires: libva >= 1.0.3
346 Requires: libva-drm >= 1.0.3
347 Requires: libva-x11 >= 1.0.3
349 Requires: libvdpau >= 1.3
350 %{?with_vpx:Requires: libvpx >= 1.4.0}
351 %{?with_webp:Requires: libwebp >= 0.4.0}
352 %{?with_x264:Requires: libx264 >= 0.1.3-1.20130827_2245}
353 %{?with_x265:Requires: libx265 >= 2.0}
354 Requires: libxcb >= 1.4
355 Requires: lame-libs >= 3.98.3
356 %{?with_lcms:Requires: lcms2 >= 2.13}
357 %{?with_mfx:Requires: mfx_dispatch >= 1.28}
358 %{?with_vpl:Requires: oneVPL >= 2.6}
359 %{?with_openh264:Requires: openh264 >= 1.3}
360 Requires: openjpeg2 >= 2.1
361 %{?with_rabbitmq:Requires: rabbitmq-c >= 0.7.1}
362 %{?with_rav1e:Requires: rav1e-libs >= 0.5.0}
363 %{?with_rkmpp:Requires: rockchip-mpp >= 1.3.7}
364 %{?with_rubberband:Requires: rubberband-libs >= 1.8.1}
365 %{?with_shine:Requires: shine >= 3.0.0}
366 Requires: speex >= 1:1.2-rc1
367 %{?with_srt:Requires: srt >= 1.3}
368 %{?with_svtav1:Requires: svt-av1 >= 0.9.0}
369 Requires: twolame-libs >= 0.3.10
370 %{?with_uavs3d:Requires: uavs3d >= 1.1.41}
371 %{?with_vapoursynth:Requires: vapoursynth >= 42}
372 %{?with_vidstab:Requires: vid.stab >= 0.98}
373 %{?with_vmaf:Requires: vmaf-libs >= 2.0.0}
374 %{?with_avs2:Requires: xavs2 >= 1.3}
375 %{?with_xvid:Requires: xvid >= 1:1.1.0}
376 %{?with_zmq:Requires: zeromq >= 4.2.1}
377 %{?with_zimg:Requires: zimg >= 2.7.0}
378 %{?with_zvbi:Requires: zvbi >= 0.2.28}
381 This package contains the ffmpeg shared libraries:
382 - the codec library (libavcodec). It supports most existing encoding
383 formats (MPEG, DivX, MPEG4, AC3, DV...),
384 - demuxer library (libavformat). It supports most existing file
385 formats (AVI, MPEG, OGG, Matroska, ASF...),
386 - video postprocessing library (libpostproc).
388 %description libs -l pl.UTF-8
389 Ten pakiet zawiera biblioteki współdzielone ffmpeg:
390 - bibliotekę kodeków (libavcodec); obsługuje większość istniejących
391 formatów kodowania (MPEG, DivX, MPEG4, AC3, DV...),
392 - bibliotekę demuksera (libavformat); obsługuje większość istniejących
393 formatów plików (AVI, MPEG, OGG, Matroska, ASF...),
394 - bibliotekÄ™ postprocessingu (libpostproc).
397 Summary: ffmpeg header files
398 Summary(pl.UTF-8): Pliki nagłówkowe ffmpeg
399 Group: Development/Libraries
400 Requires: %{name}-libs = %{version}-%{release}
401 # Libs.private from *.pc
402 %{?with_openal:Requires: OpenAL-devel >= 1.1}
403 %{?with_opencl:Requires: OpenCL-devel >= 1.2}
404 %{?with_opengl:Requires: OpenGL-devel}
405 Requires: SDL2-devel >= 2.0.1
406 %{?with_vulkan:Requires: Vulkan-Loader-devel >= 1.2.189}
407 Requires: alsa-lib-devel
408 %{?with_aom:Requires: aom-devel >= 1.0.0}
409 %{?with_aribb24:Requires: aribb24-devel}
410 Requires: bzip2-devel
411 Requires: celt-devel >= 0.11.0
412 %{?with_codec2:Requires: codec2-devel}
413 %{?with_dav1d:Requires: dav1d-devel >= 0.5.0}
414 %{?with_avs2:Requires: davs2-devel >= 1.6}
415 %{?with_fdk_aac:Requires: fdk-aac-devel}
416 %{?with_flite:Requires: flite-devel >= 1.4}
417 Requires: fontconfig-devel
418 Requires: freetype-devel
419 %{?with_fribidi:Requires: fribidi-devel}
420 %{?with_gme:Requires: game-music-emu-devel}
421 %{?with_glslang:Requires: glslang-devel}
422 Requires: gnutls-devel
423 Requires: jack-audio-connection-kit-devel
424 %{?with_kvazaar:Requires: kvazaar-devel >= 0.8.1}
425 Requires: lame-libs-devel >= 3.98.3
426 %{?with_lcms:Requires: lcms2-devel >= 2.13}
427 %{?with_lensfun:Requires: lensfun-devel >= 0.3.95}
428 Requires: libass-devel >= 0.11.0
429 %{?with_iec61883:Requires: libavc1394-devel}
430 Requires: libbluray-devel
431 %{?with_bs2b:Requires: libbs2b-devel}
432 %{?with_caca:Requires: libcaca-devel}
433 Requires: libcdio-paranoia-devel >= 0.90-2
434 %{?with_chromaprint:Requires: libchromaprint-devel}
435 %{?with_crystalhd:Requires: libcrystalhd-devel}
436 %{?with_dc1394:Requires: libdc1394-devel >= 2}
437 %{?with_libdrm:Requires: libdrm-devel}
438 %{?with_gsm:Requires: libgsm-devel}
439 %{?with_iec61883:Requires: libiec61883-devel}
440 %{?with_libjxl:Requires: libjxl-devel >= 0.7.0}
441 %{?with_libklvanc:Requires: libklvanc-devel}
442 %{?with_modplug:Requires: libmodplug-devel}
443 %{?with_libmysofa:Requires: libmysofa-devel >= 0.7}
444 %{?with_openmpt:Requires: libopenmpt-devel >= 0.4.5}
445 %if %{with dc1394} || %{with iec61883}
446 Requires: libraw1394-devel >= 2
448 %{?with_librist:Requires: librist-devel >= 0.2.7}
449 %{?with_librsvg:Requires: librsvg-devel >= 2}
450 Requires: librtmp-devel
451 %{?with_smb:Requires: libsmbclient-devel}
452 %{?with_ssh:Requires: libssh-devel}
453 Requires: libstdc++-devel
454 %{?with_theora:Requires: libtheora-devel >= 1.0-0.beta3}
455 Requires: libv4l-devel
456 %{?with_va:Requires: libva-devel >= 1.0.3}
457 %{?with_va:Requires: libva-drm-devel >= 1.0.3}
458 %{?with_va:Requires: libva-x11-devel >= 1.0.3}
459 Requires: libvdpau-devel >= 1.3
460 Requires: libvorbis-devel
461 %{?with_vpx:Requires: libvpx-devel >= 1.4.0}
462 %{?with_webp:Requires: libwebp-devel >= 0.4.0}
463 %{?with_x264:Requires: libx264-devel >= 0.1.3-1.20130827_2245}
464 %{?with_x265:Requires: libx265-devel >= 2.0}
465 # libxcb xcb-shm xcb-xfixes xcb-shape
466 Requires: libxcb-devel >= 1.4
467 %{?with_libxml2:Requires: libxml2-devel >= 2}
468 %{?with_lv2:Requires: lilv-devel}
469 %{?with_mfx:Requires: mfx_dispatch-devel >= 1.28}
470 %{?with_vpl:Requires: oneVPL-devel >= 2.6}
471 %{?with_amr:Requires: opencore-amr-devel}
472 %{?with_opencv:Requires: opencv-devel >= 2}
473 %{?with_openh264:Requires: openh264-devel >= 1.3}
474 Requires: openjpeg2-devel >= 2.1
476 %{?with_pulseaudio:Requires: pulseaudio-devel}
477 %{?with_rabbitmq:Requires: rabbitmq-c-devel >= 0.7.1}
478 %{?with_rav1e:Requires: rav1e-devel >= 0.5.0}
479 %{?with_rkmpp:Requires: rockchip-mpp-devel >= 1.3.7}
480 %{?with_rubberband:Requires: rubberband-devel >= 1.8.1}
481 %{?with_shaderc:Requires: shaderc-devel >= 2019.1}
482 %{?with_shine:Requires: shine-devel >= 3.0.0}
483 %{?with_snappy:Requires: snappy-devel}
484 %{?with_soxr:Requires: soxr-devel}
485 Requires: speex-devel >= 1:1.2-rc1
486 %{?with_glslang:Requires: spirv-tools-devel}
487 %{?with_srt:Requires: srt-devel >= 1.3}
488 %{?with_svtav1:Requires: svt-av1-devel >= 0.9.0}
489 %{?with_tesseract:Requires: tesseract-devel}
490 Requires: twolame-devel >= 0.3.10
491 %{?with_uavs3d:Requires: uavs3d-devel >= 1.1.41}
492 %{?with_vapoursynth:Requires: vapoursynth-devel >= 42}
493 %{?with_vidstab:Requires: vid.stab-devel >= 0.98}
494 %{?with_voamrwbenc:Requires: vo-amrwbenc-devel}
495 %{?with_vmaf:Requires: vmaf-devel >= 2.0.0}
496 %{?with_ilbc:Requires: webrtc-libilbc-devel}
497 %{?with_avs:Requires: xavs-devel}
498 %{?with_avs2:Requires: xavs2-devel >= 1.3}
499 Requires: xorg-lib-libX11-devel
500 Requires: xorg-lib-libXext-devel
501 Requires: xorg-lib-libXv-devel
502 %{?with_xvid:Requires: xvid-devel >= 1:1.1.0}
504 %{?with_zmq:Requires: zeromq-devel >= 4.2.1}
505 %{?with_zimg:Requires: zimg-devel >= 2.7.0}
507 %{?with_zvbi:Requires: zvbi-devel >= 0.2.28}
508 Obsoletes: libpostproc-devel < 2:1.0-1
513 %description devel -l pl.UTF-8
514 Pliki nagłówkowe ffmpeg.
517 Summary: ffmpeg static libraries
518 Summary(pl.UTF-8): Statyczne biblioteki ffmpeg
519 Group: Development/Libraries
520 Requires: %{name}-devel = %{version}-%{release}
523 ffmpeg static libraries (libavcodec and libavformat).
525 %description static -l pl.UTF-8
526 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
529 Summary: FFplay - SDL-based media player
530 Summary(pl.UTF-8): FFplay - odtwarzacz mediów oparty na SDL
531 Group: Applications/Multimedia
532 Requires: %{name}-libs = %{version}-%{release}
535 FFplay is a very simple and portable media player using the FFmpeg
536 libraries and the SDL library. It is mostly used as a test bench for
537 the various APIs of FFmpeg.
539 %description ffplay -l pl.UTF-8
540 FFplay to bardzo prosty i przenośny odtwarzacz mediów używający
541 bibliotek FFmpeg oraz biblioteki SDL. Jest używany głównie do
542 testowania różnych API FFmpeg.
545 Summary: FFmpeg documentation in HTML format
546 Summary(pl.UTF-8): Dokumentacja pakietu FFmpeg w formacie HTML
551 FFmpeg documentation in HTML format.
553 %description doc -l pl.UTF-8
554 Dokumentacja pakietu FFmpeg w formacie HTML.
561 %if %{with v4l2_request}
566 # package the grep result for mplayer, the result formatted as ./mplayer/configure
567 cat <<EOF > ffmpeg-avconfig
569 libavdecoders_all="$(sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
570 libavencoders_all="$(sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
571 libavparsers_all="$(sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
572 libavbsfs_all="$(sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
573 libavdemuxers_all="$(sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
574 libavmuxers_all="$(sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
575 libavprotocols_all="$(sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
576 libavhwaccels_all="$(sed -n 's/^[^#]*HWACCEL.*(.*, *\(.*\)).*/\1_hwaccel/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
577 libavfilters_all="$(sed -n 's/^[^#]*FILTER.*(.*, *\(.*\),.*).*/\1_filter/p' libavfilter/allfilters.c | tr '[a-z]' '[A-Z]')"
579 cat <<'EOF' >> ffmpeg-avconfig
583 echo $libavdecoders_all
586 echo $libavencoders_all
589 echo $libavparsers_all
595 echo $libavdemuxers_all
598 echo $libavmuxers_all
601 echo $libavprotocols_all
604 echo $libavhwaccels_all
607 echo $libavfilters_all
631 # - it's not autoconf configure
632 # - --disable-debug, --disable-optimizations, tune=generic causes not to override our optflags
634 --arch=%{_target_base_arch} \
635 --prefix=%{_prefix} \
636 --libdir=%{_libdir} \
637 --shlibdir=%{_libdir} \
638 --mandir=%{_mandir} \
639 --extra-cflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcflags}%{?with_decklink: -I/usr/include/decklink}%{?with_opencv: -I/usr/include/opencv4}" \
640 --extra-cxxflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcxxflags}%{?with_decklink: -I/usr/include/decklink}%{?with_opencv: -I/usr/include/opencv4}" \
641 --extra-ldflags="%{rpmcflags} %{rpmldflags}" \
643 --extra-libs="-latomic" \
647 --disable-optimizations \
648 --disable-stripping \
649 %{!?with_doc:--disable-doc} \
651 %{?with_chromaprint:--enable-chromaprint} \
652 %{?with_cudasdk:--enable-cuda-nvcc} \
653 %{?with_decklink:--enable-decklink} \
654 %{!?with_ffnvcodec:--disable-ffnvcodec} \
658 %{?with_frei0r:--enable-frei0r} \
659 %{?with_ladspa:--enable-ladspa} \
660 %{?with_lcms:--enable-lcms2} \
661 %{?with_aom:--enable-libaom} \
662 %{?with_aribb24:--enable-libaribb24} \
665 %{?with_bs2b:--enable-libbs2b} \
666 %{?with_caca:--enable-libcaca} \
669 %{?with_codec2:--enable-libcodec2} \
670 %{?with_dav1d:--enable-libdav1d} \
671 %{?with_avs2:--enable-libdavs2} \
672 %{?with_dc1394:--enable-libdc1394} \
673 %{?with_libdrm:--enable-libdrm} \
674 %{?with_flite:--enable-libflite} \
675 --enable-libfontconfig \
676 --enable-libfreetype \
677 %{?with_fribidi:--enable-libfribidi} \
678 %{?with_glslang:--enable-libglslang} \
679 %{?with_gme:--enable-libgme} \
680 %{?with_gsm:--enable-libgsm} \
681 %{?with_iec61883:--enable-libiec61883} \
682 %{?with_ilbc:--enable-libilbc} \
684 %{?with_libjxl:--enable-libjxl} \
685 %{?with_kvazaar:--enable-libkvazaar} \
686 %{?with_libklvanc:--enable-libklvanc} \
687 %{?with_lensfun:--enable-liblensfun} \
688 %{?with_mfx:--enable-libmfx} \
689 %{?with_modplug:--enable-libmodplug} \
690 --enable-libmp3lame \
691 %{?with_libmysofa:--enable-libmysofa} \
692 %{?with_amr:--enable-libopencore-amrnb} \
693 %{?with_amr:--enable-libopencore-amrwb} \
694 %{?with_opencv:--enable-libopencv} \
695 %{?with_openh264:--enable-libopenh264} \
696 --enable-libopenjpeg \
697 %{?with_openmpt:--enable-libopenmpt} \
699 %{?with_libplacebo:--enable-libplacebo} \
700 %{?with_pulseaudio:--enable-libpulse} \
701 %{?with_rabbitmq:--enable-librabbitmq} \
702 %{?with_rav1e:--enable-librav1e} \
703 %{?with_librist:--enable-librist} \
704 %{?with_librsvg:--enable-librsvg} \
706 %{?with_rubberband:--enable-librubberband} \
707 %{?with_shaderc:--enable-libshaderc} \
708 %{?with_shine:--enable-libshine} \
709 %{?with_smb:--enable-libsmbclient} \
710 %{?with_snappy:--enable-libsnappy} \
711 %{?with_soxr:--enable-libsoxr} \
713 %{?with_srt:--enable-libsrt} \
714 %{?with_ssh:--enable-libssh} \
715 %{?with_svtav1:--enable-libsvtav1} \
716 %{?with_tesseract:--enable-libtesseract} \
717 %{?with_theora:--enable-libtheora} \
718 --enable-libtwolame \
719 %{?with_uavs3d:--enable-libuavs3d} \
721 %{?with_vidstab:--enable-libvidstab} \
722 %{?with_vmaf:--enable-libvmaf} \
723 %{?with_voamrwbenc:--enable-libvo-amrwbenc} \
725 %{?with_vpx:--enable-libvpx} \
726 %{?with_webp:--enable-libwebp} \
727 %{?with_x264:--enable-libx264} \
728 %{?with_x265:--enable-libx265} \
729 %{?with_avs:--enable-libxavs} \
730 %{?with_avs2:--enable-libxavs2} \
732 %{?with_libxml2:--enable-libxml2} \
733 %{?with_xvid:--enable-libxvid} \
734 %{?with_zimg:--enable-libzimg} \
735 %{?with_zmq:--enable-libzmq} \
736 %{?with_zvbi:--enable-libzvbi} \
737 %{?with_lv2:--enable-lv2} \
738 %{?with_omx:--enable-omx} \
739 %{?with_openal:--enable-openal} \
740 %{?with_opencl:--enable-opencl} \
741 %{?with_opengl:--enable-opengl} \
742 %{?with_pocketsphinx:--enable-pocketsphinx} \
745 %{?with_rkmpp:--enable-rkmpp} \
748 %{!?with_va:--disable-vaapi} \
749 %{?with_vapoursynth:--enable-vapoursynth} \
750 %{!?with_vulkan:--disable-vulkan} \
751 %if %{with v4l2_request}
753 --enable-v4l2-request \
755 %ifnarch %{ix86} %{x8664}
766 %{?with_fdk_aac:--enable-libfdk-aac} \
767 %{?with_npp:--enable-libnpp} \
769 --enable-runtime-cpudetect
774 # CC_O to add -c to commandline. makefile should be patched
775 %{__make} tools/qt-faststart V=1 CC_O='-c -o $@'
777 %{?with_tests:%{__make} check V=1}
780 rm -rf $RPM_BUILD_ROOT
781 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
782 $RPM_BUILD_ROOT%{_includedir}/ffmpeg
784 %{__make} install install-headers \
785 DESTDIR=$RPM_BUILD_ROOT \
788 # install nonstandard, non-public headers manually
789 cp -a config.h $RPM_BUILD_ROOT%{_includedir}/ffmpeg
790 for a in libavutil/*/{asm,bswap}.h; do
791 install -Dp $a $RPM_BUILD_ROOT%{_includedir}/$a
793 cp -a libavformat/riff.h $RPM_BUILD_ROOT%{_includedir}/libavformat
795 install -p tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
797 # install as ffmpeg-avconfig to avoid with possible programs looking for
798 # ffmpeg-config and expecting --libs output from it which is not implemented
799 # simple to do (by querying pkgconfig), but why?
800 install -p ffmpeg-avconfig $RPM_BUILD_ROOT%{_bindir}/ffmpeg-avconfig
802 # packaged as %doc in -doc
804 %{__rm} $RPM_BUILD_ROOT%{_docdir}/ffmpeg/*.{css,html}
807 install -d $RPM_BUILD_ROOT%{_examplesdir}
808 %{__mv} $RPM_BUILD_ROOT%{_datadir}/ffmpeg/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
811 rm -rf $RPM_BUILD_ROOT
813 %post libs -p /sbin/ldconfig
814 %postun libs -p /sbin/ldconfig
817 %defattr(644,root,root,755)
818 %doc CREDITS LICENSE.md MAINTAINERS README.md RELEASE_NOTES doc/APIchanges
819 %attr(755,root,root) %{_bindir}/ffmpeg
820 %attr(755,root,root) %{_bindir}/ffprobe
821 %attr(755,root,root) %{_bindir}/qt-faststart
822 %dir %{_datadir}/ffmpeg
823 %{_datadir}/ffmpeg/*.ffpreset
824 %{_datadir}/ffmpeg/ffprobe.xsd
826 %{_mandir}/man1/ffmpeg.1*
827 %{_mandir}/man1/ffmpeg-all.1*
828 %{_mandir}/man1/ffmpeg-bitstream-filters.1*
829 %{_mandir}/man1/ffmpeg-codecs.1*
830 %{_mandir}/man1/ffmpeg-devices.1*
831 %{_mandir}/man1/ffmpeg-filters.1*
832 %{_mandir}/man1/ffmpeg-formats.1*
833 %{_mandir}/man1/ffmpeg-protocols.1*
834 %{_mandir}/man1/ffmpeg-resampler.1*
835 %{_mandir}/man1/ffmpeg-scaler.1*
836 %{_mandir}/man1/ffmpeg-utils.1*
837 %{_mandir}/man1/ffprobe.1*
838 %{_mandir}/man1/ffprobe-all.1*
842 %defattr(644,root,root,755)
843 %attr(755,root,root) %{_libdir}/libavcodec.so.*.*.*
844 %attr(755,root,root) %ghost %{_libdir}/libavcodec.so.60
845 %attr(755,root,root) %{_libdir}/libavdevice.so.*.*.*
846 %attr(755,root,root) %ghost %{_libdir}/libavdevice.so.60
847 %attr(755,root,root) %{_libdir}/libavfilter.so.*.*.*
848 %attr(755,root,root) %ghost %{_libdir}/libavfilter.so.9
849 %attr(755,root,root) %{_libdir}/libavformat.so.*.*.*
850 %attr(755,root,root) %ghost %{_libdir}/libavformat.so.60
851 %attr(755,root,root) %{_libdir}/libavutil.so.*.*.*
852 %attr(755,root,root) %ghost %{_libdir}/libavutil.so.58
853 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
854 %attr(755,root,root) %ghost %{_libdir}/libpostproc.so.57
855 %attr(755,root,root) %{_libdir}/libswresample.so.*.*.*
856 %attr(755,root,root) %ghost %{_libdir}/libswresample.so.4
857 %attr(755,root,root) %{_libdir}/libswscale.so.*.*.*
858 %attr(755,root,root) %ghost %{_libdir}/libswscale.so.7
861 %defattr(644,root,root,755)
862 %doc doc/optimization.txt
863 %attr(755,root,root) %{_bindir}/ffmpeg-avconfig
864 %attr(755,root,root) %{_libdir}/libavcodec.so
865 %attr(755,root,root) %{_libdir}/libavdevice.so
866 %attr(755,root,root) %{_libdir}/libavfilter.so
867 %attr(755,root,root) %{_libdir}/libavformat.so
868 %attr(755,root,root) %{_libdir}/libavutil.so
869 %attr(755,root,root) %{_libdir}/libpostproc.so
870 %attr(755,root,root) %{_libdir}/libswresample.so
871 %attr(755,root,root) %{_libdir}/libswscale.so
872 %{_includedir}/ffmpeg
873 %{_includedir}/libavcodec
874 %{_includedir}/libavdevice
875 %{_includedir}/libavfilter
876 %{_includedir}/libavformat
877 %{_includedir}/libavutil
878 %{_includedir}/libpostproc
879 %{_includedir}/libswresample
880 %{_includedir}/libswscale
881 %{_pkgconfigdir}/libavcodec.pc
882 %{_pkgconfigdir}/libavdevice.pc
883 %{_pkgconfigdir}/libavfilter.pc
884 %{_pkgconfigdir}/libavformat.pc
885 %{_pkgconfigdir}/libavutil.pc
886 %{_pkgconfigdir}/libpostproc.pc
887 %{_pkgconfigdir}/libswresample.pc
888 %{_pkgconfigdir}/libswscale.pc
890 %{_mandir}/man3/libavcodec.3*
891 %{_mandir}/man3/libavdevice.3*
892 %{_mandir}/man3/libavfilter.3*
893 %{_mandir}/man3/libavformat.3*
894 %{_mandir}/man3/libavutil.3*
895 %{_mandir}/man3/libswresample.3*
896 %{_mandir}/man3/libswscale.3*
898 %{_examplesdir}/%{name}-%{version}
901 %defattr(644,root,root,755)
902 %{_libdir}/libavcodec.a
903 %{_libdir}/libavdevice.a
904 %{_libdir}/libavfilter.a
905 %{_libdir}/libavformat.a
906 %{_libdir}/libavutil.a
907 %{_libdir}/libpostproc.a
908 %{_libdir}/libswresample.a
909 %{_libdir}/libswscale.a
912 %defattr(644,root,root,755)
913 %attr(755,root,root) %{_bindir}/ffplay
915 %{_mandir}/man1/ffplay.1*
916 %{_mandir}/man1/ffplay-all.1*
921 %defattr(644,root,root,755)
922 %doc doc/*.{css,html}