2 # - avisynth+ >= 3.7.3 https://github.com/AviSynth/AviSynthPlus
4 # - libtensorflow [-ltensorflow tensorflow/c/c_api.h]
5 # - AMF >= 1.4.29.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 in drawtext filter
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 libaribcaption # ARIB text and caption decoding via libaribcaption
45 %bcond_with libdrm # Linux Direct Rendering Manager code
46 %bcond_without libjxl # JPEG XL de/encoding via libjxl
47 %bcond_with libklvanc # Kernel Labs VANC processing (in decklink driver)
48 %bcond_without libmysofa # sofalizer filter
49 %bcond_with libplacebo # libplacebo filters
50 %bcond_without librist # RIST support via librist
51 %bcond_with librsvg # SVG rasterization via librsvg
52 %bcond_with libxml2 # XML parsing using libxml2
53 %bcond_without lv2 # LV2 audio filtering
54 %bcond_with mfx # MFX hardware acceleration support
55 %bcond_without modplug # ModPlug via libmodplug
56 %bcond_with npp # NVIDIA Performance Primitives-based code (requires nonfree) [BR: libnppc+libnppi, npp.h]
57 %bcond_without omx # OpenMAX IL support
58 %bcond_without openal # OpenAL 1.1 capture support
59 %bcond_without opencl # OpenCL 1.2 code
60 %bcond_with opencv # OpenCV video filtering
61 %bcond_without opengl # OpenGL rendering support
62 %bcond_with openh264 # OpenH264 H.264 encoder
63 %bcond_without openmpt # OpenMPT module decoder
64 %bcond_with pocketsphinx # asr filter using PocketSphinx
65 %bcond_without pulseaudio # PulseAudio input support
66 %bcond_without rabbitmq # RabbitMQ support
67 %bcond_with rav1e # AV1 encoding using rav1e
68 %bcond_with rkmpp # Rockchip Media Process Platform code [implies libdrm]
69 %bcond_without rubberband # rubberband filter
70 %bcond_without shaderc # GLSL->SPIRV compilation via libshaderc
71 %bcond_without shine # shine fixed-point MP3 encoder
72 %bcond_with smb # SMB support via libsmbclient
73 %bcond_without snappy # Snappy compression support (needed for hap encoding)
74 %bcond_without soxr # SoX Resampler support
75 %bcond_without srt # Haivision SRT protocol support
76 %bcond_without ssh # SFTP protocol support via libssh
77 %bcond_with svtav1 # AV1 encoding via SVT-AV1
78 %bcond_with tesseract # OCR filter based on Tesseract
79 %bcond_without theora # Theora encoding via libtheora
80 %bcond_with uavs3d # AVS3 decoding via libuavs3d (TODO: enable when 1.1.41 released)
81 %bcond_with v4l2_request # V4L2 request API for stateless hw decoding
82 %bcond_without va # VAAPI (Video Acceleration API)
83 %bcond_without vapoursynth # VapourSynth demuxer
84 %bcond_without vidstab # vid.stab video stabilization support
85 %bcond_without vmaf # VMAF filter support
86 %bcond_without voamrwbenc # MR-WB encoding via libvo-amrwbenc
87 %bcond_with vpl # oneVPL instead of MFX
88 %bcond_without vpx # VP8, a high-quality video codec
89 %bcond_without vulkan # Vulkan code
90 %bcond_without webp # WebP encoding support
91 %bcond_without x264 # H.264 x264 encoder
92 %bcond_without x265 # H.265/HEVC x265 encoder
93 %bcond_without xvid # vid encoding via xvidcore
94 %bcond_without zimg # zscale filter based on z.lib
95 %bcond_without zmq # 0MQ message passing
96 %bcond_without zvbi # teletext via libzvbi
97 %bcond_without doc # HTML documentation
98 %bcond_without static_libs # static libraries
99 %bcond_with tests # "make check" (some tests fail as of 2.5)
101 %if %{with bootstrap}
102 %undefine with_opencv
103 %undefine with_chromaprint
105 %if %{with rkmpp} || %{with v4l2_request}
106 %define with_libdrm 1
109 %undefine with_shaderc
115 %ifnarch %{ix86} %{x8664}
116 %undefine with_ffnvcodec
118 %ifnarch %{ix86} %{x8664} aarch64
121 %ifnarch %{ix86} %{x8664} %{arm}
127 %ifarch i686 pentium4 athlon %{x8664} x32
128 %define with_crystalhd 1
130 Summary: FFmpeg - a very fast video and audio converter
131 Summary(pl.UTF-8): FFmpeg - szybki konwerter audio/wideo
133 # NOTE: 7.0 prepared on DEVEL-7 branch, but other software is not ready (e.g. xine-lib 1.2.13, gstreamer-libav 1.24.2)
136 # LGPL or GPL, chosen at configure time (GPL version is more featured)
137 # GPL: frei0r libcdio libdavs2 rubberband vidstab x264 x265 xavs xavs2 xvid
138 # v3 (allows *GPLv3 or Apache-licensed libs): gmp lensfun opencore-amr vmaf vo-*enc rkmpp
140 License: GPL v3+ with LGPL v3+ parts
141 Group: Applications/Multimedia
142 Source0: https://ffmpeg.org/releases/%{name}-%{version}.tar.xz
143 # Source0-md5: 341d719415b7f95bb59f5016f2864ac6
144 Patch0: %{name}-omx-libnames.patch
145 Patch1: %{name}-atadenoise.patch
146 Patch2: opencv4.patch
147 Patch3: v4l2-request-hwdec.patch
148 Patch4: %{name}-vulkan1.3.280.patch
149 URL: https://ffmpeg.org/
150 %{?with_decklink:BuildRequires: Blackmagic_DeckLink_SDK >= 10.11}
151 %{?with_openal:BuildRequires: OpenAL-devel >= 1.1}
152 %{?with_opencl:BuildRequires: OpenCL-devel >= 1.2}
153 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
154 # libomxil-bellagio-devel or limoi-core-devel (just headers, library is dlopened at runtime)
155 %{?with_omx:BuildRequires: OpenMAX-IL-devel}
156 BuildRequires: SDL2-devel >= 2.0.1
157 BuildRequires: SDL2-devel < 3.0.0
158 %{?with_vulkan:BuildRequires: Vulkan-Loader-devel >= 1.3.277}
159 BuildRequires: alsa-lib-devel
160 %{?with_aom:BuildRequires: aom-devel >= 1.0.0}
161 %{?with_aribb24:BuildRequires: aribb24-devel}
162 BuildRequires: bzip2-devel
163 BuildRequires: celt-devel >= 0.11.0
164 %{?with_codec2:BuildRequires: codec2-devel}
165 %{?with_dav1d:BuildRequires: dav1d-devel >= 0.5.0}
166 %{?with_avs2:BuildRequires: davs2-devel >= 1.6}
167 %{?with_fdk_aac:BuildRequires: fdk-aac-devel}
168 %{?with_flite:BuildRequires: flite-devel >= 1.4}
169 BuildRequires: fontconfig-devel
170 BuildRequires: freetype-devel
171 %{?with_frei0r:BuildRequires: frei0r-devel}
172 %{?with_fribidi:BuildRequires: fribidi-devel}
173 %{?with_gme:BuildRequires: game-music-emu-devel}
174 BuildRequires: harfbuzz-devel
176 # require version with altivec support fixed
177 BuildRequires: gcc >= 5:3.3.2-3
179 %{?with_glslang:BuildRequires: glslang-devel >= 11}
180 BuildRequires: gmp-devel
181 BuildRequires: gnutls-devel
182 BuildRequires: jack-audio-connection-kit-devel
183 %{?with_kvazaar:BuildRequires: kvazaar-devel >= 2.0.0}
184 %{?with_ladspa:BuildRequires: ladspa-devel}
185 BuildRequires: lame-libs-devel >= 3.98.3
186 %{?with_lcms:BuildRequires: lcms2-devel >= 2.13}
187 %{?with_lensfun:BuildRequires: lensfun-devel >= 0.3.95}
188 %{?with_aribcaption:BuildRequires: libaribcaption-devel}
189 BuildRequires: libass-devel >= 0.11.0
190 %ifnarch %arch_with_atomics64
191 BuildRequires: libatomic-devel
193 %{?with_iec61883:BuildRequires: libavc1394-devel}
194 %{?with_bs2b:BuildRequires: libbs2b-devel}
195 BuildRequires: libbluray-devel
196 %{?with_caca:BuildRequires: libcaca-devel}
197 BuildRequires: libcdio-paranoia-devel >= 0.90-2
198 %{?with_chromaprint:BuildRequires: libchromaprint-devel}
199 %{?with_crystalhd:BuildRequires: libcrystalhd-devel}
200 %{?with_dc1394:BuildRequires: libdc1394-devel >= 2}
201 %{?with_libdrm:BuildRequires: libdrm-devel}
202 %{?with_gsm:BuildRequires: libgsm-devel}
203 %{?with_iec61883:BuildRequires: libiec61883-devel}
204 %{?with_libjxl:BuildRequires: libjxl-devel >= 0.7.0}
205 %{?with_libklvanc:BuildRequires: libklvanc-devel}
206 %{?with_modplug:BuildRequires: libmodplug-devel}
207 %{?with_libmysofa:BuildRequires: libmysofa-devel >= 0.7}
208 %{?with_openmpt:BuildRequires: libopenmpt-devel >= 0.4.5}
209 %{?with_libplacebo:BuildRequires: libplacebo-devel >= 4.192.0}
210 %if %{with dc1394} || %{with iec61883}
211 BuildRequires: libraw1394-devel >= 2
213 %{?with_librist:BuildRequires: librist-devel >= 0.2.7}
214 %{?with_librsvg:BuildRequires: librsvg-devel >= 2}
215 BuildRequires: librtmp-devel
216 %{?with_ssh:BuildRequires: libssh-devel >= 0.6.0}
217 %{?with_smb:BuildRequires: libsmbclient-devel}
218 %{?with_theora:BuildRequires: libtheora-devel >= 1.0-0.beta3}
219 BuildRequires: libtool >= 2:1.4d-3
220 BuildRequires: libv4l-devel
222 BuildRequires: libva-devel >= 1.0.3
223 BuildRequires: libva-drm-devel >= 1.0.3
224 BuildRequires: libva-x11-devel >= 1.0.3
226 BuildRequires: libvdpau-devel >= 1.3
227 BuildRequires: libvorbis-devel
228 %{?with_vpx:BuildRequires: libvpx-devel >= 1.4.0}
229 %{?with_webp:BuildRequires: libwebp-devel >= 0.4.0}
231 %{?with_x264:BuildRequires: libx264-devel >= 0.1.3-1.20130827_2245}
233 %{?with_x265:BuildRequires: libx265-devel >= 2.0}
234 # libxcb xcb-shm xcb-xfixes xcb-shape
235 BuildRequires: libxcb-devel >= 1.4
236 %{?with_libxml2:BuildRequires: libxml2-devel >= 2}
237 %{?with_lv2:BuildRequires: lilv-devel}
238 %{?with_v4l2_request:BuildRequires: linux-libc-headers >= 7:5.11.0}
239 %{?with_lv2:BuildRequires: lv2-devel}
240 %{?with_mfx:BuildRequires: mfx_dispatch-devel >= 1.28}
246 %{?with_ffnvcodec:BuildRequires: nv-codec-headers >= 12.1.14.0}
247 %{?with_vpl:BuildRequires: oneVPL-devel >= 2.6}
249 %{?with_amr:BuildRequires: opencore-amr-devel}
250 %{?with_opencv:BuildRequires: opencv-devel >= 2}
251 %{?with_openh264:BuildRequires: openh264-devel >= 1.3}
252 BuildRequires: openjpeg2-devel >= 2.1
253 BuildRequires: opus-devel
254 BuildRequires: perl-Encode
255 BuildRequires: perl-tools-pod
256 %{?with_pocketsphinx:BuildRequires: pocketsphinx-devel > 0.8}
257 BuildRequires: pkgconfig
258 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
259 %{?with_rabbitmq:BuildRequires: rabbitmq-c-devel >= 0.7.1}
260 %{?with_rav1e:BuildRequires: rav1e-devel >= 0.5.0}
261 %{?with_rkmpp:BuildRequires: rockchip-mpp-devel >= 1.3.7}
262 BuildRequires: rpmbuild(macros) >= 2.025
263 %{?with_rubberband:BuildRequires: rubberband-devel >= 1.8.1}
264 %{?with_shaderc:BuildRequires: shaderc-devel >= 2019.1}
265 %{?with_shine:BuildRequires: shine-devel >= 3.0.0}
266 %{?with_snappy:BuildRequires: snappy-devel}
267 %{?with_soxr:BuildRequires: soxr-devel}
268 BuildRequires: speex-devel >= 1:1.2-rc1
269 %{?with_glslang:BuildRequires: spirv-tools-devel}
270 %{?with_srt:BuildRequires: srt-devel >= 1.3}
271 %{?with_svtav1:BuildRequires: svt-av1-devel >= 0.9.0}
272 BuildRequires: tar >= 1:1.22
273 %{?with_tesseract:BuildRequires: tesseract-devel}
274 %{?with_doc:BuildRequires: tetex}
275 %{?with_doc:BuildRequires: texi2html}
276 %{?with_doc:BuildRequires: texinfo}
277 BuildRequires: twolame-devel >= 0.3.10
278 %{?with_uavs3d:BuildRequires: uavs3d-devel >= 1.1.41}
279 %{?with_v4l2_request:BuildRequires: udev-devel}
280 %{?with_vapoursynth:BuildRequires: vapoursynth-devel >= 42}
281 %{?with_vidstab:BuildRequires: vid.stab-devel >= 0.98}
282 %{?with_vmaf:BuildRequires: vmaf-devel >= 2.0.0}
283 %{?with_voamrwbenc:BuildRequires: vo-amrwbenc-devel}
284 %{?with_ilbc:BuildRequires: webrtc-libilbc-devel}
285 %{?with_avs:BuildRequires: xavs-devel}
286 %{?with_avs2:BuildRequires: xavs2-devel >= 1.3}
287 BuildRequires: xorg-lib-libX11-devel
288 BuildRequires: xorg-lib-libXext-devel
289 BuildRequires: xorg-lib-libXv-devel
290 %{?with_xvid:BuildRequires: xvid-devel >= 1:1.1.0}
292 BuildRequires: xz-devel
293 %{?with_zmq:BuildRequires: zeromq-devel >= 4.2.1}
294 %{?with_zimg:BuildRequires: zimg-devel >= 2.7.0}
295 BuildRequires: zlib-devel
296 %{?with_zvbi:BuildRequires: zvbi-devel >= 0.2.28}
297 # overflows maximum hash table size
298 BuildConflicts: pdksh < 5.2.14-57
299 Requires: %{name}-libs = %{version}-%{release}
301 Suggests: fonts-TTF-Roboto
302 Obsoletes: libpostproc < 2:1.0-1
303 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
305 %define specflags -fno-strict-aliasing -fPIC
307 # -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one)
308 %define specflags_ia32 -fomit-frame-pointer
309 # -mmmx is needed to enable <mmintrin.h> code.
310 %define specflags_i586 -mmmx
311 %define specflags_i686 -mmmx
314 FFmpeg is a complete solution to record, convert and stream audio and
315 video. It is a command line tool to convert one video file format to
316 another. It also supports grabbing and encoding in real time from a TV
319 %description -l pl.UTF-8
320 FFmpeg to kompletne rozwiÄ…zanie nagrywania, konwersji i transmisji
321 strumieni dźwięku i obrazu. Jest to działające z linii poleceń
322 narzędzie do konwersji obrazu z jednego formatu do innego. Obsługuje
323 także przechwytywanie i kodowanie w czasie rzeczywistym z karty
327 Summary: ffmpeg libraries
328 Summary(pl.UTF-8): Biblioteki ffmpeg
330 Requires: SDL2 >= 2.0.1
331 %{?with_vulkan:Requires: Vulkan-Loader >= 1.3.277}
332 %{?with_aom:Requires: aom >= 1.0.0}
333 Requires: celt >= 0.11.0
334 %{?with_dav1d:Requires: dav1d >= 0.5.0}
335 %{?with_avs2:Requires: davs2 >= 1.6}
336 %{?with_flite:Requires: flite >= 1.4}
337 %if "%(rpm -q --qf '%{V}' gnutls-devel)" >= "3.0.20"
338 # uses gnutls_certificate_set_x509_system_trust if >= 3.0.20
339 Requires: gnutls-libs >= 3.0.20
341 %{?with_kvazaar:Requires: kvazaar-libs >= 2.0.0}
342 Requires: libass >= 0.11.0
343 %{?with_libjxl:Requires: libjxl >= 0.7.0}
344 %{?with_libmysofa:Requires: libmysofa >= 0.7}
345 %{?with_openmpt:Requires: libopenmpt >= 0.4.5}
346 %{?with_libplacebo:Requires: libplacebo >= 4.192.0}
347 %{?with_librist:Requires: librist >= 0.2.7}
348 %{?with_ssh:Requires: libssh >= 0.6.0}
349 %{?with_theora:Requires: libtheora >= 1.0-0.beta3}
351 Requires: libva >= 1.0.3
352 Requires: libva-drm >= 1.0.3
353 Requires: libva-x11 >= 1.0.3
355 Requires: libvdpau >= 1.3
356 %{?with_vpx:Requires: libvpx >= 1.4.0}
357 %{?with_webp:Requires: libwebp >= 0.4.0}
358 %{?with_x264:Requires: libx264 >= 0.1.3-1.20130827_2245}
359 %{?with_x265:Requires: libx265 >= 2.0}
360 Requires: libxcb >= 1.4
361 Requires: lame-libs >= 3.98.3
362 %{?with_lcms:Requires: lcms2 >= 2.13}
363 %{?with_mfx:Requires: mfx_dispatch >= 1.28}
364 %{?with_vpl:Requires: oneVPL >= 2.6}
365 %{?with_openh264:Requires: openh264 >= 1.3}
366 Requires: openjpeg2 >= 2.1
367 %{?with_rabbitmq:Requires: rabbitmq-c >= 0.7.1}
368 %{?with_rav1e:Requires: rav1e-libs >= 0.5.0}
369 %{?with_rkmpp:Requires: rockchip-mpp >= 1.3.7}
370 %{?with_rubberband:Requires: rubberband-libs >= 1.8.1}
371 %{?with_shine:Requires: shine >= 3.0.0}
372 Requires: speex >= 1:1.2-rc1
373 %{?with_srt:Requires: srt >= 1.3}
374 %{?with_svtav1:Requires: svt-av1 >= 0.9.0}
375 Requires: twolame-libs >= 0.3.10
376 %{?with_uavs3d:Requires: uavs3d >= 1.1.41}
377 %{?with_vapoursynth:Requires: vapoursynth >= 42}
378 %{?with_vidstab:Requires: vid.stab >= 0.98}
379 %{?with_vmaf:Requires: vmaf-libs >= 2.0.0}
380 %{?with_avs2:Requires: xavs2 >= 1.3}
381 %{?with_xvid:Requires: xvid >= 1:1.1.0}
382 %{?with_zmq:Requires: zeromq >= 4.2.1}
383 %{?with_zimg:Requires: zimg >= 2.7.0}
384 %{?with_zvbi:Requires: zvbi >= 0.2.28}
387 This package contains the ffmpeg shared libraries:
388 - the codec library (libavcodec). It supports most existing encoding
389 formats (MPEG, DivX, MPEG4, AC3, DV...),
390 - demuxer library (libavformat). It supports most existing file
391 formats (AVI, MPEG, OGG, Matroska, ASF...),
392 - video postprocessing library (libpostproc).
394 %description libs -l pl.UTF-8
395 Ten pakiet zawiera biblioteki współdzielone ffmpeg:
396 - bibliotekę kodeków (libavcodec); obsługuje większość istniejących
397 formatów kodowania (MPEG, DivX, MPEG4, AC3, DV...),
398 - bibliotekę demuksera (libavformat); obsługuje większość istniejących
399 formatów plików (AVI, MPEG, OGG, Matroska, ASF...),
400 - bibliotekÄ™ postprocessingu (libpostproc).
403 Summary: ffmpeg header files
404 Summary(pl.UTF-8): Pliki nagłówkowe ffmpeg
405 Group: Development/Libraries
406 Requires: %{name}-libs = %{version}-%{release}
407 # Libs.private from *.pc
408 %{?with_openal:Requires: OpenAL-devel >= 1.1}
409 %{?with_opencl:Requires: OpenCL-devel >= 1.2}
410 %{?with_opengl:Requires: OpenGL-devel}
411 Requires: SDL2-devel >= 2.0.1
412 %{?with_vulkan:Requires: Vulkan-Loader-devel >= 1.3.277}
413 Requires: alsa-lib-devel
414 %{?with_aom:Requires: aom-devel >= 1.0.0}
415 %{?with_aribb24:Requires: aribb24-devel}
416 Requires: bzip2-devel
417 Requires: celt-devel >= 0.11.0
418 %{?with_codec2:Requires: codec2-devel}
419 %{?with_dav1d:Requires: dav1d-devel >= 0.5.0}
420 %{?with_avs2:Requires: davs2-devel >= 1.6}
421 %{?with_fdk_aac:Requires: fdk-aac-devel}
422 %{?with_flite:Requires: flite-devel >= 1.4}
423 Requires: fontconfig-devel
424 Requires: freetype-devel
425 %{?with_fribidi:Requires: fribidi-devel}
426 %{?with_gme:Requires: game-music-emu-devel}
427 %{?with_glslang:Requires: glslang-devel}
428 Requires: gnutls-devel
429 Requires: harfbuzz-devel
430 Requires: jack-audio-connection-kit-devel
431 %{?with_kvazaar:Requires: kvazaar-devel >= 2.0.0}
432 Requires: lame-libs-devel >= 3.98.3
433 %{?with_lcms:Requires: lcms2-devel >= 2.13}
434 %{?with_lensfun:Requires: lensfun-devel >= 0.3.95}
435 %{?with_libaribcaption:Requires: libaribcaption-devel}
436 Requires: libass-devel >= 0.11.0
437 %{?with_iec61883:Requires: libavc1394-devel}
438 Requires: libbluray-devel
439 %{?with_bs2b:Requires: libbs2b-devel}
440 %{?with_caca:Requires: libcaca-devel}
441 Requires: libcdio-paranoia-devel >= 0.90-2
442 %{?with_chromaprint:Requires: libchromaprint-devel}
443 %{?with_crystalhd:Requires: libcrystalhd-devel}
444 %{?with_dc1394:Requires: libdc1394-devel >= 2}
445 %{?with_libdrm:Requires: libdrm-devel}
446 %{?with_gsm:Requires: libgsm-devel}
447 %{?with_iec61883:Requires: libiec61883-devel}
448 %{?with_libjxl:Requires: libjxl-devel >= 0.7.0}
449 %{?with_libklvanc:Requires: libklvanc-devel}
450 %{?with_modplug:Requires: libmodplug-devel}
451 %{?with_libmysofa:Requires: libmysofa-devel >= 0.7}
452 %{?with_openmpt:Requires: libopenmpt-devel >= 0.4.5}
453 %if %{with dc1394} || %{with iec61883}
454 Requires: libraw1394-devel >= 2
456 %{?with_librist:Requires: librist-devel >= 0.2.7}
457 %{?with_librsvg:Requires: librsvg-devel >= 2}
458 Requires: librtmp-devel
459 %{?with_smb:Requires: libsmbclient-devel}
460 %{?with_ssh:Requires: libssh-devel >= 0.6.0}
461 Requires: libstdc++-devel
462 %{?with_theora:Requires: libtheora-devel >= 1.0-0.beta3}
463 Requires: libv4l-devel
464 %{?with_va:Requires: libva-devel >= 1.0.3}
465 %{?with_va:Requires: libva-drm-devel >= 1.0.3}
466 %{?with_va:Requires: libva-x11-devel >= 1.0.3}
467 Requires: libvdpau-devel >= 1.3
468 Requires: libvorbis-devel
469 %{?with_vpx:Requires: libvpx-devel >= 1.4.0}
470 %{?with_webp:Requires: libwebp-devel >= 0.4.0}
471 %{?with_x264:Requires: libx264-devel >= 0.1.3-1.20130827_2245}
472 %{?with_x265:Requires: libx265-devel >= 2.0}
473 # libxcb xcb-shm xcb-xfixes xcb-shape
474 Requires: libxcb-devel >= 1.4
475 %{?with_libxml2:Requires: libxml2-devel >= 2}
476 %{?with_lv2:Requires: lilv-devel}
477 %{?with_mfx:Requires: mfx_dispatch-devel >= 1.28}
478 %{?with_vpl:Requires: oneVPL-devel >= 2.6}
479 %{?with_amr:Requires: opencore-amr-devel}
480 %{?with_opencv:Requires: opencv-devel >= 2}
481 %{?with_openh264:Requires: openh264-devel >= 1.3}
482 Requires: openjpeg2-devel >= 2.1
484 %{?with_pulseaudio:Requires: pulseaudio-devel}
485 %{?with_rabbitmq:Requires: rabbitmq-c-devel >= 0.7.1}
486 %{?with_rav1e:Requires: rav1e-devel >= 0.5.0}
487 %{?with_rkmpp:Requires: rockchip-mpp-devel >= 1.3.7}
488 %{?with_rubberband:Requires: rubberband-devel >= 1.8.1}
489 %{?with_shaderc:Requires: shaderc-devel >= 2019.1}
490 %{?with_shine:Requires: shine-devel >= 3.0.0}
491 %{?with_snappy:Requires: snappy-devel}
492 %{?with_soxr:Requires: soxr-devel}
493 Requires: speex-devel >= 1:1.2-rc1
494 %{?with_glslang:Requires: spirv-tools-devel}
495 %{?with_srt:Requires: srt-devel >= 1.3}
496 %{?with_svtav1:Requires: svt-av1-devel >= 0.9.0}
497 %{?with_tesseract:Requires: tesseract-devel}
498 Requires: twolame-devel >= 0.3.10
499 %{?with_uavs3d:Requires: uavs3d-devel >= 1.1.41}
500 %{?with_vapoursynth:Requires: vapoursynth-devel >= 42}
501 %{?with_vidstab:Requires: vid.stab-devel >= 0.98}
502 %{?with_voamrwbenc:Requires: vo-amrwbenc-devel}
503 %{?with_vmaf:Requires: vmaf-devel >= 2.0.0}
504 %{?with_ilbc:Requires: webrtc-libilbc-devel}
505 %{?with_avs:Requires: xavs-devel}
506 %{?with_avs2:Requires: xavs2-devel >= 1.3}
507 Requires: xorg-lib-libX11-devel
508 Requires: xorg-lib-libXext-devel
509 Requires: xorg-lib-libXv-devel
510 %{?with_xvid:Requires: xvid-devel >= 1:1.1.0}
512 %{?with_zmq:Requires: zeromq-devel >= 4.2.1}
513 %{?with_zimg:Requires: zimg-devel >= 2.7.0}
515 %{?with_zvbi:Requires: zvbi-devel >= 0.2.28}
516 Obsoletes: libpostproc-devel < 2:1.0-1
521 %description devel -l pl.UTF-8
522 Pliki nagłówkowe ffmpeg.
525 Summary: ffmpeg static libraries
526 Summary(pl.UTF-8): Statyczne biblioteki ffmpeg
527 Group: Development/Libraries
528 Requires: %{name}-devel = %{version}-%{release}
531 ffmpeg static libraries (libavcodec and libavformat).
533 %description static -l pl.UTF-8
534 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
537 Summary: FFplay - SDL-based media player
538 Summary(pl.UTF-8): FFplay - odtwarzacz mediów oparty na SDL
539 Group: Applications/Multimedia
540 Requires: %{name}-libs = %{version}-%{release}
543 FFplay is a very simple and portable media player using the FFmpeg
544 libraries and the SDL library. It is mostly used as a test bench for
545 the various APIs of FFmpeg.
547 %description ffplay -l pl.UTF-8
548 FFplay to bardzo prosty i przenośny odtwarzacz mediów używający
549 bibliotek FFmpeg oraz biblioteki SDL. Jest używany głównie do
550 testowania różnych API FFmpeg.
553 Summary: FFmpeg documentation in HTML format
554 Summary(pl.UTF-8): Dokumentacja pakietu FFmpeg w formacie HTML
559 FFmpeg documentation in HTML format.
561 %description doc -l pl.UTF-8
562 Dokumentacja pakietu FFmpeg w formacie HTML.
569 %if %{with v4l2_request}
574 # package the grep result for mplayer, the result formatted as ./mplayer/configure
575 cat <<EOF > ffmpeg-avconfig
577 libavdecoders_all="$(sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
578 libavencoders_all="$(sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
579 libavparsers_all="$(sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
580 libavbsfs_all="$(sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
581 libavdemuxers_all="$(sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
582 libavmuxers_all="$(sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
583 libavprotocols_all="$(sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
584 libavhwaccels_all="$(sed -n 's/^[^#]*HWACCEL.*(.*, *\(.*\)).*/\1_hwaccel/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
585 libavfilters_all="$(sed -n 's/^[^#]*FILTER.*(.*, *\(.*\),.*).*/\1_filter/p' libavfilter/allfilters.c | tr '[a-z]' '[A-Z]')"
587 cat <<'EOF' >> ffmpeg-avconfig
591 echo $libavdecoders_all
594 echo $libavencoders_all
597 echo $libavparsers_all
603 echo $libavdemuxers_all
606 echo $libavmuxers_all
609 echo $libavprotocols_all
612 echo $libavhwaccels_all
615 echo $libavfilters_all
639 # - it's not autoconf configure
640 # - --disable-debug, --disable-optimizations, tune=generic causes not to override our optflags
642 --arch=%{_target_base_arch} \
643 --prefix=%{_prefix} \
644 --libdir=%{_libdir} \
645 --shlibdir=%{_libdir} \
646 --mandir=%{_mandir} \
647 --extra-cflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcflags}%{?with_decklink: -I/usr/include/decklink}%{?with_opencv: -I/usr/include/opencv4}" \
648 --extra-cxxflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcxxflags}%{?with_decklink: -I/usr/include/decklink}%{?with_opencv: -I/usr/include/opencv4}" \
649 --extra-ldflags="%{rpmcflags} %{rpmldflags}" \
652 --disable-optimizations \
653 --disable-stripping \
654 %{!?with_doc:--disable-doc} \
656 %{?with_chromaprint:--enable-chromaprint} \
657 %{?with_cudasdk:--enable-cuda-nvcc} \
658 %{?with_decklink:--enable-decklink} \
659 %{!?with_ffnvcodec:--disable-ffnvcodec} \
663 %{?with_frei0r:--enable-frei0r} \
664 %{?with_ladspa:--enable-ladspa} \
665 %{?with_lcms:--enable-lcms2} \
666 %{?with_aom:--enable-libaom} \
667 %{?with_aribb24:--enable-libaribb24} \
668 %{?with_libaribcaption:--enable-libaribcaption} \
671 %{?with_bs2b:--enable-libbs2b} \
672 %{?with_caca:--enable-libcaca} \
675 %{?with_codec2:--enable-libcodec2} \
676 %{?with_dav1d:--enable-libdav1d} \
677 %{?with_avs2:--enable-libdavs2} \
678 %{?with_dc1394:--enable-libdc1394} \
679 %{?with_libdrm:--enable-libdrm} \
680 %{?with_flite:--enable-libflite} \
681 --enable-libfontconfig \
682 --enable-libfreetype \
683 %{?with_fribidi:--enable-libfribidi} \
684 %{?with_glslang:--enable-libglslang} \
685 %{?with_gme:--enable-libgme} \
686 %{?with_gsm:--enable-libgsm} \
687 --enable-libharfbuzz \
688 %{?with_iec61883:--enable-libiec61883} \
689 %{?with_ilbc:--enable-libilbc} \
691 %{?with_libjxl:--enable-libjxl} \
692 %{?with_kvazaar:--enable-libkvazaar} \
693 %{?with_libklvanc:--enable-libklvanc} \
694 %{?with_lensfun:--enable-liblensfun} \
695 %{?with_mfx:--enable-libmfx} \
696 %{?with_modplug:--enable-libmodplug} \
697 --enable-libmp3lame \
698 %{?with_libmysofa:--enable-libmysofa} \
699 %{?with_amr:--enable-libopencore-amrnb} \
700 %{?with_amr:--enable-libopencore-amrwb} \
701 %{?with_opencv:--enable-libopencv} \
702 %{?with_openh264:--enable-libopenh264} \
703 --enable-libopenjpeg \
704 %{?with_openmpt:--enable-libopenmpt} \
706 %{?with_libplacebo:--enable-libplacebo} \
707 %{?with_pulseaudio:--enable-libpulse} \
708 %{?with_rabbitmq:--enable-librabbitmq} \
709 %{?with_rav1e:--enable-librav1e} \
710 %{?with_librist:--enable-librist} \
711 %{?with_librsvg:--enable-librsvg} \
713 %{?with_rubberband:--enable-librubberband} \
714 %{?with_shaderc:--enable-libshaderc} \
715 %{?with_shine:--enable-libshine} \
716 %{?with_smb:--enable-libsmbclient} \
717 %{?with_snappy:--enable-libsnappy} \
718 %{?with_soxr:--enable-libsoxr} \
720 %{?with_srt:--enable-libsrt} \
721 %{?with_ssh:--enable-libssh} \
722 %{?with_svtav1:--enable-libsvtav1} \
723 %{?with_tesseract:--enable-libtesseract} \
724 %{?with_theora:--enable-libtheora} \
725 --enable-libtwolame \
726 %{?with_uavs3d:--enable-libuavs3d} \
728 %{?with_vidstab:--enable-libvidstab} \
729 %{?with_vmaf:--enable-libvmaf} \
730 %{?with_voamrwbenc:--enable-libvo-amrwbenc} \
732 %{?with_vpx:--enable-libvpx} \
733 %{?with_webp:--enable-libwebp} \
734 %{?with_x264:--enable-libx264} \
735 %{?with_x265:--enable-libx265} \
736 %{?with_avs:--enable-libxavs} \
737 %{?with_avs2:--enable-libxavs2} \
739 %{?with_libxml2:--enable-libxml2} \
740 %{?with_xvid:--enable-libxvid} \
741 %{?with_zimg:--enable-libzimg} \
742 %{?with_zmq:--enable-libzmq} \
743 %{?with_zvbi:--enable-libzvbi} \
744 %{?with_lv2:--enable-lv2} \
745 %{?with_omx:--enable-omx} \
746 %{?with_openal:--enable-openal} \
747 %{?with_opencl:--enable-opencl} \
748 %{?with_opengl:--enable-opengl} \
749 %{?with_pocketsphinx:--enable-pocketsphinx} \
752 %{?with_rkmpp:--enable-rkmpp} \
754 %{!?with_static_libs:--disable-static} \
756 %{!?with_va:--disable-vaapi} \
757 %{?with_vapoursynth:--enable-vapoursynth} \
758 %{!?with_vulkan:--disable-vulkan} \
759 %if %{with v4l2_request}
761 --enable-v4l2-request \
763 %ifnarch %{ix86} %{x8664}
774 %{?with_fdk_aac:--enable-libfdk-aac} \
775 %{?with_npp:--enable-libnpp} \
777 --enable-runtime-cpudetect
782 # CC_O to add -c to commandline. makefile should be patched
783 %{__make} tools/qt-faststart V=1 CC_O='-c -o $@'
785 %{?with_tests:%{__make} check V=1}
788 rm -rf $RPM_BUILD_ROOT
789 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
790 $RPM_BUILD_ROOT%{_includedir}/ffmpeg
792 %{__make} install install-headers \
793 DESTDIR=$RPM_BUILD_ROOT \
796 # install nonstandard, non-public headers manually
797 cp -a config.h $RPM_BUILD_ROOT%{_includedir}/ffmpeg
798 for a in libavutil/*/{asm,bswap}.h; do
799 install -Dp $a $RPM_BUILD_ROOT%{_includedir}/$a
801 cp -a libavformat/riff.h $RPM_BUILD_ROOT%{_includedir}/libavformat
803 install -p tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
805 # install as ffmpeg-avconfig to avoid with possible programs looking for
806 # ffmpeg-config and expecting --libs output from it which is not implemented
807 # simple to do (by querying pkgconfig), but why?
808 install -p ffmpeg-avconfig $RPM_BUILD_ROOT%{_bindir}/ffmpeg-avconfig
810 # packaged as %doc in -doc
812 %{__rm} $RPM_BUILD_ROOT%{_docdir}/ffmpeg/*.{css,html}
815 install -d $RPM_BUILD_ROOT%{_examplesdir}
816 %{__mv} $RPM_BUILD_ROOT%{_datadir}/ffmpeg/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
819 rm -rf $RPM_BUILD_ROOT
821 %post libs -p /sbin/ldconfig
822 %postun libs -p /sbin/ldconfig
825 %defattr(644,root,root,755)
826 %doc CREDITS LICENSE.md MAINTAINERS README.md RELEASE_NOTES doc/APIchanges
827 %attr(755,root,root) %{_bindir}/ffmpeg
828 %attr(755,root,root) %{_bindir}/ffprobe
829 %attr(755,root,root) %{_bindir}/qt-faststart
830 %dir %{_datadir}/ffmpeg
831 %{_datadir}/ffmpeg/*.ffpreset
832 %{_datadir}/ffmpeg/ffprobe.xsd
834 %{_mandir}/man1/ffmpeg.1*
835 %{_mandir}/man1/ffmpeg-all.1*
836 %{_mandir}/man1/ffmpeg-bitstream-filters.1*
837 %{_mandir}/man1/ffmpeg-codecs.1*
838 %{_mandir}/man1/ffmpeg-devices.1*
839 %{_mandir}/man1/ffmpeg-filters.1*
840 %{_mandir}/man1/ffmpeg-formats.1*
841 %{_mandir}/man1/ffmpeg-protocols.1*
842 %{_mandir}/man1/ffmpeg-resampler.1*
843 %{_mandir}/man1/ffmpeg-scaler.1*
844 %{_mandir}/man1/ffmpeg-utils.1*
845 %{_mandir}/man1/ffprobe.1*
846 %{_mandir}/man1/ffprobe-all.1*
850 %defattr(644,root,root,755)
851 %attr(755,root,root) %{_libdir}/libavcodec.so.*.*.*
852 %attr(755,root,root) %ghost %{_libdir}/libavcodec.so.60
853 %attr(755,root,root) %{_libdir}/libavdevice.so.*.*.*
854 %attr(755,root,root) %ghost %{_libdir}/libavdevice.so.60
855 %attr(755,root,root) %{_libdir}/libavfilter.so.*.*.*
856 %attr(755,root,root) %ghost %{_libdir}/libavfilter.so.9
857 %attr(755,root,root) %{_libdir}/libavformat.so.*.*.*
858 %attr(755,root,root) %ghost %{_libdir}/libavformat.so.60
859 %attr(755,root,root) %{_libdir}/libavutil.so.*.*.*
860 %attr(755,root,root) %ghost %{_libdir}/libavutil.so.58
861 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
862 %attr(755,root,root) %ghost %{_libdir}/libpostproc.so.57
863 %attr(755,root,root) %{_libdir}/libswresample.so.*.*.*
864 %attr(755,root,root) %ghost %{_libdir}/libswresample.so.4
865 %attr(755,root,root) %{_libdir}/libswscale.so.*.*.*
866 %attr(755,root,root) %ghost %{_libdir}/libswscale.so.7
869 %defattr(644,root,root,755)
870 %doc doc/optimization.txt
871 %attr(755,root,root) %{_bindir}/ffmpeg-avconfig
872 %attr(755,root,root) %{_libdir}/libavcodec.so
873 %attr(755,root,root) %{_libdir}/libavdevice.so
874 %attr(755,root,root) %{_libdir}/libavfilter.so
875 %attr(755,root,root) %{_libdir}/libavformat.so
876 %attr(755,root,root) %{_libdir}/libavutil.so
877 %attr(755,root,root) %{_libdir}/libpostproc.so
878 %attr(755,root,root) %{_libdir}/libswresample.so
879 %attr(755,root,root) %{_libdir}/libswscale.so
880 %{_includedir}/ffmpeg
881 %{_includedir}/libavcodec
882 %{_includedir}/libavdevice
883 %{_includedir}/libavfilter
884 %{_includedir}/libavformat
885 %{_includedir}/libavutil
886 %{_includedir}/libpostproc
887 %{_includedir}/libswresample
888 %{_includedir}/libswscale
889 %{_pkgconfigdir}/libavcodec.pc
890 %{_pkgconfigdir}/libavdevice.pc
891 %{_pkgconfigdir}/libavfilter.pc
892 %{_pkgconfigdir}/libavformat.pc
893 %{_pkgconfigdir}/libavutil.pc
894 %{_pkgconfigdir}/libpostproc.pc
895 %{_pkgconfigdir}/libswresample.pc
896 %{_pkgconfigdir}/libswscale.pc
898 %{_mandir}/man3/libavcodec.3*
899 %{_mandir}/man3/libavdevice.3*
900 %{_mandir}/man3/libavfilter.3*
901 %{_mandir}/man3/libavformat.3*
902 %{_mandir}/man3/libavutil.3*
903 %{_mandir}/man3/libswresample.3*
904 %{_mandir}/man3/libswscale.3*
906 %{_examplesdir}/%{name}-%{version}
908 %if %{with static_libs}
910 %defattr(644,root,root,755)
911 %{_libdir}/libavcodec.a
912 %{_libdir}/libavdevice.a
913 %{_libdir}/libavfilter.a
914 %{_libdir}/libavformat.a
915 %{_libdir}/libavutil.a
916 %{_libdir}/libpostproc.a
917 %{_libdir}/libswresample.a
918 %{_libdir}/libswscale.a
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{_bindir}/ffplay
925 %{_mandir}/man1/ffplay.1*
926 %{_mandir}/man1/ffplay-all.1*
931 %defattr(644,root,root,755)
932 %doc doc/*.{css,html}