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 avresample # Don' build deprecated libavresample library
20 %bcond_without avs # AVS encoding via xavs
21 %bcond_without avs2 # AVS2 de/encoding via libdavs2/libxavs2
22 %bcond_without bs2b # BS2B audio filter support
23 %bcond_without caca # textual display using libcaca
24 %bcond_without codec2 # codec2 support using libcodec2
25 %bcond_without chromaprint # audio fingerprinting with chromaprint
26 %bcond_with cudasdk # NVIDIA CUDA code using nvcc from CUDA SDK [BR: cuda.h, non-free]
27 %bcond_with dav1d # AV1 decoding via libdav1d
28 %bcond_without dc1394 # IIDC-1394 grabbing using libdc1394
29 %bcond_with decklink # Blackmagic DeckLink I/O support (requires nonfree)
30 %bcond_with fdk_aac # AAC de/encoding via libfdk_aac (requires nonfree)
31 %bcond_without ffnvcodec # NVIDIA codecs support using ffnvcodec headers (covered: cuda cuvid nvdec nvenc)
32 %bcond_without flite # flite voice synthesis support
33 %bcond_without frei0r # frei0r video filtering
34 %bcond_without fribidi # fribidi support
35 %bcond_without glslang # GLSL->SPIRV compilation via libglslang
36 %bcond_without gme # Game Music Emu support
37 %bcond_without gsm # GSM de/encoding via libgsm
38 %bcond_without iec61883 # ec61883 via libiec61883
39 %bcond_without ilbc # iLBC de/encoding via WebRTC libilbc
40 %bcond_without kvazaar # Kvazaar HEVC encoder support
41 %bcond_without ladspa # LADSPA audio filtering
42 %bcond_with lensfun # lensfun lens correction
43 %bcond_with libdrm # Linux Direct Rendering Manager code
44 %bcond_with libklvanc # Kernel Labs VANC processing (in decklink driver)
45 %bcond_without libmysofa # sofalizer filter
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 shine # shine fixed-point MP3 encoder
67 %bcond_with smb # SMB support via libsmbclient
68 %bcond_without snappy # Snappy compression support (needed for hap encoding)
69 %bcond_without soxr # SoX Resampler support
70 %bcond_without srt # Haivision SRT protocol support
71 %bcond_without ssh # SFTP protocol support via libssh
72 %bcond_with svtav1 # AV1 encoding via SVT-AV1
73 %bcond_with tesseract # OCR filter based on Tesseract
74 %bcond_without theora # Theora encoding via libtheora
75 %bcond_with uavs3d # AVS3 decoding via libuavs3d (TODO: enable when 1.1.41 released)
76 %bcond_with v4l2_drmprime # Zero-copy v4l2 decoding
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} || %{with v4l2_drmprime}
100 %define with_libdrm 1
103 %ifnarch %{ix86} %{x8664}
104 %undefine with_ffnvcodec
106 %ifnarch %{ix86} %{x8664} aarch64
109 %ifnarch %{ix86} %{x8664} %{arm}
115 %ifarch i686 pentium4 athlon %{x8664} x32
116 %define with_crystalhd 1
118 Summary: FFmpeg - a very fast video and audio converter
119 Summary(pl.UTF-8): FFmpeg - szybki konwerter audio/wideo
123 # LGPL or GPL, chosen at configure time (GPL version is more featured)
124 # GPL: frei0r libcdio libdavs2 rubberband vidstab x264 x265 xavs xavs2 xvid
125 # v3 (allows *GPLv3 or Apache-licensed libs): gmp lensfun opencore-amr vmaf vo-*enc rkmpp
127 License: GPL v3+ with LGPL v3+ parts
128 Group: Applications/Multimedia
129 Source0: https://ffmpeg.org/releases/%{name}-%{version}.tar.xz
130 # Source0-md5: cce7aaaed2b4c202999a8d79a69f3ecc
131 Patch0: %{name}-omx-libnames.patch
132 Patch1: %{name}-atadenoise.patch
133 Patch2: opencv4.patch
134 Patch3: v4l2-request-hwdec.patch
135 Patch4: %{name}-glslang.patch
136 Patch5: v4l2-drmprime.patch
137 URL: http://www.ffmpeg.org/
138 %{?with_decklink:BuildRequires: Blackmagic_DeckLink_SDK >= 10.10}
139 %{?with_openal:BuildRequires: OpenAL-devel >= 1.1}
140 %{?with_opencl:BuildRequires: OpenCL-devel >= 1.2}
141 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
142 # libomxil-bellagio-devel or limoi-core-devel (just headers, library is dlopened at runtime)
143 %{?with_omx:BuildRequires: OpenMAX-IL-devel}
144 BuildRequires: SDL2-devel >= 2.0.1
145 BuildRequires: SDL2-devel < 3.0.0
146 %{?with_vulkan:BuildRequires: Vulkan-Loader-devel >= 1.1.97}
147 BuildRequires: alsa-lib-devel
148 %{?with_aom:BuildRequires: aom-devel >= 1.0.0}
149 %{?with_aribb24:BuildRequires: aribb24-devel}
150 BuildRequires: bzip2-devel
151 BuildRequires: celt-devel >= 0.11.0
152 %{?with_codec2:BuildRequires: codec2-devel}
153 %{?with_dav1d:BuildRequires: dav1d-devel >= 0.5.0}
154 %{?with_avs2:BuildRequires: davs2-devel >= 1.6}
155 %{?with_fdk_aac:BuildRequires: fdk-aac-devel}
156 %{?with_flite:BuildRequires: flite-devel >= 1.4}
157 BuildRequires: fontconfig-devel
158 BuildRequires: freetype-devel
159 %{?with_frei0r:BuildRequires: frei0r-devel}
160 %{?with_fribidi:BuildRequires: fribidi-devel}
161 %{?with_gme:BuildRequires: game-music-emu-devel}
163 # require version with altivec support fixed
164 BuildRequires: gcc >= 5:3.3.2-3
166 %{?with_glslang:BuildRequires: glslang-devel >= 12}
167 BuildRequires: gmp-devel
168 BuildRequires: gnutls-devel
169 BuildRequires: jack-audio-connection-kit-devel
170 %{?with_kvazaar:BuildRequires: kvazaar-devel >= 0.8.1}
171 %{?with_ladspa:BuildRequires: ladspa-devel}
172 BuildRequires: lame-libs-devel >= 3.98.3
173 %{?with_lensfun:BuildRequires: lensfun-devel >= 0.3.95}
174 BuildRequires: libass-devel
176 BuildRequires: libatomic-devel
178 %{?with_iec61883:BuildRequires: libavc1394-devel}
179 %{?with_bs2b:BuildRequires: libbs2b-devel}
180 BuildRequires: libbluray-devel
181 %{?with_caca:BuildRequires: libcaca-devel}
182 BuildRequires: libcdio-paranoia-devel >= 0.90-2
183 %{?with_chromaprint:BuildRequires: libchromaprint-devel}
184 %{?with_crystalhd:BuildRequires: libcrystalhd-devel}
185 %{?with_dc1394:BuildRequires: libdc1394-devel >= 2}
186 %{?with_libdrm:BuildRequires: libdrm-devel}
187 %{?with_gsm:BuildRequires: libgsm-devel}
188 %{?with_iec61883:BuildRequires: libiec61883-devel}
189 %{?with_libklvanc:BuildRequires: libklvanc-devel}
190 %{?with_modplug:BuildRequires: libmodplug-devel}
191 %{?with_libmysofa:BuildRequires: libmysofa-devel >= 0.7}
192 %{?with_openmpt:BuildRequires: libopenmpt-devel >= 0.4.5}
193 %if %{with dc1394} || %{with iec61883}
194 BuildRequires: libraw1394-devel >= 2
196 %{?with_librist:BuildRequires: librist-devel >= 0.2}
197 %{?with_librsvg:BuildRequires: librsvg-devel >= 2}
198 BuildRequires: librtmp-devel
199 %{?with_ssh:BuildRequires: libssh-devel}
200 %{?with_smb:BuildRequires: libsmbclient-devel}
201 %{?with_theora:BuildRequires: libtheora-devel >= 1.0-0.beta3}
202 BuildRequires: libtool >= 2:1.4d-3
203 BuildRequires: libv4l-devel
205 BuildRequires: libva-devel >= 1.0.3
206 BuildRequires: libva-drm-devel >= 1.0.3
207 BuildRequires: libva-x11-devel >= 1.0.3
209 BuildRequires: libvdpau-devel >= 1.3
210 BuildRequires: libvorbis-devel
211 %{?with_vpx:BuildRequires: libvpx-devel >= 1.4.0}
212 %{?with_webp:BuildRequires: libwebp-devel >= 0.4.0}
214 %{?with_x264:BuildRequires: libx264-devel >= 0.1.3-1.20111212_2245}
216 %{?with_x265:BuildRequires: libx265-devel >= 1.9}
217 # libxcb xcb-shm xcb-xfixes xcb-shape
218 BuildRequires: libxcb-devel >= 1.4
219 %{?with_libxml2:BuildRequires: libxml2-devel >= 2}
220 %{?with_lv2:BuildRequires: lilv-devel}
221 %{?with_v4l2_request:BuildRequires: linux-libc-headers >= 7:6.0.0}
222 %{?with_lv2:BuildRequires: lv2-devel}
223 %{?with_mfx:BuildRequires: mfx_dispatch-devel >= 1.19}
229 %{?with_ffnvcodec:BuildRequires: nv-codec-headers >= 9.1.23.1}
231 %{?with_amr:BuildRequires: opencore-amr-devel}
232 %{?with_opencv:BuildRequires: opencv-devel >= 2}
233 %{?with_openh264:BuildRequires: openh264-devel >= 1.3}
234 BuildRequires: openjpeg2-devel >= 2.1
235 BuildRequires: opus-devel
236 BuildRequires: perl-Encode
237 BuildRequires: perl-tools-pod
238 %{?with_pocketsphinx:BuildRequires: pocketsphinx-devel > 0.8}
239 BuildRequires: pkgconfig
240 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
241 %{?with_rabbitmq:BuildRequires: rabbitmq-c-devel >= 0.7.1}
242 %{?with_rav1e:BuildRequires: rav1e-devel >= 0.4.0}
243 %{?with_rkmpp:BuildRequires: rockchip-mpp-devel >= 1.3.7}
244 BuildRequires: rpm-build >= 4.6
245 BuildRequires: rpmbuild(macros) >= 2.007
246 %{?with_rubberband:BuildRequires: rubberband-devel >= 1.8.1}
247 %{?with_shine:BuildRequires: shine-devel >= 3.0.0}
248 %{?with_snappy:BuildRequires: snappy-devel}
249 %{?with_soxr:BuildRequires: soxr-devel}
250 BuildRequires: speex-devel >= 1:1.2-rc1
251 %{?with_glslang:BuildRequires: spirv-tools-devel}
252 %{?with_srt:BuildRequires: srt-devel >= 1.3}
253 %{?with_svtav1:BuildRequires: svt-av1-devel >= 0.8.4}
254 BuildRequires: tar >= 1:1.22
255 %{?with_tesseract:BuildRequires: tesseract-devel}
256 %{?with_doc:BuildRequires: tetex}
257 %{?with_doc:BuildRequires: texi2html}
258 %{?with_doc:BuildRequires: texinfo}
259 BuildRequires: twolame-devel >= 0.3.10
260 %{?with_uavs3d:BuildRequires: uavs3d-devel >= 1.1.41}
261 %{?with_v4l2_request:BuildRequires: udev-devel}
262 %{?with_vapoursynth:BuildRequires: vapoursynth-devel >= 42}
263 %{?with_vidstab:BuildRequires: vid.stab-devel >= 0.98}
264 %{?with_vmaf:BuildRequires: vmaf-devel >= 1.5.2}
265 %{?with_voamrwbenc:BuildRequires: vo-amrwbenc-devel}
266 %{?with_ilbc:BuildRequires: webrtc-libilbc-devel}
267 %{?with_avs:BuildRequires: xavs-devel}
268 %{?with_avs2:BuildRequires: xavs2-devel >= 1.3}
269 BuildRequires: xorg-lib-libX11-devel
270 BuildRequires: xorg-lib-libXext-devel
271 BuildRequires: xorg-lib-libXv-devel
272 %{?with_xvid:BuildRequires: xvid-devel >= 1:1.1.0}
274 BuildRequires: xz-devel
275 %{?with_zmq:BuildRequires: zeromq-devel >= 4.2.1}
276 %{?with_zimg:BuildRequires: zimg-devel >= 2.7.0}
277 BuildRequires: zlib-devel
278 %{?with_zvbi:BuildRequires: zvbi-devel >= 0.2.28}
279 # overflows maximum hash table size
280 BuildConflicts: pdksh < 5.2.14-57
281 Requires: %{name}-libs = %{version}-%{release}
283 Suggests: fonts-TTF-Roboto
284 Obsoletes: libpostproc < 2:1.0-1
285 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
287 %define specflags -fno-strict-aliasing -fPIC
289 # -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one)
290 %define specflags_ia32 -fomit-frame-pointer
291 # -mmmx is needed to enable <mmintrin.h> code.
292 %define specflags_i586 -mmmx
293 %define specflags_i686 -mmmx
296 FFmpeg is a complete solution to record, convert and stream audio and
297 video. It is a command line tool to convert one video file format to
298 another. It also supports grabbing and encoding in real time from a TV
301 %description -l pl.UTF-8
302 FFmpeg to kompletne rozwiÄ…zanie nagrywania, konwersji i transmisji
303 strumieni dźwięku i obrazu. Jest to działające z linii poleceń
304 narzędzie do konwersji obrazu z jednego formatu do innego. Obsługuje
305 także przechwytywanie i kodowanie w czasie rzeczywistym z karty
309 Summary: ffmpeg libraries
310 Summary(pl.UTF-8): Biblioteki ffmpeg
312 Requires: SDL2 >= 2.0.1
313 %{?with_vulkan:Requires: Vulkan-Loader >= 1.1.97}
314 %{?with_aom:Requires: aom >= 1.0.0}
315 Requires: celt >= 0.11.0
316 %{?with_dav1d:Requires: dav1d >= 0.5.0}
317 %{?with_avs2:Requires: davs2 >= 1.6}
318 %{?with_flite:Requires: flite >= 1.4}
319 %if "%(rpm -q --qf '%{V}' gnutls-devel)" >= "3.0.20"
320 # uses gnutls_certificate_set_x509_system_trust if >= 3.0.20
321 Requires: gnutls-libs >= 3.0.20
323 %{?with_kvazaar:Requires: kvazaar-libs >= 0.8.1}
324 %{?with_libmysofa:Requires: libmysofa >= 0.7}
325 %{?with_openmpt:Requires: libopenmpt >= 0.4.5}
326 %{?with_librist:Requires: librist >= 0.2}
327 %{?with_theora:Requires: libtheora >= 1.0-0.beta3}
329 Requires: libva >= 1.0.3
330 Requires: libva-drm >= 1.0.3
331 Requires: libva-x11 >= 1.0.3
333 Requires: libvdpau >= 1.3
334 %{?with_vpx:Requires: libvpx >= 1.4.0}
335 %{?with_webp:Requires: libwebp >= 0.4.0}
336 %{?with_x264:Requires: libx264 >= 0.1.3-1.20111212_2245}
337 %{?with_x265:Requires: libx265 >= 1.9}
338 Requires: libxcb >= 1.4
339 Requires: lame-libs >= 3.98.3
340 %{?with_mfx:Requires: mfx_dispatch >= 1.19}
341 %{?with_openh264:Requires: openh264 >= 1.3}
342 Requires: openjpeg2 >= 2.1
343 %{?with_rabbitmq:Requires: rabbitmq-c >= 0.7.1}
344 %{?with_rav1e:Requires: rav1e-libs >= 0.4.0}
345 %{?with_rkmpp:Requires: rockchip-mpp >= 1.3.7}
346 %{?with_rubberband:Requires: rubberband-libs >= 1.8.1}
347 %{?with_shine:Requires: shine >= 3.0.0}
348 Requires: speex >= 1:1.2-rc1
349 %{?with_srt:Requires: srt >= 1.3}
350 %{?with_svtav1:Requires: svt-av1 >= 0.8.4}
351 Requires: twolame-libs >= 0.3.10
352 %{?with_uavs3d:Requires: uavs3d >= 1.1.41}
353 %{?with_vapoursynth:Requires: vapoursynth >= 42}
354 %{?with_vidstab:Requires: vid.stab >= 0.98}
355 %{?with_vmaf:Requires: vmaf-libs >= 1.5.2}
356 %{?with_avs2:Requires: xavs2 >= 1.3}
357 %{?with_xvid:Requires: xvid >= 1:1.1.0}
358 %{?with_zmq:Requires: zeromq >= 4.2.1}
359 %{?with_zimg:Requires: zimg >= 2.7.0}
360 %{?with_zvbi:Requires: zvbi >= 0.2.28}
363 This package contains the ffmpeg shared libraries:
364 - the codec library (libavcodec). It supports most existing encoding
365 formats (MPEG, DivX, MPEG4, AC3, DV...),
366 - demuxer library (libavformat). It supports most existing file
367 formats (AVI, MPEG, OGG, Matroska, ASF...),
368 - video postprocessing library (libpostproc).
370 %description libs -l pl.UTF-8
371 Ten pakiet zawiera biblioteki współdzielone ffmpeg:
372 - bibliotekę kodeków (libavcodec); obsługuje większość istniejących
373 formatów kodowania (MPEG, DivX, MPEG4, AC3, DV...),
374 - bibliotekę demuksera (libavformat); obsługuje większość istniejących
375 formatów plików (AVI, MPEG, OGG, Matroska, ASF...),
376 - bibliotekÄ™ postprocessingu (libpostproc).
379 Summary: ffmpeg header files
380 Summary(pl.UTF-8): Pliki nagłówkowe ffmpeg
381 Group: Development/Libraries
382 Requires: %{name}-libs = %{version}-%{release}
383 # Libs.private from *.pc
384 %{?with_openal:Requires: OpenAL-devel >= 1.1}
385 %{?with_opencl:Requires: OpenCL-devel >= 1.2}
386 %{?with_opengl:Requires: OpenGL-devel}
387 %{?with_vulkan:Requires: Vulkan-Loader-devel >= 1.1.97}
388 Requires: SDL2-devel >= 2.0.1
389 Requires: alsa-lib-devel
390 %{?with_aom:Requires: aom-devel >= 1.0.0}
391 %{?with_aribb24:Requires: aribb24-devel}
392 %{?with_avs2:Requires: davs2-devel >= 1.6}
393 Requires: bzip2-devel
394 Requires: celt-devel >= 0.11.0
395 %{?with_codec2:Requires: codec2-devel}
396 %{?with_dav1d:Requires: dav1d-devel >= 0.5.0}
397 %{?with_fdk_aac:Requires: fdk-aac-devel}
398 %{?with_flite:Requires: flite-devel >= 1.4}
399 Requires: fontconfig-devel
400 Requires: freetype-devel
401 %{?with_fribidi:Requires: fribidi-devel}
402 %{?with_gme:Requires: game-music-emu-devel}
403 %{?with_glslang:Requires: glslang-devel >= 12}
404 Requires: gnutls-devel
405 Requires: jack-audio-connection-kit-devel
406 %{?with_kvazaar:Requires: kvazaar-devel >= 0.8.1}
407 Requires: lame-libs-devel >= 3.98.3
408 %{?with_lensfun:Requires: lensfun-devel >= 0.3.95}
409 Requires: libass-devel
410 %{?with_iec61883:Requires: libavc1394-devel}
411 Requires: libbluray-devel
412 %{?with_bs2b:Requires: libbs2b-devel}
413 %{?with_caca:Requires: libcaca-devel}
414 Requires: libcdio-paranoia-devel >= 0.90-2
415 %{?with_chromaprint:Requires: libchromaprint-devel}
416 %{?with_crystalhd:Requires: libcrystalhd-devel}
417 %{?with_dc1394:Requires: libdc1394-devel >= 2}
418 %{?with_libdrm:Requires: libdrm-devel}
419 %{?with_gsm:Requires: libgsm-devel}
420 %{?with_iec61883:Requires: libiec61883-devel}
421 %{?with_libklvanc:Requires: libklvanc-devel}
422 %{?with_modplug:Requires: libmodplug-devel}
423 %{?with_libmysofa:Requires: libmysofa-devel >= 0.7}
424 %{?with_openmpt:Requires: libopenmpt-devel >= 0.4.5}
425 %if %{with dc1394} || %{with iec61883}
426 Requires: libraw1394-devel >= 2
428 %{?with_librist:Requires: librist-devel >= 0.2}
429 %{?with_librsvg:Requires: librsvg-devel >= 2}
430 Requires: librtmp-devel
431 %{?with_smb:Requires: libsmbclient-devel}
432 %{?with_ssh:Requires: libssh-devel}
433 Requires: libstdc++-devel
434 %{?with_theora:Requires: libtheora-devel >= 1.0-0.beta3}
435 Requires: libv4l-devel
436 %{?with_va:Requires: libva-devel >= 1.0.3}
437 %{?with_va:Requires: libva-drm-devel >= 1.0.3}
438 %{?with_va:Requires: libva-x11-devel >= 1.0.3}
439 Requires: libvdpau-devel >= 1.3
440 Requires: libvorbis-devel
441 %{?with_vpx:Requires: libvpx-devel >= 1.4.0}
442 %{?with_webp:Requires: libwebp-devel >= 0.4.0}
443 %{?with_x264:Requires: libx264-devel >= 0.1.3-1.20110625_2245}
444 %{?with_x265:Requires: libx265-devel >= 1.9}
445 # libxcb xcb-shm xcb-xfixes xcb-shape
446 Requires: libxcb-devel >= 1.4
447 %{?with_libxml2:Requires: libxml2-devel >= 2}
448 %{?with_lv2:Requires: lilv-devel}
449 %{?with_mfx:Requires: mfx_dispatch-devel >= 1.19}
450 %{?with_amr:Requires: opencore-amr-devel}
451 %{?with_opencv:Requires: opencv-devel >= 2}
452 %{?with_openh264:Requires: openh264-devel >= 1.3}
453 Requires: openjpeg2-devel >= 2.1
455 %{?with_pulseaudio:Requires: pulseaudio-devel}
456 %{?with_rabbitmq:Requires: rabbitmq-c-devel >= 0.7.1}
457 %{?with_rav1e:Requires: rav1e-devel >= 0.4.0}
458 %{?with_rkmpp:Requires: rockchip-mpp-devel >= 1.3.7}
459 %{?with_rubberband:Requires: rubberband-devel >= 1.8.1}
460 %{?with_shine:Requires: shine-devel >= 3.0.0}
461 %{?with_snappy:Requires: snappy-devel}
462 %{?with_soxr:Requires: soxr-devel}
463 Requires: speex-devel >= 1:1.2-rc1
464 %{?with_glslang:Requires: spirv-tools-devel}
465 %{?with_srt:Requires: srt-devel >= 1.3}
466 %{?with_svtav1:Requires: svt-av1-devel >= 0.8.4}
467 %{?with_tesseract:Requires: tesseract-devel}
468 Requires: twolame-devel >= 0.3.10
469 %{?with_uavs3d:Requires: uavs3d-devel >= 1.1.41}
470 %{?with_vapoursynth:Requires: vapoursynth-devel >= 42}
471 %{?with_vidstab:Requires: vid.stab-devel >= 0.98}
472 %{?with_voamrwbenc:Requires: vo-amrwbenc-devel}
473 %{?with_vmaf:Requires: vmaf-devel >= 1.5.2}
474 %{?with_ilbc:Requires: webrtc-libilbc-devel}
475 %{?with_avs:Requires: xavs-devel}
476 %{?with_avs2:Requires: xavs2-devel >= 1.3}
477 Requires: xorg-lib-libX11-devel
478 Requires: xorg-lib-libXext-devel
479 Requires: xorg-lib-libXv-devel
480 %{?with_xvid:Requires: xvid-devel >= 1:1.1.0}
482 %{?with_zmq:Requires: zeromq-devel >= 4.2.1}
483 %{?with_zimg:Requires: zimg-devel >= 2.7.0}
485 %{?with_zvbi:Requires: zvbi-devel >= 0.2.28}
486 Obsoletes: libpostproc-devel < 2:1.0-1
491 %description devel -l pl.UTF-8
492 Pliki nagłówkowe ffmpeg.
495 Summary: ffmpeg static libraries
496 Summary(pl.UTF-8): Statyczne biblioteki ffmpeg
497 Group: Development/Libraries
498 Requires: %{name}-devel = %{version}-%{release}
501 ffmpeg static libraries (libavcodec and libavformat).
503 %description static -l pl.UTF-8
504 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
507 Summary: FFplay - SDL-based media player
508 Summary(pl.UTF-8): FFplay - odtwarzacz mediów oparty na SDL
509 Group: Applications/Multimedia
510 Requires: %{name}-libs = %{version}-%{release}
513 FFplay is a very simple and portable media player using the FFmpeg
514 libraries and the SDL library. It is mostly used as a test bench for
515 the various APIs of FFmpeg.
517 %description ffplay -l pl.UTF-8
518 FFplay to bardzo prosty i przenośny odtwarzacz mediów używający
519 bibliotek FFmpeg oraz biblioteki SDL. Jest używany głównie do
520 testowania różnych API FFmpeg.
523 Summary: FFmpeg documentation in HTML format
524 Summary(pl.UTF-8): Dokumentacja pakietu FFmpeg w formacie HTML
529 FFmpeg documentation in HTML format.
531 %description doc -l pl.UTF-8
532 Dokumentacja pakietu FFmpeg w formacie HTML.
539 %if %{with v4l2_request}
543 %if %{with v4l2_drmprime}
547 # package the grep result for mplayer, the result formatted as ./mplayer/configure
548 cat <<EOF > ffmpeg-avconfig
550 libavdecoders_all="$(sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
551 libavencoders_all="$(sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
552 libavparsers_all="$(sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
553 libavbsfs_all="$(sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
554 libavdemuxers_all="$(sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
555 libavmuxers_all="$(sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
556 libavprotocols_all="$(sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')"
557 libavhwaccels_all="$(sed -n 's/^[^#]*HWACCEL.*(.*, *\(.*\)).*/\1_hwaccel/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')"
558 libavfilters_all="$(sed -n 's/^[^#]*FILTER.*(.*, *\(.*\),.*).*/\1_filter/p' libavfilter/allfilters.c | tr '[a-z]' '[A-Z]')"
560 cat <<'EOF' >> ffmpeg-avconfig
564 echo $libavdecoders_all
567 echo $libavencoders_all
570 echo $libavparsers_all
576 echo $libavdemuxers_all
579 echo $libavmuxers_all
582 echo $libavprotocols_all
585 echo $libavhwaccels_all
588 echo $libavfilters_all
612 # - it's not autoconf configure
613 # - --disable-debug, --disable-optimizations, tune=generic causes not to override our optflags
615 --arch=%{_target_base_arch} \
616 --prefix=%{_prefix} \
617 --libdir=%{_libdir} \
618 --shlibdir=%{_libdir} \
619 --mandir=%{_mandir} \
620 --extra-cflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcflags}%{?with_decklink: -I/usr/include/decklink} -I/usr/include/opencv4" \
621 --extra-cxxflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcxxflags}%{?with_decklink: -I/usr/include/decklink} -I/usr/include/opencv4" \
622 --extra-ldflags="%{rpmcflags} %{rpmldflags}" \
625 --disable-optimizations \
626 --disable-stripping \
627 %{!?with_doc:--disable-doc} \
629 %{?with_avresample:--enable-avresample} \
630 %{?with_chromaprint:--enable-chromaprint} \
631 %{?with_cudasdk:--enable-cuda-nvcc} \
632 %{?with_decklink:--enable-decklink} \
633 %{!?with_ffnvcodec:--disable-ffnvcodec} \
637 %{?with_frei0r:--enable-frei0r} \
638 %{?with_ladspa:--enable-ladspa} \
639 %{?with_aom:--enable-libaom} \
640 %{?with_aribb24:--enable-libaribb24} \
643 %{?with_bs2b:--enable-libbs2b} \
644 %{?with_caca:--enable-libcaca} \
647 %{?with_codec2:--enable-libcodec2} \
648 %{?with_dav1d:--enable-libdav1d} \
649 %{?with_avs2:--enable-libdavs2} \
650 %{?with_dc1394:--enable-libdc1394} \
651 %{?with_libdrm:--enable-libdrm} \
652 %{?with_flite:--enable-libflite} \
653 --enable-libfontconfig \
654 --enable-libfreetype \
655 %{?with_fribidi:--enable-libfribidi} \
656 %{?with_glslang:--enable-libglslang} \
657 %{?with_gme:--enable-libgme} \
658 %{?with_gsm:--enable-libgsm} \
659 %{?with_iec61883:--enable-libiec61883} \
660 %{?with_ilbc:--enable-libilbc} \
662 %{?with_kvazaar:--enable-libkvazaar} \
663 %{?with_libklvanc:--enable-libklvanc} \
664 %{?with_lensfun:--enable-liblensfun} \
665 %{?with_mfx:--enable-libmfx} \
666 %{?with_modplug:--enable-libmodplug} \
667 --enable-libmp3lame \
668 %{?with_libmysofa:--enable-libmysofa} \
669 %{?with_amr:--enable-libopencore-amrnb} \
670 %{?with_amr:--enable-libopencore-amrwb} \
671 %{?with_opencv:--enable-libopencv} \
672 %{?with_openh264:--enable-libopenh264} \
673 --enable-libopenjpeg \
674 %{?with_openmpt:--enable-libopenmpt} \
676 %{?with_pulseaudio:--enable-libpulse} \
677 %{?with_rabbitmq:--enable-librabbitmq} \
678 %{?with_rav1e:--enable-librav1e} \
679 %{?with_librist:--enable-librist} \
680 %{?with_librsvg:--enable-librsvg} \
682 %{?with_rubberband:--enable-librubberband} \
683 %{?with_shine:--enable-libshine} \
684 %{?with_smb:--enable-libsmbclient} \
685 %{?with_snappy:--enable-libsnappy} \
686 %{?with_soxr:--enable-libsoxr} \
688 %{?with_srt:--enable-libsrt} \
689 %{?with_ssh:--enable-libssh} \
690 %{?with_svtav1:--enable-libsvtav1} \
691 %{?with_tesseract:--enable-libtesseract} \
692 %{?with_theora:--enable-libtheora} \
693 --enable-libtwolame \
694 %{?with_uavs3d:--enable-libuavs3d} \
696 %{?with_vidstab:--enable-libvidstab} \
697 %{?with_vmaf:--enable-libvmaf} \
698 %{?with_voamrwbenc:--enable-libvo-amrwbenc} \
700 %{?with_vpx:--enable-libvpx} \
701 %{?with_webp:--enable-libwebp} \
702 %{?with_x264:--enable-libx264} \
703 %{?with_x265:--enable-libx265} \
704 %{?with_avs:--enable-libxavs} \
705 %{?with_avs2:--enable-libxavs2} \
707 %{?with_libxml2:--enable-libxml2} \
708 %{?with_xvid:--enable-libxvid} \
709 %{?with_zimg:--enable-libzimg} \
710 %{?with_zmq:--enable-libzmq} \
711 %{?with_zvbi:--enable-libzvbi} \
712 %{?with_lv2:--enable-lv2} \
713 %{?with_omx:--enable-omx} \
714 %{?with_openal:--enable-openal} \
715 %{?with_opencl:--enable-opencl} \
716 %{?with_opengl:--enable-opengl} \
717 %{?with_pocketsphinx:--enable-pocketsphinx} \
720 %{?with_rkmpp:--enable-rkmpp} \
723 %{!?with_va:--disable-vaapi} \
724 %{?with_vapoursynth:--enable-vapoursynth} \
725 %{?with_vulkan:--enable-vulkan} \
726 %if %{with v4l2_request}
728 --enable-v4l2-request \
730 %ifnarch %{ix86} %{x8664}
741 %{?with_fdk_aac:--enable-libfdk-aac} \
742 %{?with_npp:--enable-libnpp} \
744 --enable-runtime-cpudetect
749 # CC_O to add -c to commandline. makefile should be patched
750 %{__make} tools/qt-faststart V=1 CC_O='-c -o $@'
752 %{?with_tests:%{__make} check V=1}
755 rm -rf $RPM_BUILD_ROOT
756 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
757 $RPM_BUILD_ROOT%{_includedir}/ffmpeg
759 %{__make} install install-headers \
760 DESTDIR=$RPM_BUILD_ROOT \
763 # install nonstandard, non-public headers manually
764 cp -a config.h $RPM_BUILD_ROOT%{_includedir}/ffmpeg
765 for a in libavutil/*/{asm,bswap}.h; do
766 install -Dp $a $RPM_BUILD_ROOT%{_includedir}/$a
768 cp -a libavformat/riff.h $RPM_BUILD_ROOT%{_includedir}/libavformat
770 install -p tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
772 # install as ffmpeg-avconfig to avoid with possible programs looking for
773 # ffmpeg-config and expecting --libs output from it which is not implemented
774 # simple to do (by querying pkgconfig), but why?
775 install -p ffmpeg-avconfig $RPM_BUILD_ROOT%{_bindir}/ffmpeg-avconfig
777 # packaged as %doc in -doc
779 %{__rm} $RPM_BUILD_ROOT%{_docdir}/ffmpeg/*.html
782 install -d $RPM_BUILD_ROOT%{_examplesdir}
783 %{__mv} $RPM_BUILD_ROOT%{_datadir}/ffmpeg/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
786 rm -rf $RPM_BUILD_ROOT
788 %post libs -p /sbin/ldconfig
789 %postun libs -p /sbin/ldconfig
792 %defattr(644,root,root,755)
793 %doc CREDITS LICENSE.md MAINTAINERS README.md RELEASE_NOTES doc/APIchanges
794 %attr(755,root,root) %{_bindir}/ffmpeg
795 %attr(755,root,root) %{_bindir}/ffprobe
796 %attr(755,root,root) %{_bindir}/qt-faststart
797 %dir %{_datadir}/ffmpeg
798 %{_datadir}/ffmpeg/*.ffpreset
799 %{_datadir}/ffmpeg/ffprobe.xsd
801 %{_mandir}/man1/ffmpeg.1*
802 %{_mandir}/man1/ffmpeg-all.1*
803 %{_mandir}/man1/ffmpeg-bitstream-filters.1*
804 %{_mandir}/man1/ffmpeg-codecs.1*
805 %{_mandir}/man1/ffmpeg-devices.1*
806 %{_mandir}/man1/ffmpeg-filters.1*
807 %{_mandir}/man1/ffmpeg-formats.1*
808 %{_mandir}/man1/ffmpeg-protocols.1*
809 %{_mandir}/man1/ffmpeg-resampler.1*
810 %{_mandir}/man1/ffmpeg-scaler.1*
811 %{_mandir}/man1/ffmpeg-utils.1*
812 %{_mandir}/man1/ffprobe.1*
813 %{_mandir}/man1/ffprobe-all.1*
817 %defattr(644,root,root,755)
818 %attr(755,root,root) %{_libdir}/libavcodec.so.*.*.*
819 %attr(755,root,root) %ghost %{_libdir}/libavcodec.so.58
820 %attr(755,root,root) %{_libdir}/libavdevice.so.*.*.*
821 %attr(755,root,root) %ghost %{_libdir}/libavdevice.so.58
822 %attr(755,root,root) %{_libdir}/libavfilter.so.*.*.*
823 %attr(755,root,root) %ghost %{_libdir}/libavfilter.so.7
824 %attr(755,root,root) %{_libdir}/libavformat.so.*.*.*
825 %attr(755,root,root) %ghost %{_libdir}/libavformat.so.58
826 %if %{with avresample}
827 %attr(755,root,root) %{_libdir}/libavresample.so.*.*.*
828 %attr(755,root,root) %ghost %{_libdir}/libavresample.so.4
830 %attr(755,root,root) %{_libdir}/libavutil.so.*.*.*
831 %attr(755,root,root) %ghost %{_libdir}/libavutil.so.56
832 %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.*
833 %attr(755,root,root) %ghost %{_libdir}/libpostproc.so.55
834 %attr(755,root,root) %{_libdir}/libswresample.so.*.*.*
835 %attr(755,root,root) %ghost %{_libdir}/libswresample.so.3
836 %attr(755,root,root) %{_libdir}/libswscale.so.*.*.*
837 %attr(755,root,root) %ghost %{_libdir}/libswscale.so.5
840 %defattr(644,root,root,755)
841 %doc doc/optimization.txt
842 %attr(755,root,root) %{_bindir}/ffmpeg-avconfig
843 %attr(755,root,root) %{_libdir}/libavcodec.so
844 %attr(755,root,root) %{_libdir}/libavdevice.so
845 %attr(755,root,root) %{_libdir}/libavfilter.so
846 %attr(755,root,root) %{_libdir}/libavformat.so
847 %{?with_avresample:%attr(755,root,root) %{_libdir}/libavresample.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 %{?with_avresample:%{_includedir}/libavresample}
858 %{_includedir}/libavutil
859 %{_includedir}/libpostproc
860 %{_includedir}/libswresample
861 %{_includedir}/libswscale
862 %{_pkgconfigdir}/libavcodec.pc
863 %{_pkgconfigdir}/libavdevice.pc
864 %{_pkgconfigdir}/libavfilter.pc
865 %{_pkgconfigdir}/libavformat.pc
866 %{?with_avresample:%{_pkgconfigdir}/libavresample.pc}
867 %{_pkgconfigdir}/libavutil.pc
868 %{_pkgconfigdir}/libpostproc.pc
869 %{_pkgconfigdir}/libswresample.pc
870 %{_pkgconfigdir}/libswscale.pc
872 %{_mandir}/man3/libavcodec.3*
873 %{_mandir}/man3/libavdevice.3*
874 %{_mandir}/man3/libavfilter.3*
875 %{_mandir}/man3/libavformat.3*
876 %{_mandir}/man3/libavutil.3*
877 %{_mandir}/man3/libswresample.3*
878 %{_mandir}/man3/libswscale.3*
880 %{_examplesdir}/%{name}-%{version}
883 %defattr(644,root,root,755)
884 %{_libdir}/libavcodec.a
885 %{_libdir}/libavdevice.a
886 %{_libdir}/libavfilter.a
887 %{_libdir}/libavformat.a
888 %{?with_avresample:%{_libdir}/libavresample.a}
889 %{_libdir}/libavutil.a
890 %{_libdir}/libpostproc.a
891 %{_libdir}/libswresample.a
892 %{_libdir}/libswscale.a
895 %defattr(644,root,root,755)
896 %attr(755,root,root) %{_bindir}/ffplay
898 %{_mandir}/man1/ffplay.1*
899 %{_mandir}/man1/ffplay-all.1*
904 %defattr(644,root,root,755)