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