2 # - libopenvino, librist >= 0.2, libsvtav1 (SvtAv1Enc) >= 0.8.4, libuavs3d >= 1.1.41
3 # - libtensorflow [-ltensorflow tensorflow/c/c_api.h]
4 # - AMF >= 1.4.9.0 (available at https://github.com/GPUOpen-LibrariesAndSDKs/AMF, where is original source?)
6 # How to deal with ffmpeg/opencv/chromaprint checken-egg problem:
7 # 1. make-request -r --with bootstrap ffmpeg.spec
8 # 2 bump release of opencv.spec and chromaprint.spec
9 # 3. make-request -r opencv.spec chromaprint.spec
10 # 4. bump release of ffmpeg.spec
11 # 5. make-request -r ffmpeg.spec
14 %bcond_with bootstrap # disable features to able to build without installed ffmpeg
15 %bcond_with nonfree # unblock non free options of package (currently: cuda_nvcc, decklib, fdk_aac, npp, openssl, libressl/libtls)
16 %bcond_without amr # AMR-NB/WB de/encoding via libopencore-amrnb/wb
17 %bcond_without aribb24 # ARIB text and caption decoding via libaribb24
18 %bcond_without avs # AVS encoding via xavs
19 %bcond_without avs2 # AVS2 de/encoding via libdavs2/libxavs2
20 %bcond_without bs2b # BS2B audio filter support
21 %bcond_without caca # textual display using libcaca
22 %bcond_without codec2 # codec2 support using libcodec2
23 %bcond_without chromaprint # audio fingerprinting with chromaprint
24 %bcond_with cudasdk # NVIDIA CUDA code using nvcc from CUDA SDK [BR: cuda.h, non-free]
25 %bcond_without dav1d # AV1 decoding via libdav1d
26 %bcond_without dc1394 # IIDC-1394 grabbing using libdc1394
27 %bcond_with decklink # Blackmagic DeckLink I/O support (requires nonfree)
28 %bcond_with fdk_aac # AAC de/encoding via libfdk_aac (requires nonfree)
29 %bcond_without ffnvcodec # NVIDIA codecs support using ffnvcodec headers (covered: cuda cuvid nvdec nvenc)
30 %bcond_without flite # flite voice synthesis support
31 %bcond_without frei0r # frei0r video filtering
32 %bcond_without fribidi # fribidi support
33 %bcond_without glslang # GLSL->SPIRV compilation via libglslang
34 %bcond_without gme # Game Music Emu support
35 %bcond_without gsm # GSM de/encoding via libgsm
36 %bcond_without iec61883 # ec61883 via libiec61883
37 %bcond_without ilbc # iLBC de/encoding via WebRTC libilbc
38 %bcond_without kvazaar # Kvazaar HEVC encoder support
39 %bcond_without ladspa # LADSPA audio filtering
40 %bcond_with lensfun # lensfun lens correction
41 %bcond_with libdrm # Linux Direct Rendering Manager code
42 %bcond_with libklvanc # Kernel Labs VANC processing (in decklink driver)
43 %bcond_without libmysofa # sofalizer filter
44 %bcond_with librsvg # SVG rasterization via librsvg
45 %bcond_with libxml2 # XML parsing using libxml2
46 %bcond_without lv2 # LV2 audio filtering
47 %bcond_with mfx # MFX hardware acceleration support
48 %bcond_without modplug # ModPlug via libmodplug
49 %bcond_with npp # NVIDIA Performance Primitives-based code (requires nonfree) [BR: libnppc+libnppi, npp.h]
50 %bcond_without omx # OpenMAX IL support
51 %bcond_without openal # OpenAL 1.1 capture support
52 %bcond_without opencl # OpenCL 1.2 code
53 %bcond_without opencv # OpenCV video filtering
54 %bcond_without opengl # OpenGL rendering support
55 %bcond_with openh264 # OpenH264 H.264 encoder
56 %bcond_without openmpt # OpenMPT module decoder
57 %bcond_with pocketsphinx # asr filter using PocketSphinx
58 %bcond_without pulseaudio # PulseAudio input support
59 %bcond_without rabbitmq # RabbitMQ support
60 %bcond_with rav1e # AV1 encoding using rav1e
61 %bcond_with rkmpp # Rockchip Media Process Platform code [implies libdrm]
62 %bcond_without rubberband # rubberband filter
63 %bcond_without shine # shine fixed-point MP3 encoder
64 %bcond_without snappy # Snappy compression support (needed for hap encoding)
65 %bcond_without srt # Haivision SRT protocol support
66 %bcond_without ssh # SFTP protocol support via libssh
67 %bcond_with smb # SMB support via libsmbclient
68 %bcond_without soxr # SoX Resampler support
69 %bcond_with tesseract # OCR filter based on Tesseract
70 %bcond_without theora # Theora encoding via libtheora
71 %bcond_without vmaf # VMAF filter support
72 %bcond_without x264 # H.264 x264 encoder
73 %bcond_without x265 # H.265/HEVC x265 encoder
74 %bcond_with v4l2_request # V4L2 request API for stateless hw decoding
75 %bcond_without va # VAAPI (Video Acceleration API)
76 %bcond_without vapoursynth # VapourSynth demuxer
77 %bcond_without vidstab # vid.stab video stabilization support
78 %bcond_without voamrwbenc # MR-WB encoding via libvo-amrwbenc
79 %bcond_without vpx # VP8, a high-quality video codec
80 %bcond_without vulkan # Vulkan code
81 %bcond_without webp # WebP encoding support
82 %bcond_without xvid # vid encoding via xvidcore
83 %bcond_without zimg # zscale filter based on z.lib
84 %bcond_without zmq # 0MQ message passing
85 %bcond_without zvbi # teletext via libzvbi
86 %bcond_without doc # don't build docs
87 %bcond_with tests # "make check" (some tests fail as of 2.5)
91 %undefine with_chromaprint
93 %if %{with rkmpp} || %{with v4l2_request}
97 %ifnarch %{ix86} %{x8664}
98 %undefine with_ffnvcodec
100 %ifnarch %{ix86} %{x8664} aarch64
103 %ifnarch %{ix86} %{x8664} %{arm}
109 %ifarch i686 pentium4 athlon %{x8664} x32
110 %define with_crystalhd 1
112 Summary: FFmpeg - a very fast video and audio converter
113 Summary(pl.UTF-8): FFmpeg - szybki konwerter audio/wideo
117 # LGPL or GPL, chosen at configure time (GPL version is more featured)
118 # GPL: frei0r libcdio libdavs2 rubberband vidstab x264 x265 xavs xavs2 xvid
119 # v3 (allows *GPLv3 or Apache-licensed libs): gmp lensfun opencore-amr vmaf vo-*enc rkmpp
121 License: GPL v3+ with LGPL v3+ parts
122 Group: Applications/Multimedia
123 Source0: https://ffmpeg.org/releases/%{name}-%{version}.tar.xz
124 # Source0-md5: 7b9d5b652d20e8c5405304ad72636d4a
125 Patch0: %{name}-omx-libnames.patch
126 Patch1: %{name}-atadenoise.patch
127 Patch2: opencv4.patch
128 Patch3: v4l2-request-hwdec.patch
129 Patch4: %{name}-glslang.patch
130 URL: http://www.ffmpeg.org/
131 %{?with_decklink:BuildRequires: Blackmagic_DeckLink_SDK >= 10.10}
132 %{?with_openal:BuildRequires: OpenAL-devel >= 1.1}
133 %{?with_opencl:BuildRequires: OpenCL-devel >= 1.2}
134 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
135 # libomxil-bellagio-devel or limoi-core-devel (just headers, library is dlopened at runtime)
136 %{?with_omx:BuildRequires: OpenMAX-IL-devel}
137 BuildRequires: SDL2-devel >= 2.0.1
138 BuildRequires: SDL2-devel < 2.1.0
139 %{?with_vulkan:BuildRequires: Vulkan-Loader-devel >= 1.1.97}
140 BuildRequires: alsa-lib-devel
141 BuildRequires: aom-devel >= 1.0.0
142 %{?with_aribb24:BuildRequires: aribb24-devel}
143 BuildRequires: bzip2-devel
144 BuildRequires: celt-devel >= 0.11.0
145 %{?with_codec2:BuildRequires: codec2-devel}
146 %{?with_dav1d:BuildRequires: dav1d-devel >= 0.5.0}
147 %{?with_avs2:BuildRequires: davs2-devel >= 1.6}
148 %{?with_fdk_aac:BuildRequires: fdk-aac-devel}
149 %{?with_flite:BuildRequires: flite-devel >= 1.4}
150 BuildRequires: fontconfig-devel
151 BuildRequires: freetype-devel
152 %{?with_frei0r:BuildRequires: frei0r-devel}
153 %{?with_fribidi:BuildRequires: fribidi-devel}
154 %{?with_gme:BuildRequires: game-music-emu-devel}
156 # require version with altivec support fixed
157 BuildRequires: gcc >= 5:3.3.2-3
159 %{?with_glslang:BuildRequires: glslang-devel >= 11}
160 BuildRequires: gmp-devel
161 BuildRequires: gnutls-devel
162 BuildRequires: jack-audio-connection-kit-devel
163 %{?with_kvazaar:BuildRequires: kvazaar-devel >= 0.8.1}
164 %{?with_ladspa:BuildRequires: ladspa-devel}
165 BuildRequires: lame-libs-devel >= 3.98.3
166 %{?with_lensfun:BuildRequires: lensfun-devel >= 0.3.95}
167 BuildRequires: libass-devel
168 %{?with_iec61883:BuildRequires: libavc1394-devel}
169 %{?with_bs2b:BuildRequires: libbs2b-devel}
170 BuildRequires: libbluray-devel
171 %{?with_caca:BuildRequires: libcaca-devel}
172 BuildRequires: libcdio-paranoia-devel >= 0.90-2
173 %{?with_chromaprint:BuildRequires: libchromaprint-devel}
174 %{?with_crystalhd:BuildRequires: libcrystalhd-devel}
175 %{?with_dc1394:BuildRequires: libdc1394-devel >= 2}
176 %{?with_libdrm:BuildRequires: libdrm-devel}
177 %{?with_gsm:BuildRequires: libgsm-devel}
178 %{?with_iec61883:BuildRequires: libiec61883-devel}
179 %{?with_libklvanc:BuildRequires: libklvanc-devel}
180 %{?with_modplug:BuildRequires: libmodplug-devel}
181 %{?with_libmysofa:BuildRequires: libmysofa-devel >= 0.7}
182 %{?with_openmpt:BuildRequires: libopenmpt-devel >= 0.4.5}
183 %if %{with dc1394} || %{with iec61883}
184 BuildRequires: libraw1394-devel >= 2
186 %{?with_librsvg:BuildRequires: librsvg-devel >= 2}
187 BuildRequires: librtmp-devel
188 %{?with_ssh:BuildRequires: libssh-devel}
189 %{?with_smb:BuildRequires: libsmbclient-devel}
190 %{?with_theora:BuildRequires: libtheora-devel >= 1.0-0.beta3}
191 BuildRequires: libtool >= 2:1.4d-3
192 BuildRequires: libv4l-devel
194 BuildRequires: libva-devel >= 1.0.3
195 BuildRequires: libva-drm-devel >= 1.0.3
196 BuildRequires: libva-x11-devel >= 1.0.3
198 BuildRequires: libvdpau-devel >= 1.3
199 BuildRequires: libvorbis-devel
200 %{?with_vpx:BuildRequires: libvpx-devel >= 1.4.0}
201 %{?with_webp:BuildRequires: libwebp-devel >= 0.4.0}
203 %{?with_x264:BuildRequires: libx264-devel >= 0.1.3-1.20111212_2245}
205 %{?with_x265:BuildRequires: libx265-devel >= 1.9}
206 # libxcb xcb-shm xcb-xfixes xcb-shape
207 BuildRequires: libxcb-devel >= 1.4
208 %{?with_libxml2:BuildRequires: libxml2-devel >= 2}
209 %{?with_lv2:BuildRequires: lilv-devel}
210 %{?with_v4l2_request:BuildRequires: linux-libc-headers >= 7:5.11.0}
211 %{?with_lv2:BuildRequires: lv2-devel}
212 %{?with_mfx:BuildRequires: mfx_dispatch-devel >= 1.19}
218 %{?with_ffnvcodec:BuildRequires: nv-codec-headers >= 9.1.23.1}
220 %{?with_amr:BuildRequires: opencore-amr-devel}
221 %{?with_opencv:BuildRequires: opencv-devel >= 2}
222 %{?with_openh264:BuildRequires: openh264-devel >= 1.3}
223 BuildRequires: openjpeg2-devel >= 2.1
224 BuildRequires: opus-devel
225 BuildRequires: perl-Encode
226 BuildRequires: perl-tools-pod
227 %{?with_pocketsphinx:BuildRequires: pocketsphinx-devel > 0.8}
228 BuildRequires: pkgconfig
229 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
230 %{?with_rabbitmq:BuildRequires: rabbitmq-c-devel >= 0.7.1}
231 %{?with_rav1e:BuildRequires: rav1e-devel >= 0.4.0}
232 %{?with_rkmpp:BuildRequires: rockchip-mpp-devel >= 1.3.7}
233 BuildRequires: rpmbuild(macros) >= 1.752
234 %{?with_rubberband:BuildRequires: rubberband-devel >= 1.8.1}
235 %{?with_shine:BuildRequires: shine-devel >= 3.0.0}
236 %{?with_snappy:BuildRequires: snappy-devel}
237 %{?with_soxr:BuildRequires: soxr-devel}
238 BuildRequires: speex-devel >= 1:1.2-rc1
239 %{?with_glslang:BuildRequires: spirv-tools-devel}
240 %{?with_srt:BuildRequires: srt-devel >= 1.3}
241 BuildRequires: tar >= 1:1.22
242 %{?with_tesseract:BuildRequires: tesseract-devel}
243 %{?with_doc:BuildRequires: tetex}
244 %{?with_doc:BuildRequires: texi2html}
245 %{?with_doc:BuildRequires: texinfo}
246 BuildRequires: twolame-devel >= 0.3.10
247 %{?with_v4l2_request:BuildRequires: udev-devel}
248 %{?with_vapoursynth:BuildRequires: vapoursynth-devel >= 42}
249 %{?with_vidstab:BuildRequires: vid.stab-devel >= 0.98}
250 %{?with_vmaf:BuildRequires: vmaf-devel >= 1.5.2}
251 %{?with_voamrwbenc:BuildRequires: vo-amrwbenc-devel}
252 %{?with_ilbc:BuildRequires: webrtc-libilbc-devel}
253 %{?with_avs:BuildRequires: xavs-devel}
254 %{?with_avs2:BuildRequires: xavs2-devel >= 1.3}
255 BuildRequires: xorg-lib-libX11-devel
256 BuildRequires: xorg-lib-libXext-devel
257 BuildRequires: xorg-lib-libXv-devel
258 %{?with_xvid:BuildRequires: xvid-devel >= 1:1.1.0}
260 BuildRequires: xz-devel
262 %{?with_zmq:BuildRequires: zeromq-devel >= 4.2.1}
263 %{?with_zimg:BuildRequires: zimg-devel >= 2.7.0}
264 BuildRequires: zlib-devel
265 %{?with_zvbi:BuildRequires: zvbi-devel >= 0.2.28}
266 %{?with_autoreqdep:BuildConflicts: libpostproc}
267 # overflows maximum hash table size
268 BuildConflicts: pdksh < 5.2.14-57
269 Requires: %{name}-libs = %{version}-%{release}
271 Suggests: fonts-TTF-Roboto
272 Obsoletes: libpostproc
273 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
275 %define specflags -fno-strict-aliasing
277 # -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one)
278 %define specflags_ia32 -fomit-frame-pointer
279 # -mmmx is needed to enable <mmintrin.h> code.
280 %define specflags_i586 -mmmx
281 %define specflags_i686 -mmmx
282 %define specflags_ppc -fPIC
285 FFmpeg is a complete solution to record, convert and stream audio and
286 video. It is a command line tool to convert one video file format to
287 another. It also supports grabbing and encoding in real time from a TV
290 %description -l pl.UTF-8
291 FFmpeg to kompletne rozwiÄ…zanie nagrywania, konwersji i transmisji
292 strumieni dźwięku i obrazu. Jest to działające z linii poleceń
293 narzędzie do konwersji obrazu z jednego formatu do innego. Obsługuje
294 także przechwytywanie i kodowanie w czasie rzeczywistym z karty
298 Summary: ffmpeg libraries
299 Summary(pl.UTF-8): Biblioteki ffmpeg
301 Requires: SDL2 >= 2.0.1
302 %{?with_vulkan:Requires: Vulkan-Loader >= 1.1.97}
303 Requires: aom >= 1.0.0
304 Requires: celt >= 0.11.0
305 %{?with_dav1d:Requires: dav1d >= 0.5.0}
306 %{?with_avs2:Requires: davs2 >= 1.6}
307 %{?with_flite:Requires: flite >= 1.4}
308 %if "%(rpm -q --qf '%{V}' gnutls-devel)" >= "3.0.20"
309 # uses gnutls_certificate_set_x509_system_trust if >= 3.0.20
310 Requires: gnutls-libs >= 3.0.20
312 %{?with_kvazaar:Requires: kvazaar-libs >= 0.8.1}
313 %{?with_libmysofa:Requires: libmysofa >= 0.7}
314 %{?with_openmpt:Requires: libopenmpt >= 0.4.5}
315 %{?with_theora:Requires: libtheora >= 1.0-0.beta3}
317 Requires: libva >= 1.0.3
318 Requires: libva-drm >= 1.0.3
319 Requires: libva-x11 >= 1.0.3
321 Requires: libvdpau >= 1.3
322 %{?with_vpx:Requires: libvpx >= 1.4.0}
323 %{?with_webp:Requires: libwebp >= 0.4.0}
324 %{?with_x264:Requires: libx264 >= 0.1.3-1.20111212_2245}
325 %{?with_x265:Requires: libx265 >= 1.9}
326 Requires: libxcb >= 1.4
327 Requires: lame-libs >= 3.98.3
328 %{?with_mfx:Requires: mfx_dispatch >= 1.19}
329 %{?with_openh264:Requires: openh264 >= 1.3}
330 Requires: openjpeg2 >= 2.1
331 %{?with_rabbitmq:Requires: rabbitmq-c >= 0.7.1}
332 %{?with_rav1e:Requires: rav1e-libs >= 0.4.0}
333 %{?with_rkmpp:Requires: rockchip-mpp >= 1.3.7}
334 %{?with_rubberband:Requires: rubberband-libs >= 1.8.1}
335 %{?with_shine:Requires: shine >= 3.0.0}
336 Requires: speex >= 1:1.2-rc1
337 %{?with_srt:Requires: srt >= 1.3}
338 Requires: twolame-libs >= 0.3.10
339 %{?with_vapoursynth:Requires: vapoursynth >= 42}
340 %{?with_vidstab:Requires: vid.stab >= 0.98}
341 %{?with_vmaf:Requires: vmaf-libs >= 1.5.2}
342 %{?with_avs2:Requires: xavs2 >= 1.3}
343 %{?with_xvid:Requires: xvid >= 1:1.1.0}
344 %{?with_zmq:Requires: zeromq >= 4.2.1}
345 %{?with_zimg:Requires: zimg >= 2.7.0}
346 %{?with_zvbi:Requires: zvbi >= 0.2.28}
349 This package contains the ffmpeg shared libraries:
350 - the codec library (libavcodec). It supports most existing encoding
351 formats (MPEG, DivX, MPEG4, AC3, DV...),
352 - demuxer library (libavformat). It supports most existing file
353 formats (AVI, MPEG, OGG, Matroska, ASF...),
354 - video postprocessing library (libpostproc).
356 %description libs -l pl.UTF-8
357 Ten pakiet zawiera biblioteki współdzielone ffmpeg:
358 - bibliotekę kodeków (libavcodec); obsługuje większość istniejących
359 formatów kodowania (MPEG, DivX, MPEG4, AC3, DV...),
360 - bibliotekę demuksera (libavformat); obsługuje większość istniejących
361 formatów plików (AVI, MPEG, OGG, Matroska, ASF...),
362 - bibliotekÄ™ postprocessingu (libpostproc).
365 Summary: ffmpeg header files
366 Summary(pl.UTF-8): Pliki nagłówkowe ffmpeg
367 Group: Development/Libraries
368 Requires: %{name}-libs = %{version}-%{release}
369 # Libs.private from *.pc
370 %{?with_openal:Requires: OpenAL-devel >= 1.1}
371 %{?with_opencl:Requires: OpenCL-devel >= 1.2}
372 %{?with_opengl:Requires: OpenGL-devel}
373 %{?with_vulkan:Requires: Vulkan-Loader-devel >= 1.1.97}
374 Requires: SDL2-devel >= 2.0.1
375 Requires: alsa-lib-devel
376 Requires: aom-devel >= 1.0.0
377 %{?with_aribb24:Requires: aribb24-devel}
378 %{?with_avs2:Requires: davs2-devel >= 1.6}
379 Requires: bzip2-devel
380 Requires: celt-devel >= 0.11.0
381 %{?with_codec2:Requires: codec2-devel}
382 %{?with_dav1d:Requires: dav1d-devel >= 0.5.0}
383 %{?with_fdk_aac:Requires: fdk-aac-devel}
384 %{?with_flite:Requires: flite-devel >= 1.4}
385 Requires: fontconfig-devel
386 Requires: freetype-devel
387 %{?with_fribidi:Requires: fribidi-devel}
388 %{?with_gme:Requires: game-music-emu-devel}
389 %{?with_glslang:Requires: glslang-devel}
390 Requires: gnutls-devel
391 Requires: jack-audio-connection-kit-devel
392 %{?with_kvazaar:Requires: kvazaar-devel >= 0.8.1}
393 Requires: lame-libs-devel >= 3.98.3
394 %{?with_lensfun:Requires: lensfun-devel >= 0.3.95}
395 Requires: libass-devel
396 %{?with_iec61883:Requires: libavc1394-devel}
397 Requires: libbluray-devel
398 %{?with_bs2b:Requires: libbs2b-devel}
399 %{?with_caca:Requires: libcaca-devel}
400 Requires: libcdio-paranoia-devel >= 0.90-2
401 %{?with_chromaprint:Requires: libchromaprint-devel}
402 %{?with_crystalhd:Requires: libcrystalhd-devel}
403 %{?with_dc1394:Requires: libdc1394-devel >= 2}
404 %{?with_libdrm:Requires: libdrm-devel}
405 %{?with_gsm:Requires: libgsm-devel}
406 %{?with_iec61883:Requires: libiec61883-devel}
407 %{?with_libklvanc:Requires: libklvanc-devel}
408 %{?with_modplug:Requires: libmodplug-devel}
409 %{?with_libmysofa:Requires: libmysofa-devel >= 0.7}
410 %{?with_openmpt:Requires: libopenmpt-devel >= 0.4.5}
411 %if %{with dc1394} || %{with iec61883}
412 Requires: libraw1394-devel >= 2
414 %{?with_librsvg:Requires: librsvg-devel >= 2}
415 Requires: librtmp-devel
416 %{?with_smb:Requires: libsmbclient-devel}
417 %{?with_ssh:Requires: libssh-devel}
418 Requires: libstdc++-devel
419 %{?with_theora:Requires: libtheora-devel >= 1.0-0.beta3}
420 Requires: libv4l-devel
421 %{?with_va:Requires: libva-devel >= 1.0.3}
422 %{?with_va:Requires: libva-drm-devel >= 1.0.3}
423 %{?with_va:Requires: libva-x11-devel >= 1.0.3}
424 Requires: libvdpau-devel >= 1.3
425 Requires: libvorbis-devel
426 %{?with_vpx:Requires: libvpx-devel >= 1.4.0}
427 %{?with_webp:Requires: libwebp-devel >= 0.4.0}
428 %{?with_x264:Requires: libx264-devel >= 0.1.3-1.20110625_2245}
429 %{?with_x265:Requires: libx265-devel >= 1.9}
430 # libxcb xcb-shm xcb-xfixes xcb-shape
431 Requires: libxcb-devel >= 1.4
432 %{?with_libxml2:Requires: libxml2-devel >= 2}
433 %{?with_lv2:Requires: lilv-devel}
434 %{?with_mfx:Requires: mfx_dispatch-devel >= 1.19}
435 %{?with_amr:Requires: opencore-amr-devel}
436 %{?with_opencv:Requires: opencv-devel >= 2}
437 %{?with_openh264:Requires: openh264-devel >= 1.3}
438 Requires: openjpeg2-devel >= 2.1
440 %{?with_pulseaudio:Requires: pulseaudio-devel}
441 %{?with_rabbitmq:Requires: rabbitmq-c-devel >= 0.7.1}
442 %{?with_rav1e:Requires: rav1e-devel >= 0.4.0}
443 %{?with_rkmpp:Requires: rockchip-mpp-devel >= 1.3.7}
444 %{?with_rubberband:Requires: rubberband-devel >= 1.8.1}
445 %{?with_shine:Requires: shine-devel >= 3.0.0}
446 %{?with_snappy:Requires: snappy-devel}
447 %{?with_soxr:Requires: soxr-devel}
448 Requires: speex-devel >= 1:1.2-rc1
449 %{?with_glslang:Requires: spirv-tools-devel}
450 %{?with_srt:Requires: srt-devel >= 1.3}
451 %{?with_tesseract:Requires: tesseract-devel}
452 Requires: twolame-devel >= 0.3.10
453 %{?with_vapoursynth:Requires: vapoursynth-devel >= 42}
454 %{?with_vidstab:Requires: vid.stab-devel >= 0.98}
455 %{?with_voamrwbenc:Requires: vo-amrwbenc-devel}
456 %{?with_vmaf:Requires: vmaf-devel >= 1.5.2}
457 %{?with_ilbc:Requires: webrtc-libilbc-devel}
458 %{?with_avs:Requires: xavs-devel}
459 %{?with_avs2:Requires: xavs2-devel >= 1.3}
460 Requires: xorg-lib-libX11-devel
461 Requires: xorg-lib-libXext-devel
462 Requires: xorg-lib-libXv-devel
463 %{?with_xvid:Requires: xvid-devel >= 1:1.1.0}
465 %{?with_zmq:Requires: zeromq-devel >= 4.2.1}
466 %{?with_zimg:Requires: zimg-devel >= 2.7.0}
468 %{?with_zvbi:Requires: zvbi-devel >= 0.2.28}
469 Obsoletes: libpostproc-devel
474 %description devel -l pl.UTF-8
475 Pliki nagłówkowe ffmpeg.
478 Summary: ffmpeg static libraries
479 Summary(pl.UTF-8): Statyczne biblioteki ffmpeg
480 Group: Development/Libraries
481 Requires: %{name}-devel = %{version}-%{release}
484 ffmpeg static libraries (libavcodec and libavformat).
486 %description static -l pl.UTF-8
487 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
490 Summary: FFplay - SDL-based media player
491 Summary(pl.UTF-8): FFplay - odtwarzacz mediów oparty na SDL
492 Group: Applications/Multimedia
493 Requires: %{name}-libs = %{version}-%{release}
496 FFplay is a very simple and portable media player using the FFmpeg
497 libraries and the SDL library. It is mostly used as a test bench for
498 the various APIs of FFmpeg.
500 %description ffplay -l pl.UTF-8
501 FFplay to bardzo prosty i przenośny odtwarzacz mediów używający
502 bibliotek FFmpeg oraz biblioteki SDL. Jest używany głównie do
503 testowania różnych API FFmpeg.
506 Summary: FFmpeg documentation in HTML format
507 Summary(pl.UTF-8): Dokumentacja pakietu FFmpeg w formacie HTML
512 FFmpeg documentation in HTML format.
514 %description doc -l pl.UTF-8
515 Dokumentacja pakietu FFmpeg w formacie HTML.
522 %if %{with v4l2_request}
527 # package the grep result for mplayer, the result formatted as ./mplayer/configure
528 cat <<EOF > ffmpeg-avconfig
530 libavdecoders_all="$(sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
531 libavencoders_all="$(sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
532 libavparsers_all="$(sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
533 libavbsfs_all="$(sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
534 libavdemuxers_all="$(sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
535 libavmuxers_all="$(sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
536 libavprotocols_all="$(sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
537 libavhwaccels_all="$(sed -n 's/^[^#]*HWACCEL.*(.*, *\(.*\)).*/\1_hwaccel/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
538 libavfilters_all="$(sed -n 's/^[^#]*FILTER.*(.*, *\(.*\),.*).*/\1_filter/p' libavfilter/allfilters.c | tr '[a-z]' '[A-Z]')"
540 cat <<'EOF' >> ffmpeg-avconfig
544 echo $libavdecoders_all
547 echo $libavencoders_all
550 echo $libavparsers_all
556 echo $libavdemuxers_all
559 echo $libavmuxers_all
562 echo $libavprotocols_all
565 echo $libavhwaccels_all
568 echo $libavfilters_all
592 # - it's not autoconf configure
593 # - --disable-debug, --disable-optimizations, tune=generic causes not to override our optflags
595 --arch=%{_target_base_arch} \
596 --prefix=%{_prefix} \
597 --libdir=%{_libdir} \
598 --shlibdir=%{_libdir} \
599 --mandir=%{_mandir} \
600 --extra-cflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcflags}%{?with_decklink: -I/usr/include/decklink} -I/usr/include/opencv4" \
601 --extra-cxxflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcxxflags}%{?with_decklink: -I/usr/include/decklink} -I/usr/include/opencv4" \
602 --extra-ldflags="%{rpmcflags} %{rpmldflags}" \
605 --disable-optimizations \
606 --disable-stripping \
607 %{!?with_doc:--disable-doc} \
609 --enable-avresample \
610 %{?with_chromaprint:--enable-chromaprint} \
611 %{?with_cudasdk:--enable-cuda-nvcc} \
612 %{?with_decklink:--enable-decklink} \
613 %{!?with_ffnvcodec:--disable-ffnvcodec} \
617 %{?with_frei0r:--enable-frei0r} \
618 %{?with_ladspa:--enable-ladspa} \
620 %{?with_aribb24:--enable-libaribb24} \
623 %{?with_bs2b:--enable-libbs2b} \
624 %{?with_caca:--enable-libcaca} \
627 %{?with_codec2:--enable-libcodec2} \
628 %{?with_dav1d:--enable-libdav1d} \
629 %{?with_avs2:--enable-libdavs2} \
630 %{?with_dc1394:--enable-libdc1394} \
631 %{?with_libdrm:--enable-libdrm} \
632 %{?with_flite:--enable-libflite} \
633 --enable-libfontconfig \
634 --enable-libfreetype \
635 %{?with_fribidi:--enable-libfribidi} \
636 %{?with_glslang:--enable-libglslang} \
637 %{?with_gme:--enable-libgme} \
638 %{?with_gsm:--enable-libgsm} \
639 %{?with_iec61883:--enable-libiec61883} \
640 %{?with_ilbc:--enable-libilbc} \
642 %{?with_kvazaar:--enable-libkvazaar} \
643 %{?with_libklvanc:--enable-libklvanc} \
644 %{?with_lensfun:--enable-liblensfun} \
645 %{?with_mfx:--enable-libmfx} \
646 %{?with_modplug:--enable-libmodplug} \
647 --enable-libmp3lame \
648 %{?with_libmysofa:--enable-libmysofa} \
649 %{?with_amr:--enable-libopencore-amrnb} \
650 %{?with_amr:--enable-libopencore-amrwb} \
651 %{?with_opencv:--enable-libopencv} \
652 %{?with_openh264:--enable-libopenh264} \
653 --enable-libopenjpeg \
654 %{?with_openmpt:--enable-libopenmpt} \
656 %{?with_pulseaudio:--enable-libpulse} \
657 %{?with_rabbitmq:--enable-librabbitmq} \
658 %{?with_rav1e:--enable-librav1e} \
659 %{?with_librsvg:--enable-librsvg} \
661 %{?with_rubberband:--enable-librubberband} \
662 %{?with_shine:--enable-libshine} \
663 %{?with_smb:--enable-libsmbclient} \
664 %{?with_snappy:--enable-libsnappy} \
665 %{?with_soxr:--enable-libsoxr} \
667 %{?with_srt:--enable-libsrt} \
668 %{?with_ssh:--enable-libssh} \
669 %{?with_tesseract:--enable-libtesseract} \
670 %{?with_theora:--enable-libtheora} \
671 --enable-libtwolame \
673 %{?with_vidstab:--enable-libvidstab} \
674 %{?with_vmaf:--enable-libvmaf} \
675 %{?with_voamrwbenc:--enable-libvo-amrwbenc} \
677 %{?with_vpx:--enable-libvpx} \
678 %{?with_webp:--enable-libwebp} \
679 %{?with_x264:--enable-libx264} \
680 %{?with_x265:--enable-libx265} \
681 %{?with_avs:--enable-libxavs} \
682 %{?with_avs2:--enable-libxavs2} \
684 %{?with_libxml2:--enable-libxml2} \
685 %{?with_xvid:--enable-libxvid} \
686 %{?with_zimg:--enable-libzimg} \
687 %{?with_zmq:--enable-libzmq} \
688 %{?with_zvbi:--enable-libzvbi} \
689 %{?with_lv2:--enable-lv2} \
690 %{?with_omx:--enable-omx} \
691 %{?with_openal:--enable-openal} \
692 %{?with_opencl:--enable-opencl} \
693 %{?with_opengl:--enable-opengl} \
694 %{?with_pocketsphinx:--enable-pocketsphinx} \
697 %{?with_rkmpp:--enable-rkmpp} \
700 %{!?with_va:--disable-vaapi} \
701 %{?with_vapoursynth:--enable-vapoursynth} \
702 %{?with_vulkan:--enable-vulkan} \
703 %if %{with v4l2_request}
705 --enable-v4l2-request \
707 %ifnarch %{ix86} %{x8664}
718 %{?with_fdk_aac:--enable-libfdk-aac} \
719 %{?with_npp:--enable-libnpp} \
721 --enable-runtime-cpudetect
726 # CC_O to add -c to commandline. makefile should be patched
727 %{__make} tools/qt-faststart V=1 CC_O='-c -o $@'
729 %{?with_tests:%{__make} check V=1}
732 rm -rf $RPM_BUILD_ROOT
733 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
734 $RPM_BUILD_ROOT%{_includedir}/ffmpeg
736 %{__make} install install-headers \
737 DESTDIR=$RPM_BUILD_ROOT \
740 # install nonstandard, non-public headers manually
741 cp -a config.h $RPM_BUILD_ROOT%{_includedir}/ffmpeg
742 for a in libavutil/*/{asm,bswap}.h; do
743 install -Dp $a $RPM_BUILD_ROOT%{_includedir}/$a
745 cp -a libavformat/riff.h $RPM_BUILD_ROOT%{_includedir}/libavformat
747 install -p tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
749 # install as ffmpeg-avconfig to avoid with possible programs looking for
750 # ffmpeg-config and expecting --libs output from it which is not implemented
751 # simple to do (by querying pkgconfig), but why?
752 install -p ffmpeg-avconfig $RPM_BUILD_ROOT%{_bindir}/ffmpeg-avconfig
754 # packaged as %doc in -doc
756 %{__rm} $RPM_BUILD_ROOT%{_docdir}/ffmpeg/*.html
759 install -d $RPM_BUILD_ROOT%{_examplesdir}
760 %{__mv} $RPM_BUILD_ROOT%{_datadir}/ffmpeg/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
763 rm -rf $RPM_BUILD_ROOT
765 %post libs -p /sbin/ldconfig
766 %postun libs -p /sbin/ldconfig
769 %defattr(644,root,root,755)
770 %doc CREDITS LICENSE.md MAINTAINERS README.md RELEASE_NOTES doc/APIchanges
771 %attr(755,root,root) %{_bindir}/ffmpeg
772 %attr(755,root,root) %{_bindir}/ffprobe
773 %attr(755,root,root) %{_bindir}/qt-faststart
774 %dir %{_datadir}/ffmpeg
775 %{_datadir}/ffmpeg/*.ffpreset
776 %{_datadir}/ffmpeg/ffprobe.xsd
778 %{_mandir}/man1/ffmpeg.1*
779 %{_mandir}/man1/ffmpeg-all.1*
780 %{_mandir}/man1/ffmpeg-bitstream-filters.1*
781 %{_mandir}/man1/ffmpeg-codecs.1*
782 %{_mandir}/man1/ffmpeg-devices.1*
783 %{_mandir}/man1/ffmpeg-filters.1*
784 %{_mandir}/man1/ffmpeg-formats.1*
785 %{_mandir}/man1/ffmpeg-protocols.1*
786 %{_mandir}/man1/ffmpeg-resampler.1*
787 %{_mandir}/man1/ffmpeg-scaler.1*
788 %{_mandir}/man1/ffmpeg-utils.1*
789 %{_mandir}/man1/ffprobe.1*
790 %{_mandir}/man1/ffprobe-all.1*
794 %defattr(644,root,root,755)
795 %attr(755,root,root) %{_libdir}/libavcodec.so.*.*.*
796 %attr(755,root,root) %ghost %{_libdir}/libavcodec.so.58
797 %attr(755,root,root) %{_libdir}/libavdevice.so.*.*.*
798 %attr(755,root,root) %ghost %{_libdir}/libavdevice.so.58
799 %attr(755,root,root) %{_libdir}/libavfilter.so.*.*.*
800 %attr(755,root,root) %ghost %{_libdir}/libavfilter.so.7
801 %attr(755,root,root) %{_libdir}/libavformat.so.*.*.*
802 %attr(755,root,root) %ghost %{_libdir}/libavformat.so.58
803 %attr(755,root,root) %{_libdir}/libavresample.so.*.*.*
804 %attr(755,root,root) %ghost %{_libdir}/libavresample.so.4
805 %attr(755,root,root) %{_libdir}/libavutil.so.*.*.*
806 %attr(755,root,root) %ghost %{_libdir}/libavutil.so.56
807 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
808 %attr(755,root,root) %ghost %{_libdir}/libpostproc.so.55
809 %attr(755,root,root) %{_libdir}/libswresample.so.*.*.*
810 %attr(755,root,root) %ghost %{_libdir}/libswresample.so.3
811 %attr(755,root,root) %{_libdir}/libswscale.so.*.*.*
812 %attr(755,root,root) %ghost %{_libdir}/libswscale.so.5
815 %defattr(644,root,root,755)
816 %doc doc/optimization.txt
817 %attr(755,root,root) %{_bindir}/ffmpeg-avconfig
818 %attr(755,root,root) %{_libdir}/libavcodec.so
819 %attr(755,root,root) %{_libdir}/libavdevice.so
820 %attr(755,root,root) %{_libdir}/libavfilter.so
821 %attr(755,root,root) %{_libdir}/libavformat.so
822 %attr(755,root,root) %{_libdir}/libavresample.so
823 %attr(755,root,root) %{_libdir}/libavutil.so
824 %attr(755,root,root) %{_libdir}/libpostproc.so
825 %attr(755,root,root) %{_libdir}/libswresample.so
826 %attr(755,root,root) %{_libdir}/libswscale.so
827 %{_includedir}/ffmpeg
828 %{_includedir}/libavcodec
829 %{_includedir}/libavdevice
830 %{_includedir}/libavfilter
831 %{_includedir}/libavformat
832 %{_includedir}/libavresample
833 %{_includedir}/libavutil
834 %{_includedir}/libpostproc
835 %{_includedir}/libswresample
836 %{_includedir}/libswscale
837 %{_pkgconfigdir}/libavcodec.pc
838 %{_pkgconfigdir}/libavdevice.pc
839 %{_pkgconfigdir}/libavfilter.pc
840 %{_pkgconfigdir}/libavformat.pc
841 %{_pkgconfigdir}/libavresample.pc
842 %{_pkgconfigdir}/libavutil.pc
843 %{_pkgconfigdir}/libpostproc.pc
844 %{_pkgconfigdir}/libswresample.pc
845 %{_pkgconfigdir}/libswscale.pc
847 %{_mandir}/man3/libavcodec.3*
848 %{_mandir}/man3/libavdevice.3*
849 %{_mandir}/man3/libavfilter.3*
850 %{_mandir}/man3/libavformat.3*
851 %{_mandir}/man3/libavutil.3*
852 %{_mandir}/man3/libswresample.3*
853 %{_mandir}/man3/libswscale.3*
855 %{_examplesdir}/%{name}-%{version}
858 %defattr(644,root,root,755)
859 %{_libdir}/libavcodec.a
860 %{_libdir}/libavdevice.a
861 %{_libdir}/libavfilter.a
862 %{_libdir}/libavformat.a
863 %{_libdir}/libavresample.a
864 %{_libdir}/libavutil.a
865 %{_libdir}/libpostproc.a
866 %{_libdir}/libswresample.a
867 %{_libdir}/libswscale.a
870 %defattr(644,root,root,755)
871 %attr(755,root,root) %{_bindir}/ffplay
873 %{_mandir}/man1/ffplay.1*
874 %{_mandir}/man1/ffplay-all.1*
879 %defattr(644,root,root,755)