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_without 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 rkmpp # Rockchip Media Process Platform code [implies libdrm]
61 %bcond_without rubberband # rubberband filter
62 %bcond_without shine # shine fixed-point MP3 encoder
63 %bcond_without snappy # Snappy compression support (needed for hap encoding)
64 %bcond_without srt # Haivision SRT protocol support
65 %bcond_without ssh # SFTP protocol support via libssh
66 %bcond_with smb # SMB support via libsmbclient
67 %bcond_without soxr # SoX Resampler support
68 %bcond_with tesseract # OCR filter based on Tesseract
69 %bcond_without theora # Theora encoding via libtheora
70 %bcond_without vmaf # VMAF filter support
71 %bcond_without x264 # H.264 x264 encoder
72 %bcond_without x265 # H.265/HEVC x265 encoder
73 %bcond_without va # VAAPI (Video Acceleration API)
74 %bcond_without vapoursynth # VapourSynth demuxer
75 %bcond_without vidstab # vid.stab video stabilization support
76 %bcond_without voamrwbenc # MR-WB encoding via libvo-amrwbenc
77 %bcond_without vpx # VP8, a high-quality video codec
78 %bcond_without vulkan # Vulkan code
79 %bcond_without wavpack # wavpack encoding support
80 %bcond_without webp # WebP encoding support
81 %bcond_without xvid # vid encoding via xvidcore
82 %bcond_without zimg # zscale filter based on z.lib
83 %bcond_without zmq # 0MQ message passing
84 %bcond_without zvbi # teletext via libzvbi
85 %bcond_without doc # don't build docs
86 %bcond_with tests # "make check" (some tests fail as of 2.5)
90 %undefine with_chromaprint
96 %ifnarch %{ix86} %{x8664}
97 %undefine with_ffnvcodec
99 %ifnarch %{ix86} %{x8664} %{arm}
105 %ifarch i686 pentium4 athlon %{x8664} x32
106 %define with_crystalhd 1
108 Summary: FFmpeg - a very fast video and audio converter
109 Summary(pl.UTF-8): FFmpeg - szybki konwerter audio/wideo
113 # LGPL or GPL, chosen at configure time (GPL version is more featured)
114 # GPL: frei0r libcdio libdavs2 rubberband vidstab x264 x265 xavs xavs2 xvid
115 # v3 (allows *GPLv3 or Apache-licensed libs): gmp lensfun opencore-amr vmaf vo-*enc rkmpp
117 License: GPL v3+ with LGPL v3+ parts
118 Group: Applications/Multimedia
119 Source0: http://ffmpeg.org/releases/%{name}-%{version}.tar.xz
120 # Source0-md5: 5d1956bb552e91dc3b8287db346d0d58
121 Patch0: %{name}-omx-libnames.patch
122 Patch1: %{name}-atadenoise.patch
123 URL: http://www.ffmpeg.org/
124 %{?with_decklink:BuildRequires: Blackmagic_DeckLink_SDK >= 10.9.5}
125 %{?with_openal:BuildRequires: OpenAL-devel >= 1.1}
126 %{?with_opencl:BuildRequires: OpenCL-devel >= 1.2}
127 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
128 # libomxil-bellagio-devel or limoi-core-devel (just headers, library is dlopened at runtime)
129 %{?with_omx:BuildRequires: OpenMAX-IL-devel}
130 BuildRequires: SDL2-devel >= 2.0.1
131 BuildRequires: SDL2-devel < 2.1.0
132 %{?with_vulkan:BuildRequires: Vulkan-Loader-devel >= 1.1.97}
133 BuildRequires: alsa-lib-devel
134 BuildRequires: aom-devel >= 1.0.0
135 %{?with_aribb24:BuildRequires: aribb24-devel}
136 BuildRequires: bzip2-devel
137 BuildRequires: celt-devel >= 0.11.0
138 %{?with_codec2:BuildRequires: codec2-devel}
139 %{?with_dav1d:BuildRequires: dav1d-devel >= 0.4.0}
140 %{?with_avs2:BuildRequires: davs2-devel >= 1.6}
141 %{?with_fdk_aac:BuildRequires: fdk-aac-devel}
142 %{?with_flite:BuildRequires: flite-devel >= 1.4}
143 BuildRequires: fontconfig-devel
144 BuildRequires: freetype-devel
145 %{?with_frei0r:BuildRequires: frei0r-devel}
146 %{?with_fribidi:BuildRequires: fribidi-devel}
147 %{?with_gme:BuildRequires: game-music-emu-devel}
149 # require version with altivec support fixed
150 BuildRequires: gcc >= 5:3.3.2-3
152 %{?with_glslang:BuildRequires: glslang-devel}
153 BuildRequires: gmp-devel
154 BuildRequires: gnutls-devel
155 BuildRequires: jack-audio-connection-kit-devel
156 %{?with_kvazaar:BuildRequires: kvazaar-devel >= 0.8.1}
157 %{?with_ladspa:BuildRequires: ladspa-devel}
158 BuildRequires: lame-libs-devel >= 3.98.3
159 %{?with_lensfun:BuildRequires: lensfun-devel}
160 BuildRequires: libass-devel
161 %{?with_iec61883:BuildRequires: libavc1394-devel}
162 %{?with_bs2b:BuildRequires: libbs2b-devel}
163 BuildRequires: libbluray-devel
164 %{?with_caca:BuildRequires: libcaca-devel}
165 BuildRequires: libcdio-paranoia-devel >= 0.90-2
166 %{?with_chromaprint:BuildRequires: libchromaprint-devel}
167 %{?with_crystalhd:BuildRequires: libcrystalhd-devel}
168 %{?with_dc1394:BuildRequires: libdc1394-devel >= 2}
169 %{?with_libdrm:BuildRequires: libdrm-devel}
170 %{?with_gsm:BuildRequires: libgsm-devel}
171 %{?with_iec61883:BuildRequires: libiec61883-devel}
172 %{?with_libklvanc:BuildRequires: libklvanc-devel}
173 %{?with_modplug:BuildRequires: libmodplug-devel}
174 %{?with_libmysofa:BuildRequires: libmysofa-devel >= 0.7}
175 %{?with_openmpt:BuildRequires: libopenmpt-devel >= 0.4.5}
176 %if %{with dc1394} || %{with iec61883}
177 BuildRequires: libraw1394-devel >= 2
179 %{?with_librsvg:BuildRequires: librsvg-devel >= 2}
180 BuildRequires: librtmp-devel
181 %{?with_ssh:BuildRequires: libssh-devel}
182 %{?with_smb:BuildRequires: libsmbclient-devel}
183 %{?with_theora:BuildRequires: libtheora-devel >= 1.0-0.beta3}
184 BuildRequires: libtool >= 2:1.4d-3
185 BuildRequires: libv4l-devel
187 BuildRequires: libva-devel >= 1.0.3
188 BuildRequires: libva-drm-devel >= 1.0.3
189 BuildRequires: libva-x11-devel >= 1.0.3
191 BuildRequires: libvdpau-devel >= 1.3
192 BuildRequires: libvorbis-devel
193 %{?with_vpx:BuildRequires: libvpx-devel >= 1.4.0}
194 %{?with_webp:BuildRequires: libwebp-devel >= 0.4.0}
196 %{?with_x264:BuildRequires: libx264-devel >= 0.1.3-1.20111212_2245}
198 %{?with_x265:BuildRequires: libx265-devel >= 1.9}
199 # libxcb xcb-shm xcb-xfixes xcb-shape
200 BuildRequires: libxcb-devel >= 1.4
201 %{?with_libxml2:BuildRequires: libxml2-devel >= 2}
202 %{?with_lv2:BuildRequires: lilv-devel}
203 %{?with_lv2:BuildRequires: lv2-devel}
204 %{?with_mfx:BuildRequires: mfx_dispatch-devel >= 1.19}
210 %{?with_ffnvcodec:BuildRequires: nv-codec-headers >= 9.1.23.1}
212 %{?with_amr:BuildRequires: opencore-amr-devel}
213 %{?with_opencv:BuildRequires: opencv-devel >= 2}
214 %{?with_openh264:BuildRequires: openh264-devel >= 1.3}
215 BuildRequires: openjpeg2-devel >= 2.1
216 BuildRequires: opus-devel
217 BuildRequires: perl-Encode
218 BuildRequires: perl-tools-pod
219 %{?with_pocketsphinx:BuildRequires: pocketsphinx-devel > 0.8}
220 BuildRequires: pkgconfig
221 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
222 %{?with_rabbitmq:BuildRequires: rabbitmq-c-devel >= 0.7.1}
223 %{?with_rkmpp:BuildRequires: rockchip-mpp-devel >= 1.3.7}
224 BuildRequires: rpmbuild(macros) >= 1.470
225 %{?with_rubberband:BuildRequires: rubberband-devel >= 1.8.1}
226 %{?with_shine:BuildRequires: shine-devel >= 3.0.0}
227 %{?with_snappy:BuildRequires: snappy-devel}
228 %{?with_soxr:BuildRequires: soxr-devel}
229 BuildRequires: speex-devel >= 1:1.2-rc1
230 %{?with_glslang:BuildRequires: spirv-tools-devel}
231 %{?with_srt:BuildRequires: srt-devel >= 1.3}
232 %{?with_tesseract:BuildRequires: tesseract-devel}
233 %{?with_doc:BuildRequires: tetex}
234 %{?with_doc:BuildRequires: texi2html}
235 %{?with_doc:BuildRequires: texinfo}
236 BuildRequires: twolame-devel >= 0.3.10
237 %{?with_vapoursynth:BuildRequires: vapoursynth-devel >= 42}
238 %{?with_vidstab:BuildRequires: vid.stab-devel >= 0.98}
239 %{?with_vmaf:BuildRequires: vmaf-devel >= 1.3.9}
240 %{?with_voamrwbenc:BuildRequires: vo-amrwbenc-devel}
241 %{?with_wavpack:BuildRequires: wavpack-devel}
242 %{?with_ilbc:BuildRequires: webrtc-libilbc-devel}
243 %{?with_avs:BuildRequires: xavs-devel}
244 %{?with_avs2:BuildRequires: xavs2-devel >= 1.3}
245 BuildRequires: xorg-lib-libX11-devel
246 BuildRequires: xorg-lib-libXext-devel
247 BuildRequires: xorg-lib-libXv-devel
248 %{?with_xvid:BuildRequires: xvid-devel >= 1:1.1.0}
249 BuildRequires: xz-devel
251 %{?with_zmq:BuildRequires: zeromq-devel >= 4.2.1}
252 %{?with_zimg:BuildRequires: zimg-devel >= 2.7.0}
253 BuildRequires: zlib-devel
254 %{?with_zvbi:BuildRequires: zvbi-devel >= 0.2.28}
255 %{?with_autoreqdep:BuildConflicts: libpostproc}
256 # overflows maximum hash table size
257 BuildConflicts: pdksh < 5.2.14-57
258 Requires: %{name}-libs = %{version}-%{release}
260 Suggests: fonts-TTF-Roboto
261 Obsoletes: libpostproc
262 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
264 %define specflags -fno-strict-aliasing
266 # -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one)
267 %define specflags_ia32 -fomit-frame-pointer
268 # -mmmx is needed to enable <mmintrin.h> code.
269 %define specflags_i586 -mmmx
270 %define specflags_i686 -mmmx
271 %define specflags_ppc -fPIC
274 FFmpeg is a complete solution to record, convert and stream audio and
275 video. It is a command line tool to convert one video file format to
276 another. It also supports grabbing and encoding in real time from a TV
279 %description -l pl.UTF-8
280 FFmpeg to kompletne rozwiÄ…zanie nagrywania, konwersji i transmisji
281 strumieni dźwięku i obrazu. Jest to działające z linii poleceń
282 narzędzie do konwersji obrazu z jednego formatu do innego. Obsługuje
283 także przechwytywanie i kodowanie w czasie rzeczywistym z karty
287 Summary: ffmpeg libraries
288 Summary(pl.UTF-8): Biblioteki ffmpeg
290 Requires: SDL2 >= 2.0.1
291 %{?with_vulkan:Requires: Vulkan-Loader >= 1.1.97}
292 Requires: aom >= 1.0.0
293 Requires: celt >= 0.11.0
294 %{?with_dav1d:Requires: dav1d >= 0.4.0}
295 %{?with_avs2:Requires: davs2 >= 1.6}
296 %{?with_flite:Requires: flite >= 1.4}
297 %if "%(rpm -q --qf '%{V}' gnutls-devel)" >= "3.0.20"
298 # uses gnutls_certificate_set_x509_system_trust if >= 3.0.20
299 Requires: gnutls-libs >= 3.0.20
301 %{?with_kvazaar:Requires: kvazaar-libs >= 0.8.1}
302 %{?with_libmysofa:Requires: libmysofa >= 0.7}
303 %{?with_openmpt:Requires: libopenmpt >= 0.4.5}
304 %{?with_theora:Requires: libtheora >= 1.0-0.beta3}
306 Requires: libva >= 1.0.3
307 Requires: libva-drm >= 1.0.3
308 Requires: libva-x11 >= 1.0.3
310 Requires: libvdpau >= 1.3
311 %{?with_vpx:Requires: libvpx >= 1.4.0}
312 %{?with_webp:Requires: libwebp >= 0.4.0}
313 %{?with_x264:Requires: libx264 >= 0.1.3-1.20111212_2245}
314 %{?with_x265:Requires: libx265 >= 1.9}
315 Requires: libxcb >= 1.4
316 Requires: lame-libs >= 3.98.3
317 %{?with_mfx:Requires: mfx_dispatch >= 1.19}
318 %{?with_openh264:Requires: openh264 >= 1.3}
319 Requires: openjpeg2 >= 2.1
320 %{?with_rabbitmq:Requires: rabbitmq-c >= 0.7.1}
321 %{?with_rkmpp:Requires: rockchip-mpp >= 1.3.7}
322 %{?with_rubberband:Requires: rubberband-libs >= 1.8.1}
323 %{?with_shine:Requires: shine >= 3.0.0}
324 Requires: speex >= 1:1.2-rc1
325 %{?with_srt:Requires: srt >= 1.3}
326 Requires: twolame-libs >= 0.3.10
327 %{?with_vapoursynth:Requires: vapoursynth >= 42}
328 %{?with_vidstab:Requires: vid.stab >= 0.98}
329 %{?with_vmaf:Requires: vmaf-libs >= 1.3.9}
330 %{?with_avs2:Requires: xavs2 >= 1.3}
331 %{?with_xvid:Requires: xvid >= 1:1.1.0}
332 %{?with_zmq:Requires: zeromq >= 4.2.1}
333 %{?with_zimg:Requires: zimg >= 2.7.0}
334 %{?with_zvbi:Requires: zvbi >= 0.2.28}
337 This package contains the ffmpeg shared libraries:
338 - the codec library (libavcodec). It supports most existing encoding
339 formats (MPEG, DivX, MPEG4, AC3, DV...),
340 - demuxer library (libavformat). It supports most existing file
341 formats (AVI, MPEG, OGG, Matroska, ASF...),
342 - video postprocessing library (libpostproc).
344 %description libs -l pl.UTF-8
345 Ten pakiet zawiera biblioteki współdzielone ffmpeg:
346 - bibliotekę kodeków (libavcodec); obsługuje większość istniejących
347 formatów kodowania (MPEG, DivX, MPEG4, AC3, DV...),
348 - bibliotekę demuksera (libavformat); obsługuje większość istniejących
349 formatów plików (AVI, MPEG, OGG, Matroska, ASF...),
350 - bibliotekÄ™ postprocessingu (libpostproc).
353 Summary: ffmpeg header files
354 Summary(pl.UTF-8): Pliki nagłówkowe ffmpeg
355 Group: Development/Libraries
356 Requires: %{name}-libs = %{version}-%{release}
357 # Libs.private from *.pc
358 %{?with_openal:Requires: OpenAL-devel >= 1.1}
359 %{?with_opencl:Requires: OpenCL-devel >= 1.2}
360 %{?with_opengl:Requires: OpenGL-devel}
361 %{?with_vulkan:Requires: Vulkan-Loader-devel >= 1.1.97}
362 Requires: SDL2-devel >= 2.0.1
363 Requires: alsa-lib-devel
364 Requires: aom-devel >= 1.0.0
365 %{?with_aribb24:Requires: aribb24-devel}
366 %{?with_avs2:Requires: davs2-devel >= 1.6}
367 Requires: bzip2-devel
368 Requires: celt-devel >= 0.11.0
369 %{?with_codec2:Requires: codec2-devel}
370 %{?with_dav1d:Requires: dav1d-devel >= 0.4.0}
371 %{?with_fdk_aac:Requires: fdk-aac-devel}
372 %{?with_flite:Requires: flite-devel >= 1.4}
373 Requires: fontconfig-devel
374 Requires: freetype-devel
375 %{?with_fribidi:Requires: fribidi-devel}
376 %{?with_gme:Requires: game-music-emu-devel}
377 %{?with_glslang:Requires: glslang-devel}
378 Requires: gnutls-devel
379 Requires: jack-audio-connection-kit-devel
380 %{?with_kvazaar:Requires: kvazaar-devel >= 0.8.1}
381 Requires: lame-libs-devel >= 3.98.3
382 %{?with_lensfun:Requires: lensfun-devel}
383 Requires: libass-devel
384 %{?with_iec61883:Requires: libavc1394-devel}
385 Requires: libbluray-devel
386 %{?with_bs2b:Requires: libbs2b-devel}
387 %{?with_caca:Requires: libcaca-devel}
388 Requires: libcdio-paranoia-devel >= 0.90-2
389 %{?with_chromaprint:Requires: libchromaprint-devel}
390 %{?with_crystalhd:Requires: libcrystalhd-devel}
391 %{?with_dc1394:Requires: libdc1394-devel >= 2}
392 %{?with_libdrm:Requires: libdrm-devel}
393 %{?with_gsm:Requires: libgsm-devel}
394 %{?with_iec61883:Requires: libiec61883-devel}
395 %{?with_libklvanc:Requires: libklvanc-devel}
396 %{?with_modplug:Requires: libmodplug-devel}
397 %{?with_libmysofa:Requires: libmysofa-devel >= 0.7}
398 %{?with_openmpt:Requires: libopenmpt-devel >= 0.4.5}
399 %if %{with dc1394} || %{with iec61883}
400 Requires: libraw1394-devel >= 2
402 %{?with_librsvg:Requires: librsvg-devel >= 2}
403 Requires: librtmp-devel
404 %{?with_smb:Requires: libsmbclient-devel}
405 %{?with_ssh:Requires: libssh-devel}
406 Requires: libstdc++-devel
407 %{?with_theora:Requires: libtheora-devel >= 1.0-0.beta3}
408 Requires: libv4l-devel
409 %{?with_va:Requires: libva-devel >= 1.0.3}
410 %{?with_va:Requires: libva-drm-devel >= 1.0.3}
411 %{?with_va:Requires: libva-x11-devel >= 1.0.3}
412 Requires: libvdpau-devel >= 1.3
413 Requires: libvorbis-devel
414 %{?with_vpx:Requires: libvpx-devel >= 1.4.0}
415 %{?with_webp:Requires: libwebp-devel >= 0.4.0}
416 %{?with_x264:Requires: libx264-devel >= 0.1.3-1.20110625_2245}
417 %{?with_x265:Requires: libx265-devel >= 1.9}
418 # libxcb xcb-shm xcb-xfixes xcb-shape
419 Requires: libxcb-devel >= 1.4
420 %{?with_libxml2:Requires: libxml2-devel >= 2}
421 %{?with_lv2:Requires: lilv-devel}
422 %{?with_mfx:Requires: mfx_dispatch-devel >= 1.19}
423 %{?with_amr:Requires: opencore-amr-devel}
424 %{?with_opencv:Requires: opencv-devel >= 2}
425 %{?with_openh264:Requires: openh264-devel >= 1.3}
426 Requires: openjpeg2-devel >= 2.1
428 %{?with_pulseaudio:Requires: pulseaudio-devel}
429 %{?with_rabbitmq:Requires: rabbitmq-c-devel >= 0.7.1}
430 %{?with_rkmpp:Requires: rockchip-mpp-devel >= 1.3.7}
431 %{?with_rubberband:Requires: rubberband-devel >= 1.8.1}
432 %{?with_shine:Requires: shine-devel >= 3.0.0}
433 %{?with_snappy:Requires: snappy-devel}
434 %{?with_soxr:Requires: soxr-devel}
435 Requires: speex-devel >= 1:1.2-rc1
436 %{?with_glslang:Requires: spirv-tools-devel}
437 %{?with_srt:Requires: srt-devel >= 1.3}
438 %{?with_tesseract:Requires: tesseract-devel}
439 Requires: twolame-devel >= 0.3.10
440 %{?with_vapoursynth:Requires: vapoursynth-devel >= 42}
441 %{?with_vidstab:Requires: vid.stab-devel >= 0.98}
442 %{?with_voamrwbenc:Requires: vo-amrwbenc-devel}
443 %{?with_vmaf:Requires: vmaf-devel >= 1.3.9}
444 %{?with_wavpack:Requires: wavpack-devel}
445 %{?with_ilbc:Requires: webrtc-libilbc-devel}
446 %{?with_avs:Requires: xavs-devel}
447 %{?with_avs2:Requires: xavs2-devel >= 1.3}
448 Requires: xorg-lib-libX11-devel
449 Requires: xorg-lib-libXext-devel
450 Requires: xorg-lib-libXv-devel
451 %{?with_xvid:Requires: xvid-devel >= 1:1.1.0}
453 %{?with_zmq:Requires: zeromq-devel >= 4.2.1}
454 %{?with_zimg:Requires: zimg-devel >= 2.7.0}
456 %{?with_zvbi:Requires: zvbi-devel >= 0.2.28}
457 Obsoletes: libpostproc-devel
462 %description devel -l pl.UTF-8
463 Pliki nagłówkowe ffmpeg.
466 Summary: ffmpeg static libraries
467 Summary(pl.UTF-8): Statyczne biblioteki ffmpeg
468 Group: Development/Libraries
469 Requires: %{name}-devel = %{version}-%{release}
472 ffmpeg static libraries (libavcodec and libavformat).
474 %description static -l pl.UTF-8
475 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
478 Summary: FFplay - SDL-based media player
479 Summary(pl.UTF-8): FFplay - odtwarzacz mediów oparty na SDL
480 Group: Applications/Multimedia
481 Requires: %{name}-libs = %{version}-%{release}
484 FFplay is a very simple and portable media player using the FFmpeg
485 libraries and the SDL library. It is mostly used as a test bench for
486 the various APIs of FFmpeg.
488 %description ffplay -l pl.UTF-8
489 FFplay to bardzo prosty i przenośny odtwarzacz mediów używający
490 bibliotek FFmpeg oraz biblioteki SDL. Jest używany głównie do
491 testowania różnych API FFmpeg.
494 Summary: FFmpeg documentation in HTML format
495 Summary(pl.UTF-8): Dokumentacja pakietu FFmpeg w formacie HTML
497 %if "%{_rpmversion}" >= "5"
502 FFmpeg documentation in HTML format.
504 %description doc -l pl.UTF-8
505 Dokumentacja pakietu FFmpeg w formacie HTML.
512 # package the grep result for mplayer, the result formatted as ./mplayer/configure
513 cat <<EOF > ffmpeg-avconfig
515 libavdecoders_all="$(sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
516 libavencoders_all="$(sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
517 libavparsers_all="$(sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
518 libavbsfs_all="$(sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
519 libavdemuxers_all="$(sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
520 libavmuxers_all="$(sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
521 libavprotocols_all="$(sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
522 libavhwaccels_all="$(sed -n 's/^[^#]*HWACCEL.*(.*, *\(.*\)).*/\1_hwaccel/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
523 libavfilters_all="$(sed -n 's/^[^#]*FILTER.*(.*, *\(.*\),.*).*/\1_filter/p' libavfilter/allfilters.c | tr '[a-z]' '[A-Z]')"
525 cat <<'EOF' >> ffmpeg-avconfig
529 echo $libavdecoders_all
532 echo $libavencoders_all
535 echo $libavparsers_all
541 echo $libavdemuxers_all
544 echo $libavmuxers_all
547 echo $libavprotocols_all
550 echo $libavhwaccels_all
553 echo $libavfilters_all
577 # - it's not autoconf configure
578 # - --disable-debug, --disable-optimizations, tune=generic causes not to override our optflags
580 --arch=%{_target_base_arch} \
581 --prefix=%{_prefix} \
582 --libdir=%{_libdir} \
583 --shlibdir=%{_libdir} \
584 --mandir=%{_mandir} \
585 --extra-cflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcflags}%{?with_decklink: -I/usr/include/decklink}" \
586 --extra-ldflags="%{rpmcflags} %{rpmldflags}" \
589 --disable-optimizations \
590 --disable-stripping \
591 %{!?with_doc:--disable-doc} \
593 --enable-avresample \
594 %{?with_chromaprint:--enable-chromaprint} \
595 %{?with_cudasdk:--enable-cuda-nvcc} \
596 %{?with_decklink:--enable-decklink} \
597 %{!?with_ffnvcodec:--disable-ffnvcodec} \
601 %{?with_frei0r:--enable-frei0r} \
602 %{?with_ladspa:--enable-ladspa} \
604 %{?with_aribb24:--enable-libaribb24} \
607 %{?with_bs2b:--enable-libbs2b} \
608 %{?with_caca:--enable-libcaca} \
611 %{?with_codec2:--enable-libcodec2} \
612 %{?with_dav1d:--enable-libdav1d} \
613 %{?with_avs2:--enable-libdavs2} \
614 %{?with_dc1394:--enable-libdc1394} \
615 %{?with_libdrm:--enable-libdrm} \
616 %{?with_flite:--enable-libflite} \
617 --enable-libfontconfig \
618 --enable-libfreetype \
619 %{?with_fribidi:--enable-libfribidi} \
620 %{?with_glslang:--enable-libglslang} \
621 %{?with_gme:--enable-libgme} \
622 %{?with_gsm:--enable-libgsm} \
623 %{?with_iec61883:--enable-libiec61883} \
624 %{?with_ilbc:--enable-libilbc} \
626 %{?with_kvazaar:--enable-libkvazaar} \
627 %{?with_libklvanc:--enable-libklvanc} \
628 %{?with_lensfun:--enable-liblensfun} \
629 %{?with_mfx:--enable-libmfx} \
630 %{?with_modplug:--enable-libmodplug} \
631 --enable-libmp3lame \
632 %{?with_libmysofa:--enable-libmysofa} \
633 %{?with_amr:--enable-libopencore-amrnb} \
634 %{?with_amr:--enable-libopencore-amrwb} \
635 %{?with_opencv:--enable-libopencv} \
636 %{?with_openh264:--enable-libopenh264} \
637 --enable-libopenjpeg \
638 %{?with_openmpt:--enable-libopenmpt} \
640 %{?with_pulseaudio:--enable-libpulse} \
641 %{?with_rabbitmq:--enable-librabbitmq} \
642 %{?with_librsvg:--enable-librsvg} \
644 %{?with_rubberband:--enable-librubberband} \
645 %{?with_shine:--enable-libshine} \
646 %{?with_smb:--enable-libsmbclient} \
647 %{?with_snappy:--enable-libsnappy} \
648 %{?with_soxr:--enable-libsoxr} \
650 %{?with_srt:--enable-libsrt} \
651 %{?with_ssh:--enable-libssh} \
652 %{?with_tesseract:--enable-libtesseract} \
653 %{?with_theora:--enable-libtheora} \
654 --enable-libtwolame \
656 %{?with_vidstab:--enable-libvidstab} \
657 %{?with_vmaf:--enable-libvmaf} \
658 %{?with_voamrwbenc:--enable-libvo-amrwbenc} \
660 %{?with_vpx:--enable-libvpx} \
661 %{?with_wavpack:--enable-libwavpack} \
662 %{?with_webp:--enable-libwebp} \
663 %{?with_x264:--enable-libx264} \
664 %{?with_x265:--enable-libx265} \
665 %{?with_avs:--enable-libxavs} \
666 %{?with_avs2:--enable-libxavs2} \
668 %{?with_libxml2:--enable-libxml2} \
669 %{?with_xvid:--enable-libxvid} \
670 %{?with_zimg:--enable-libzimg} \
671 %{?with_zmq:--enable-libzmq} \
672 %{?with_zvbi:--enable-libzvbi} \
673 %{?with_lv2:--enable-lv2} \
674 %{?with_omx:--enable-omx} \
675 %{?with_openal:--enable-openal} \
676 %{?with_opencl:--enable-opencl} \
677 %{?with_opengl:--enable-opengl} \
678 %{?with_pocketsphinx:--enable-pocketsphinx} \
681 %{?with_rkmpp:--enable-rkmpp} \
684 %{!?with_va:--disable-vaapi} \
685 %{?with_vapoursynth:--enable-vapoursynth} \
686 %{?with_vulkan:--enable-vulkan} \
687 %ifnarch %{ix86} %{x8664}
698 %{?with_fdk_aac:--enable-libfdk-aac} \
699 %{?with_npp:--enable-libnpp} \
701 --enable-runtime-cpudetect
706 # CC_O to add -c to commandline. makefile should be patched
707 %{__make} tools/qt-faststart V=1 CC_O='-c -o $@'
709 %{?with_tests:%{__make} check V=1}
712 rm -rf $RPM_BUILD_ROOT
713 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
714 $RPM_BUILD_ROOT%{_includedir}/ffmpeg
716 %{__make} install install-headers \
717 DESTDIR=$RPM_BUILD_ROOT \
720 # install nonstandard, non-public headers manually
721 cp -a config.h $RPM_BUILD_ROOT%{_includedir}/ffmpeg
722 for a in libavutil/*/{asm,bswap}.h; do
723 install -Dp $a $RPM_BUILD_ROOT%{_includedir}/$a
725 cp -a libavformat/riff.h $RPM_BUILD_ROOT%{_includedir}/libavformat
727 install -p tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
729 # install as ffmpeg-avconfig to avoid with possible programs looking for
730 # ffmpeg-config and expecting --libs output from it which is not implemented
731 # simple to do (by querying pkgconfig), but why?
732 install -p ffmpeg-avconfig $RPM_BUILD_ROOT%{_bindir}/ffmpeg-avconfig
734 # packaged as %doc in -doc
736 %{__rm} $RPM_BUILD_ROOT%{_docdir}/ffmpeg/*.html
739 install -d $RPM_BUILD_ROOT%{_examplesdir}
740 %{__mv} $RPM_BUILD_ROOT%{_datadir}/ffmpeg/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
743 rm -rf $RPM_BUILD_ROOT
745 %post libs -p /sbin/ldconfig
746 %postun libs -p /sbin/ldconfig
749 %defattr(644,root,root,755)
750 %doc CREDITS LICENSE.md MAINTAINERS README.md RELEASE_NOTES doc/APIchanges
751 %attr(755,root,root) %{_bindir}/ffmpeg
752 %attr(755,root,root) %{_bindir}/ffprobe
753 %attr(755,root,root) %{_bindir}/qt-faststart
754 %dir %{_datadir}/ffmpeg
755 %{_datadir}/ffmpeg/*.ffpreset
756 %{_datadir}/ffmpeg/ffprobe.xsd
758 %{_mandir}/man1/ffmpeg.1*
759 %{_mandir}/man1/ffmpeg-all.1*
760 %{_mandir}/man1/ffmpeg-bitstream-filters.1*
761 %{_mandir}/man1/ffmpeg-codecs.1*
762 %{_mandir}/man1/ffmpeg-devices.1*
763 %{_mandir}/man1/ffmpeg-filters.1*
764 %{_mandir}/man1/ffmpeg-formats.1*
765 %{_mandir}/man1/ffmpeg-protocols.1*
766 %{_mandir}/man1/ffmpeg-resampler.1*
767 %{_mandir}/man1/ffmpeg-scaler.1*
768 %{_mandir}/man1/ffmpeg-utils.1*
769 %{_mandir}/man1/ffprobe.1*
770 %{_mandir}/man1/ffprobe-all.1*
774 %defattr(644,root,root,755)
775 %attr(755,root,root) %{_libdir}/libavcodec.so.*.*.*
776 %attr(755,root,root) %ghost %{_libdir}/libavcodec.so.58
777 %attr(755,root,root) %{_libdir}/libavdevice.so.*.*.*
778 %attr(755,root,root) %ghost %{_libdir}/libavdevice.so.58
779 %attr(755,root,root) %{_libdir}/libavfilter.so.*.*.*
780 %attr(755,root,root) %ghost %{_libdir}/libavfilter.so.7
781 %attr(755,root,root) %{_libdir}/libavformat.so.*.*.*
782 %attr(755,root,root) %ghost %{_libdir}/libavformat.so.58
783 %attr(755,root,root) %{_libdir}/libavresample.so.*.*.*
784 %attr(755,root,root) %ghost %{_libdir}/libavresample.so.4
785 %attr(755,root,root) %{_libdir}/libavutil.so.*.*.*
786 %attr(755,root,root) %ghost %{_libdir}/libavutil.so.56
787 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
788 %attr(755,root,root) %ghost %{_libdir}/libpostproc.so.55
789 %attr(755,root,root) %{_libdir}/libswresample.so.*.*.*
790 %attr(755,root,root) %ghost %{_libdir}/libswresample.so.3
791 %attr(755,root,root) %{_libdir}/libswscale.so.*.*.*
792 %attr(755,root,root) %ghost %{_libdir}/libswscale.so.5
795 %defattr(644,root,root,755)
796 %doc doc/optimization.txt
797 %attr(755,root,root) %{_bindir}/ffmpeg-avconfig
798 %attr(755,root,root) %{_libdir}/libavcodec.so
799 %attr(755,root,root) %{_libdir}/libavdevice.so
800 %attr(755,root,root) %{_libdir}/libavfilter.so
801 %attr(755,root,root) %{_libdir}/libavformat.so
802 %attr(755,root,root) %{_libdir}/libavresample.so
803 %attr(755,root,root) %{_libdir}/libavutil.so
804 %attr(755,root,root) %{_libdir}/libpostproc.so
805 %attr(755,root,root) %{_libdir}/libswresample.so
806 %attr(755,root,root) %{_libdir}/libswscale.so
807 %{_includedir}/ffmpeg
808 %{_includedir}/libavcodec
809 %{_includedir}/libavdevice
810 %{_includedir}/libavfilter
811 %{_includedir}/libavformat
812 %{_includedir}/libavresample
813 %{_includedir}/libavutil
814 %{_includedir}/libpostproc
815 %{_includedir}/libswresample
816 %{_includedir}/libswscale
817 %{_pkgconfigdir}/libavcodec.pc
818 %{_pkgconfigdir}/libavdevice.pc
819 %{_pkgconfigdir}/libavfilter.pc
820 %{_pkgconfigdir}/libavformat.pc
821 %{_pkgconfigdir}/libavresample.pc
822 %{_pkgconfigdir}/libavutil.pc
823 %{_pkgconfigdir}/libpostproc.pc
824 %{_pkgconfigdir}/libswresample.pc
825 %{_pkgconfigdir}/libswscale.pc
827 %{_mandir}/man3/libavcodec.3*
828 %{_mandir}/man3/libavdevice.3*
829 %{_mandir}/man3/libavfilter.3*
830 %{_mandir}/man3/libavformat.3*
831 %{_mandir}/man3/libavutil.3*
832 %{_mandir}/man3/libswresample.3*
833 %{_mandir}/man3/libswscale.3*
835 %{_examplesdir}/%{name}-%{version}
838 %defattr(644,root,root,755)
839 %{_libdir}/libavcodec.a
840 %{_libdir}/libavdevice.a
841 %{_libdir}/libavfilter.a
842 %{_libdir}/libavformat.a
843 %{_libdir}/libavresample.a
844 %{_libdir}/libavutil.a
845 %{_libdir}/libpostproc.a
846 %{_libdir}/libswresample.a
847 %{_libdir}/libswscale.a
850 %defattr(644,root,root,755)
851 %attr(755,root,root) %{_bindir}/ffplay
853 %{_mandir}/man1/ffplay.1*
854 %{_mandir}/man1/ffplay-all.1*
859 %defattr(644,root,root,755)