2022-01-15 12:15:43 +01:00
|
|
|
#
|
|
|
|
# spec file for package ffmpeg-5
|
|
|
|
#
|
2023-01-04 14:30:15 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-01-15 12:15:43 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-01-27 16:43:19 +01:00
|
|
|
%define flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" != "ffmpeg-5-mini"
|
|
|
|
|
2022-01-15 12:15:43 +01:00
|
|
|
# Create proper conflicts to make sure we require all from one version
|
|
|
|
# p: Conflict string, eg if you need them all for requires instead
|
|
|
|
# Default value Conflicts:
|
|
|
|
# c: copmare string ie "<" or ">=", must be defined
|
|
|
|
# v: version string ie. "< 42.3.4" or ">= 15.0.2.1", must be defined
|
|
|
|
%define devel_conflicts(p:c:v:) \
|
|
|
|
%define preamble_string %{-p:%{-p*}}%{!-p:Conflicts:} \
|
|
|
|
%define comparator %{-c:%{-c*}}%{!-c:%{error:Comparator not defined}} \
|
|
|
|
%define conflicts_version %{-v:%{-v*}}%{!-v:%{error:Version not defined}} \
|
|
|
|
\
|
|
|
|
%preamble_string libavcodec-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libavdevice-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libavfilter-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libavformat-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libavutil-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libpostproc-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libswresample-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libswscale-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string ffmpeg-private-devel %comparator %conflicts_version \
|
|
|
|
%nil
|
|
|
|
|
2022-03-14 14:39:52 +01:00
|
|
|
%if 0%{?BUILD_ORIG}
|
2022-10-08 18:27:27 +02:00
|
|
|
%bcond_without amf_sdk
|
2022-03-14 14:39:52 +01:00
|
|
|
%bcond_without cuda_sdk
|
|
|
|
%else
|
|
|
|
# If software H264 is disabled, the hw driver must be as well:
|
|
|
|
# HW drivers can fail to initialize, namely when the hardware is absent.
|
|
|
|
# Browsers choose video formats on sites like youtube based on `ffmpeg
|
|
|
|
# -codecs` rather than the success/failure status of libav* initialization.
|
|
|
|
# This becomes a problem when a format only has a HW driver;
|
|
|
|
# the browser thinks it can do H264 but never succeeds.
|
2022-10-08 18:27:27 +02:00
|
|
|
%bcond_with amf_sdk
|
2022-03-14 14:39:52 +01:00
|
|
|
%bcond_with cuda_sdk
|
|
|
|
%endif
|
2022-01-15 12:15:43 +01:00
|
|
|
%bcond_with amrwb
|
|
|
|
%bcond_with fdk_aac_dlopen
|
|
|
|
%bcond_with opencore
|
2022-02-16 21:50:06 +01:00
|
|
|
%bcond_with smbclient
|
2022-01-15 12:15:43 +01:00
|
|
|
%bcond_with x264
|
|
|
|
%bcond_with x265
|
|
|
|
%bcond_with xvid
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%bcond_without mysofa
|
|
|
|
%bcond_without vidstab
|
|
|
|
%bcond_without codec2
|
|
|
|
%bcond_without rubberband
|
|
|
|
%bcond_without vulkan
|
|
|
|
%else
|
|
|
|
%bcond_with mysofa
|
|
|
|
%bcond_with vidstab
|
|
|
|
%bcond_with codec2
|
|
|
|
%bcond_with rubberband
|
|
|
|
%bcond_with vulkan
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define _name ffmpeg
|
|
|
|
%define _major_version 5
|
|
|
|
%define _major_expected 6
|
Accepting request 961334 from home:iznogood:branches:multimedia:libs
Yes, this does not build on i586 for 15.3, but I think we can live with that as ffmpeg-5 will never be the "main" ffmpeg on 15.3, in fact I doubt it will even reach it at all.
- Drop pkgconfig(celt) BuildRequires and stop passing
--enable-libcelt to configure and drop celt from enable_decoders,
abandoned upstream for opus.
- Drop pkgconfig(libv4l2) BuildRequires and stop passing
--enable-libv4l2 to configure, only needed very old devices and
may cause problems for others for those needing it, use
LD_PRELOAD pointing on libv4l2.
- Drop pkgconfig(librtmp) BuildRequires and stop passing
conditional --enable-librtmp to configure, built-in RTMP support
is better, and has listen mode.
- Drop bcond conditionals for cuda_sdk, libaom, srt, lv2, soxr,
zmq, zimg and openmpt, build unconditionally for all supported
versions of openSUSE.
- Drop pkgconfig(enca) BuildRequires: Seems unused.
OBS-URL: https://build.opensuse.org/request/show/961334
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-5?expand=0&rev=11
2022-03-14 14:26:44 +01:00
|
|
|
|
2022-01-15 12:15:43 +01:00
|
|
|
Name: ffmpeg-5
|
2022-09-27 00:57:02 +02:00
|
|
|
Version: 5.1.2
|
2022-01-15 12:15:43 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Set of libraries for working with various multimedia formats
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
|
|
|
URL: https://ffmpeg.org/
|
|
|
|
|
|
|
|
#Freshcode-URL: http://freshcode.club/projects/ffmpeg
|
|
|
|
#Git-Clone: git://source.ffmpeg.org/ffmpeg
|
2022-02-19 00:11:59 +01:00
|
|
|
Source: https://www.ffmpeg.org/releases/%_name-%version.tar.xz
|
2022-01-15 12:15:43 +01:00
|
|
|
Source2: https://www.ffmpeg.org/releases/%_name-%version.tar.xz.asc
|
2023-01-28 17:51:36 +01:00
|
|
|
Source3: ffmpeg-5-rpmlintrc
|
2022-01-15 12:15:43 +01:00
|
|
|
Source4: enable_decoders
|
|
|
|
Source5: enable_encoders
|
2022-02-19 00:11:59 +01:00
|
|
|
Source6: ffmpeg-dlopen-headers.tar.xz
|
2022-02-19 00:08:40 +01:00
|
|
|
Source92: ffmpeg_get_dlopen_headers.sh
|
2022-01-15 12:15:43 +01:00
|
|
|
Source98: http://ffmpeg.org/ffmpeg-devel.asc#/ffmpeg-5.keyring
|
|
|
|
Source99: baselibs.conf
|
Accepting request 961334 from home:iznogood:branches:multimedia:libs
Yes, this does not build on i586 for 15.3, but I think we can live with that as ffmpeg-5 will never be the "main" ffmpeg on 15.3, in fact I doubt it will even reach it at all.
- Drop pkgconfig(celt) BuildRequires and stop passing
--enable-libcelt to configure and drop celt from enable_decoders,
abandoned upstream for opus.
- Drop pkgconfig(libv4l2) BuildRequires and stop passing
--enable-libv4l2 to configure, only needed very old devices and
may cause problems for others for those needing it, use
LD_PRELOAD pointing on libv4l2.
- Drop pkgconfig(librtmp) BuildRequires and stop passing
conditional --enable-librtmp to configure, built-in RTMP support
is better, and has listen mode.
- Drop bcond conditionals for cuda_sdk, libaom, srt, lv2, soxr,
zmq, zimg and openmpt, build unconditionally for all supported
versions of openSUSE.
- Drop pkgconfig(enca) BuildRequires: Seems unused.
OBS-URL: https://build.opensuse.org/request/show/961334
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-5?expand=0&rev=11
2022-03-14 14:26:44 +01:00
|
|
|
|
2022-01-15 12:15:43 +01:00
|
|
|
Patch1: ffmpeg-arm6l.diff
|
|
|
|
Patch2: ffmpeg-new-coder-errors.diff
|
|
|
|
Patch3: ffmpeg-codec-choice.diff
|
|
|
|
Patch4: ffmpeg-4.2-dlopen-fdk_aac.patch
|
2022-07-23 14:06:00 +02:00
|
|
|
Patch5: work-around-abi-break.patch
|
2022-01-15 12:15:43 +01:00
|
|
|
Patch9: ffmpeg-4.4-CVE-2020-22046.patch
|
2022-01-16 16:54:50 +01:00
|
|
|
Patch10: ffmpeg-chromium.patch
|
2022-11-16 12:52:06 +01:00
|
|
|
Patch11: ffmpeg-CVE-2022-3964.patch
|
2022-02-19 00:08:40 +01:00
|
|
|
Patch91: ffmpeg-dlopen-openh264.patch
|
2023-01-31 17:09:31 +01:00
|
|
|
Patch92: no-vk-video-decoding.patch
|
2023-03-13 12:54:46 +01:00
|
|
|
Patch93: soname.diff
|
Accepting request 961334 from home:iznogood:branches:multimedia:libs
Yes, this does not build on i586 for 15.3, but I think we can live with that as ffmpeg-5 will never be the "main" ffmpeg on 15.3, in fact I doubt it will even reach it at all.
- Drop pkgconfig(celt) BuildRequires and stop passing
--enable-libcelt to configure and drop celt from enable_decoders,
abandoned upstream for opus.
- Drop pkgconfig(libv4l2) BuildRequires and stop passing
--enable-libv4l2 to configure, only needed very old devices and
may cause problems for others for those needing it, use
LD_PRELOAD pointing on libv4l2.
- Drop pkgconfig(librtmp) BuildRequires and stop passing
conditional --enable-librtmp to configure, built-in RTMP support
is better, and has listen mode.
- Drop bcond conditionals for cuda_sdk, libaom, srt, lv2, soxr,
zmq, zimg and openmpt, build unconditionally for all supported
versions of openSUSE.
- Drop pkgconfig(enca) BuildRequires: Seems unused.
OBS-URL: https://build.opensuse.org/request/show/961334
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-5?expand=0&rev=11
2022-03-14 14:26:44 +01:00
|
|
|
|
2022-10-08 18:27:27 +02:00
|
|
|
%if %{with amf_sdk}
|
|
|
|
BuildRequires: AMF-devel
|
|
|
|
%endif
|
2022-01-15 12:15:43 +01:00
|
|
|
BuildRequires: ladspa-devel
|
|
|
|
BuildRequires: libgsm-devel
|
|
|
|
BuildRequires: libmp3lame-devel
|
|
|
|
%if %{with mysofa}
|
|
|
|
BuildRequires: libmysofa-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: nasm
|
|
|
|
BuildRequires: pkg-config
|
2022-12-12 22:23:18 +01:00
|
|
|
%ifarch x86_64 %x86_64
|
2022-01-15 12:15:43 +01:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
BuildRequires: pkgconfig(SvtAv1Enc) >= 0.8.4
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
BuildRequires: pkgconfig(aom)
|
|
|
|
BuildRequires: pkgconfig(bzip2)
|
|
|
|
%if %{with codec2}
|
|
|
|
BuildRequires: pkgconfig(codec2)
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200
|
|
|
|
BuildRequires: pkgconfig(dav1d)
|
|
|
|
%endif
|
Accepting request 961334 from home:iznogood:branches:multimedia:libs
Yes, this does not build on i586 for 15.3, but I think we can live with that as ffmpeg-5 will never be the "main" ffmpeg on 15.3, in fact I doubt it will even reach it at all.
- Drop pkgconfig(celt) BuildRequires and stop passing
--enable-libcelt to configure and drop celt from enable_decoders,
abandoned upstream for opus.
- Drop pkgconfig(libv4l2) BuildRequires and stop passing
--enable-libv4l2 to configure, only needed very old devices and
may cause problems for others for those needing it, use
LD_PRELOAD pointing on libv4l2.
- Drop pkgconfig(librtmp) BuildRequires and stop passing
conditional --enable-librtmp to configure, built-in RTMP support
is better, and has listen mode.
- Drop bcond conditionals for cuda_sdk, libaom, srt, lv2, soxr,
zmq, zimg and openmpt, build unconditionally for all supported
versions of openSUSE.
- Drop pkgconfig(enca) BuildRequires: Seems unused.
OBS-URL: https://build.opensuse.org/request/show/961334
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-5?expand=0&rev=11
2022-03-14 14:26:44 +01:00
|
|
|
BuildRequires: pkgconfig(ffnvcodec)
|
2022-01-15 12:15:43 +01:00
|
|
|
BuildRequires: pkgconfig(fontconfig) >= 2.4.2
|
|
|
|
BuildRequires: pkgconfig(freetype2)
|
|
|
|
BuildRequires: pkgconfig(fribidi) >= 0.19.0
|
|
|
|
BuildRequires: pkgconfig(gnutls)
|
|
|
|
BuildRequires: pkgconfig(jack)
|
|
|
|
BuildRequires: pkgconfig(libass)
|
|
|
|
BuildRequires: pkgconfig(libbluray)
|
|
|
|
BuildRequires: pkgconfig(libbs2b)
|
|
|
|
BuildRequires: pkgconfig(libcdio)
|
|
|
|
BuildRequires: pkgconfig(libcdio_paranoia)
|
|
|
|
BuildRequires: pkgconfig(libdc1394-2)
|
|
|
|
BuildRequires: pkgconfig(libdrm)
|
|
|
|
BuildRequires: pkgconfig(libgme)
|
|
|
|
BuildRequires: pkgconfig(libopenjp2) >= 2.1.0
|
|
|
|
BuildRequires: pkgconfig(libopenmpt)
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
BuildRequires: pkgconfig(libraw1394)
|
|
|
|
BuildRequires: pkgconfig(libssh)
|
|
|
|
BuildRequires: pkgconfig(libva) >= 0.35.0
|
|
|
|
BuildRequires: pkgconfig(libva-drm)
|
|
|
|
BuildRequires: pkgconfig(libva-x11)
|
|
|
|
BuildRequires: pkgconfig(libvmaf) >= 1.3.9
|
|
|
|
BuildRequires: pkgconfig(libwebp) >= 0.4
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(libzmq)
|
|
|
|
BuildRequires: pkgconfig(lilv-0)
|
|
|
|
BuildRequires: pkgconfig(ogg)
|
|
|
|
BuildRequires: pkgconfig(opus)
|
2022-07-26 20:59:11 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
BuildRequires: pkgconfig(libjxl)
|
2022-12-11 15:18:31 +01:00
|
|
|
BuildRequires: pkgconfig(librist)
|
2022-07-26 20:59:11 +02:00
|
|
|
%endif
|
Accepting request 961334 from home:iznogood:branches:multimedia:libs
Yes, this does not build on i586 for 15.3, but I think we can live with that as ffmpeg-5 will never be the "main" ffmpeg on 15.3, in fact I doubt it will even reach it at all.
- Drop pkgconfig(celt) BuildRequires and stop passing
--enable-libcelt to configure and drop celt from enable_decoders,
abandoned upstream for opus.
- Drop pkgconfig(libv4l2) BuildRequires and stop passing
--enable-libv4l2 to configure, only needed very old devices and
may cause problems for others for those needing it, use
LD_PRELOAD pointing on libv4l2.
- Drop pkgconfig(librtmp) BuildRequires and stop passing
conditional --enable-librtmp to configure, built-in RTMP support
is better, and has listen mode.
- Drop bcond conditionals for cuda_sdk, libaom, srt, lv2, soxr,
zmq, zimg and openmpt, build unconditionally for all supported
versions of openSUSE.
- Drop pkgconfig(enca) BuildRequires: Seems unused.
OBS-URL: https://build.opensuse.org/request/show/961334
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-5?expand=0&rev=11
2022-03-14 14:26:44 +01:00
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150400
|
2022-01-15 12:15:43 +01:00
|
|
|
BuildRequires: pkgconfig(rav1e)
|
|
|
|
%endif
|
|
|
|
%if %{with rubberband}
|
|
|
|
BuildRequires: pkgconfig(rubberband)
|
|
|
|
%endif
|
2023-01-05 14:17:11 +01:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2022-01-15 12:15:43 +01:00
|
|
|
%if %{with smbclient}
|
|
|
|
BuildRequires: pkgconfig(smbclient)
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(soxr)
|
|
|
|
BuildRequires: pkgconfig(speex)
|
|
|
|
BuildRequires: pkgconfig(srt)
|
|
|
|
BuildRequires: pkgconfig(theora) >= 1.1
|
|
|
|
BuildRequires: pkgconfig(twolame)
|
|
|
|
BuildRequires: pkgconfig(vdpau)
|
|
|
|
%if %{with vidstab}
|
|
|
|
BuildRequires: pkgconfig(vidstab) >= 0.98
|
|
|
|
%endif
|
|
|
|
%if %{with vulkan}
|
2022-02-19 14:55:24 +01:00
|
|
|
BuildRequires: pkgconfig(shaderc)
|
2022-01-15 12:15:43 +01:00
|
|
|
BuildRequires: pkgconfig(vulkan)
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(vorbis)
|
|
|
|
BuildRequires: pkgconfig(vpx) >= 1.4.0
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xcb)
|
|
|
|
BuildRequires: pkgconfig(xcb-render)
|
|
|
|
BuildRequires: pkgconfig(xcb-shape)
|
|
|
|
BuildRequires: pkgconfig(xcb-shm)
|
|
|
|
BuildRequires: pkgconfig(xcb-xfixes)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xfixes)
|
|
|
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150200
|
2022-12-12 22:23:18 +01:00
|
|
|
%ifarch x86_64 %x86_64
|
2022-01-15 12:15:43 +01:00
|
|
|
BuildRequires: pkgconfig(libmfx)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(zimg)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
BuildRequires: pkgconfig(zvbi-0.2) >= 0.2.28
|
|
|
|
%if %{with fdk_aac_dlopen}
|
|
|
|
BuildRequires: pkgconfig(fdk-aac)
|
|
|
|
%endif
|
|
|
|
%if %{with xvid}
|
|
|
|
BuildRequires: libxvidcore-devel
|
|
|
|
%endif
|
|
|
|
%if %{with opencore}
|
|
|
|
BuildRequires: pkgconfig(opencore-amrnb)
|
|
|
|
%endif
|
|
|
|
%if %{with amrwb}
|
|
|
|
BuildRequires: pkgconfig(vo-amrwbenc)
|
|
|
|
%endif
|
|
|
|
%if %{with x264}
|
|
|
|
BuildRequires: pkgconfig(x264)
|
|
|
|
%endif
|
|
|
|
%if %{with x265}
|
|
|
|
BuildRequires: pkgconfig(x265)
|
|
|
|
%endif
|
|
|
|
Provides: ffmpeg-tools = %version
|
2023-03-16 18:55:45 +01:00
|
|
|
Conflicts: ffmpeg-tools
|
2022-01-15 12:15:43 +01:00
|
|
|
Provides: ffmpeg = %version
|
|
|
|
Obsoletes: ffmpeg < %version
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavcodec59 = %version-%release
|
|
|
|
Requires: libavdevice59 = %version-%release
|
|
|
|
Requires: libavfilter8 = %version-%release
|
|
|
|
Requires: libavformat59 = %version-%release
|
|
|
|
Requires: libavutil57 = %version-%release
|
|
|
|
Requires: libpostproc56 = %version-%release
|
2023-03-13 12:54:46 +01:00
|
|
|
Requires: libswresample4_ff5 = %version-%release
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libswscale6 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
FFmpeg is a multimedia framework, able to decode, encode,
|
|
|
|
transcode, mux, demux, stream, filter and play several formats
|
|
|
|
that humans and machines have created.
|
|
|
|
%if !0%{?BUILD_ORIG}
|
|
|
|
|
|
|
|
This build of ffmpeg is limited in the number of codecs supported.
|
|
|
|
%endif
|
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%package -n libavcodec59
|
2022-01-15 12:15:43 +01:00
|
|
|
Summary: FFmpeg codec library
|
|
|
|
Group: System/Libraries
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavutil57 = %version-%release
|
2023-03-13 12:54:46 +01:00
|
|
|
Requires: libswresample4_ff5 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
%if 0%{?BUILD_ORIG}
|
|
|
|
Provides: libavcodec-full = %version-%release
|
|
|
|
# This can be (and is) required by packages like vlc-codecs -
|
|
|
|
# do follow the shlib name to not get random lib providers
|
|
|
|
Provides: libavcodec59(unrestricted)
|
|
|
|
%endif
|
|
|
|
# For mozillas
|
|
|
|
Provides: libavcodec = %version-%release
|
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%description -n libavcodec59
|
2022-01-15 12:15:43 +01:00
|
|
|
The libavcodec library provides a generic encoding/decoding framework
|
|
|
|
and contains multiple decoders and encoders for audio, video and
|
|
|
|
subtitle streams, and several bitstream filters.
|
|
|
|
%if !0%{?BUILD_ORIG}
|
|
|
|
|
|
|
|
This build of ffmpeg is limited in the number of codecs supported.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package libavcodec-devel
|
|
|
|
Summary: Development files for FFmpeg's codec library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libavcodec-devel = %version-%release
|
|
|
|
Obsoletes: libavcodec-devel < %version-%release
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavcodec59 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
|
|
|
|
|
|
|
%description libavcodec-devel
|
|
|
|
The libavcodec library provides a generic encoding/decoding framework
|
|
|
|
and contains multiple decoders and encoders for audio, video and
|
|
|
|
subtitle streams, and several bitstream filters.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libavcodec.
|
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%package -n libavdevice59
|
2022-01-15 12:15:43 +01:00
|
|
|
Summary: FFmpeg device library
|
|
|
|
Group: System/Libraries
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavcodec59 = %version-%release
|
|
|
|
Requires: libavfilter8 = %version-%release
|
|
|
|
Requires: libavformat59 = %version-%release
|
|
|
|
Requires: libavutil57 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%description -n libavdevice59
|
2022-01-15 12:15:43 +01:00
|
|
|
The libavdevice library provides a generic framework for grabbing from
|
|
|
|
and rendering to many common multimedia input/output devices, and
|
|
|
|
supports several input and output devices, including Video4Linux2, VfW,
|
|
|
|
DShow, and ALSA.
|
|
|
|
|
|
|
|
%package libavdevice-devel
|
|
|
|
Summary: Development files for FFmpeg's device library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: ffmpeg-devel = %version-%release
|
|
|
|
Conflicts: ffmpeg-devel
|
|
|
|
Provides: libavdevice-devel = %version-%release
|
|
|
|
Obsoletes: libavdevice-devel < %version-%release
|
|
|
|
Requires: %name-libavcodec-devel = %version-%release
|
|
|
|
Requires: %name-libavfilter-devel = %version-%release
|
|
|
|
Requires: %name-libavformat-devel = %version-%release
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
|
|
|
Requires: %name-libpostproc-devel = %version-%release
|
|
|
|
Requires: %name-libswresample-devel = %version-%release
|
|
|
|
Requires: %name-libswscale-devel = %version-%release
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavdevice59 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
|
|
|
|
|
|
|
%description libavdevice-devel
|
|
|
|
The libavdevice library provides a generic framework for grabbing from
|
|
|
|
and rendering to many common multimedia input/output devices, and
|
|
|
|
supports several input and output devices, including Video4Linux2, VfW,
|
|
|
|
DShow, and ALSA.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libavcodec.
|
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%package -n libavfilter8
|
2022-01-15 12:15:43 +01:00
|
|
|
Summary: FFmpeg audio and video filtering library
|
|
|
|
Group: System/Libraries
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavcodec59 = %version-%release
|
|
|
|
Requires: libavformat59 = %version-%release
|
|
|
|
Requires: libavutil57 = %version-%release
|
|
|
|
Requires: libpostproc56 = %version-%release
|
2023-03-13 12:54:46 +01:00
|
|
|
Requires: libswresample4_ff5 = %version-%release
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libswscale6 = %version-%release
|
|
|
|
|
|
|
|
%description -n libavfilter8
|
2022-01-15 12:15:43 +01:00
|
|
|
The libavfilter library provides a generic audio/video filtering
|
|
|
|
framework containing several filters, sources and sinks.
|
|
|
|
|
|
|
|
%package libavfilter-devel
|
|
|
|
Summary: Development files for FFmpeg's audio/video filter library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libavfilter-devel = %version-%release
|
|
|
|
Obsoletes: libavfilter-devel < %version-%release
|
|
|
|
Requires: %name-libavcodec-devel = %version-%release
|
|
|
|
Requires: %name-libavformat-devel = %version-%release
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
|
|
|
Requires: %name-libpostproc-devel = %version-%release
|
|
|
|
Requires: %name-libswresample-devel = %version-%release
|
|
|
|
Requires: %name-libswscale-devel = %version-%release
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavfilter8 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
|
|
|
|
|
|
|
%description libavfilter-devel
|
|
|
|
The libavfilter library provides a generic audio/video filtering
|
|
|
|
framework containing several filters, sources and sinks.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libavfilter.
|
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%package -n libavformat59
|
2022-01-15 12:15:43 +01:00
|
|
|
Summary: FFmpeg's stream format library
|
|
|
|
Group: System/Libraries
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavcodec59 = %version-%release
|
|
|
|
Requires: libavutil57 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%description -n libavformat59
|
2022-01-15 12:15:43 +01:00
|
|
|
The libavformat library provides a generic framework for multiplexing
|
|
|
|
and demultiplexing (muxing and demuxing) audio, video and subtitle
|
|
|
|
streams. It encompasses multiple muxers and demuxers for multimedia
|
|
|
|
container formats.
|
|
|
|
%if !0%{?BUILD_ORIG}
|
|
|
|
|
|
|
|
This build of ffmpeg is limited in the number of codecs supported.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package libavformat-devel
|
|
|
|
Summary: Development files for FFmpeg's stream format library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libavformat-devel = %version-%release
|
|
|
|
Obsoletes: libavformat-devel < %version-%release
|
|
|
|
Requires: %name-libavcodec-devel = %version-%release
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
|
|
|
Requires: %name-libswresample-devel = %version-%release
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavformat59 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
|
|
|
|
|
|
|
%description libavformat-devel
|
|
|
|
The libavformat library provides a generic framework for multiplexing
|
|
|
|
and demultiplexing (muxing and demuxing) audio, video and subtitle
|
|
|
|
streams. It encompasses multiple muxers and demuxers for multimedia
|
|
|
|
container formats.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libavformat.
|
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%package -n libavutil57
|
2022-01-15 12:15:43 +01:00
|
|
|
Summary: FFmpeg's utility library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%description -n libavutil57
|
2022-01-15 12:15:43 +01:00
|
|
|
The libavutil library is a utility library to aid portable multimedia
|
|
|
|
programming. It contains safe portable string functions, random
|
|
|
|
number generators, data structures, additional mathematics functions,
|
|
|
|
cryptography and multimedia related functionality (like enumerations
|
|
|
|
for pixel and sample formats).
|
|
|
|
|
|
|
|
%package libavutil-devel
|
|
|
|
Summary: Development files for FFmpeg's utility library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libavutil-devel = %version-%release
|
|
|
|
Obsoletes: libavutil-devel < %version-%release
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavutil57 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
|
|
|
|
|
|
|
%description libavutil-devel
|
|
|
|
The libavutil library is a utility library to aid portable multimedia
|
|
|
|
programming. It contains safe portable string functions, random
|
|
|
|
number generators, data structures, additional mathematics functions,
|
|
|
|
cryptography and multimedia related functionality (like enumerations
|
|
|
|
for pixel and sample formats).
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libavutil.
|
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%package -n libpostproc56
|
2022-01-15 12:15:43 +01:00
|
|
|
Summary: FFmpeg post-processing library
|
|
|
|
Group: System/Libraries
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavutil57 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%description -n libpostproc56
|
2022-01-15 12:15:43 +01:00
|
|
|
A library with video postprocessing filters, such as deblocking and
|
|
|
|
deringing filters, noise reduction, automatic contrast and brightness
|
|
|
|
correction, linear/cubic interpolating deinterlacing.
|
|
|
|
|
|
|
|
%package libpostproc-devel
|
|
|
|
Summary: Development files for the FFmpeg post-processing library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libpostproc-devel = %version-%release
|
|
|
|
Obsoletes: libpostproc-devel < %version-%release
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libpostproc56 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
|
|
|
|
|
|
|
%description libpostproc-devel
|
|
|
|
A library with video postprocessing filters, such as deblocking and
|
|
|
|
deringing filters, noise reduction, automatic contrast and brightness
|
|
|
|
correction, linear/cubic interpolating deinterlacing.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libpostproc.
|
|
|
|
|
2023-03-13 12:54:46 +01:00
|
|
|
%package -n libswresample4_ff5
|
2022-01-15 12:15:43 +01:00
|
|
|
Summary: FFmpeg software resampling library
|
|
|
|
Group: System/Libraries
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavutil57 = %version-%release
|
2023-03-19 14:28:06 +01:00
|
|
|
Obsoletes: libswresample4 < %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
|
2023-03-13 12:54:46 +01:00
|
|
|
%description -n libswresample4_ff5
|
2022-01-15 12:15:43 +01:00
|
|
|
The libswresample library performs audio conversion between different
|
|
|
|
sample rates, channel layout and channel formats.
|
|
|
|
|
|
|
|
%package libswresample-devel
|
|
|
|
Summary: Development files for the FFmpeg software resampling library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libswresample-devel = %version-%release
|
|
|
|
Obsoletes: libswresample-devel < %version-%release
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
2023-03-13 12:54:46 +01:00
|
|
|
Requires: libswresample4_ff5 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
|
|
|
|
|
|
|
%description libswresample-devel
|
|
|
|
The libswresample library performs audio conversion between different
|
|
|
|
sample rates, channel layout and channel formats.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libswresample.
|
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%package -n libswscale6
|
2022-01-15 12:15:43 +01:00
|
|
|
Summary: FFmpeg image scaling and colorspace/pixel conversion library
|
|
|
|
Group: System/Libraries
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libavutil57 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%description -n libswscale6
|
2022-01-15 12:15:43 +01:00
|
|
|
The libswscale library performs image scaling and colorspace and
|
|
|
|
pixel format conversion operations.
|
|
|
|
|
|
|
|
%package libswscale-devel
|
|
|
|
Summary: Development files for FFmpeg's image scaling and colorspace library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libswscale-devel = %version-%release
|
|
|
|
Conflicts: libswscale-devel
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
2022-07-27 23:49:26 +02:00
|
|
|
Requires: libswscale6 = %version-%release
|
2022-01-15 12:15:43 +01:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
|
|
|
|
|
|
|
%description libswscale-devel
|
|
|
|
The libswscale library performs image scaling and colorspace and
|
|
|
|
pixel format conversion operations.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libswscale.
|
|
|
|
|
|
|
|
%package private-devel
|
|
|
|
Summary: Some FFmpeg private headers
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %name-libavcodec-devel = %version-%release
|
|
|
|
Requires: %name-libavformat-devel = %version-%release
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
|
|
|
Provides: ffmpeg-private-devel = %version
|
|
|
|
Obsoletes: ffmpeg-private-devel < %version
|
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
|
|
|
|
|
|
|
%description private-devel
|
|
|
|
FFmpeg is a multimedia framework, able to decode, encode,
|
|
|
|
transcode, mux, demux, stream, filter and play several formats
|
|
|
|
that humans and machines have created.
|
|
|
|
|
|
|
|
This package contains some private headers for libavformat, libavcodec and
|
|
|
|
libavutil which are needed by libav-tools to build. No other package apart
|
|
|
|
from libav should depend on these private headers which are expected to
|
|
|
|
break compatibility without any notice.
|
|
|
|
|
|
|
|
%prep
|
2022-02-19 00:11:59 +01:00
|
|
|
%autosetup -a6 -p1 -n %_name-%version
|
2022-01-15 12:15:43 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%ifarch %ix86 %arm
|
|
|
|
%define _lto_cflags %nil
|
|
|
|
%endif
|
|
|
|
%if "%_lto_cflags" != ""
|
|
|
|
%global _lto_cflags %_lto_cflags -ffat-lto-objects
|
|
|
|
%endif
|
|
|
|
CFLAGS="%optflags" \
|
|
|
|
%if %suse_version > 1500
|
|
|
|
%ifarch %ix86
|
|
|
|
%else
|
|
|
|
LDFLAGS="%_lto_cflags" \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
./configure \
|
|
|
|
--prefix="%_prefix" \
|
|
|
|
--libdir="%_libdir" \
|
|
|
|
--shlibdir="%_libdir" \
|
|
|
|
--incdir="%_includedir/ffmpeg" \
|
|
|
|
--extra-cflags="%optflags" \
|
|
|
|
--optflags="%optflags" \
|
|
|
|
--disable-htmlpages \
|
|
|
|
--enable-pic \
|
|
|
|
--disable-stripping \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--enable-gpl \
|
|
|
|
--enable-version3 \
|
|
|
|
%if %{with smbclient}
|
|
|
|
--enable-libsmbclient \
|
|
|
|
%endif
|
|
|
|
--disable-openssl \
|
|
|
|
--enable-gnutls \
|
|
|
|
--enable-ladspa \
|
|
|
|
%if %{with vulkan}
|
2022-02-19 14:55:24 +01:00
|
|
|
--enable-libshaderc --enable-vulkan \
|
2022-03-14 14:39:52 +01:00
|
|
|
%endif
|
2022-10-08 18:27:27 +02:00
|
|
|
%if %{with amf}
|
|
|
|
--enable-amf \
|
|
|
|
%endif
|
2022-03-14 14:39:52 +01:00
|
|
|
%if !%{with cuda_sdk}
|
|
|
|
--disable-cuda-sdk \
|
2022-01-15 12:15:43 +01:00
|
|
|
%endif
|
|
|
|
--enable-libaom \
|
|
|
|
--enable-libass \
|
|
|
|
--enable-libbluray \
|
|
|
|
--enable-libbs2b \
|
|
|
|
--enable-libcdio \
|
|
|
|
%if %{with codec2}
|
|
|
|
--enable-libcodec2 \
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200
|
|
|
|
--enable-libdav1d \
|
|
|
|
%endif
|
|
|
|
--enable-libdc1394 \
|
|
|
|
--enable-libdrm \
|
|
|
|
--enable-libfontconfig \
|
|
|
|
--enable-libfreetype \
|
|
|
|
--enable-libfribidi \
|
|
|
|
--enable-libgsm \
|
|
|
|
--enable-libjack \
|
2022-07-26 20:59:11 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
--enable-libjxl \
|
2022-12-11 15:18:31 +01:00
|
|
|
--enable-librist \
|
2022-07-26 20:59:11 +02:00
|
|
|
%endif
|
2022-01-15 12:15:43 +01:00
|
|
|
--enable-libmp3lame \
|
|
|
|
%if %{with mysofa}
|
|
|
|
--enable-libmysofa \
|
|
|
|
%endif
|
|
|
|
--enable-libopenjpeg \
|
|
|
|
--enable-libopenmpt \
|
2022-02-19 00:08:40 +01:00
|
|
|
--enable-libopenh264-dlopen \
|
2022-01-15 12:15:43 +01:00
|
|
|
--enable-libopus \
|
|
|
|
--enable-libpulse \
|
Accepting request 961334 from home:iznogood:branches:multimedia:libs
Yes, this does not build on i586 for 15.3, but I think we can live with that as ffmpeg-5 will never be the "main" ffmpeg on 15.3, in fact I doubt it will even reach it at all.
- Drop pkgconfig(celt) BuildRequires and stop passing
--enable-libcelt to configure and drop celt from enable_decoders,
abandoned upstream for opus.
- Drop pkgconfig(libv4l2) BuildRequires and stop passing
--enable-libv4l2 to configure, only needed very old devices and
may cause problems for others for those needing it, use
LD_PRELOAD pointing on libv4l2.
- Drop pkgconfig(librtmp) BuildRequires and stop passing
conditional --enable-librtmp to configure, built-in RTMP support
is better, and has listen mode.
- Drop bcond conditionals for cuda_sdk, libaom, srt, lv2, soxr,
zmq, zimg and openmpt, build unconditionally for all supported
versions of openSUSE.
- Drop pkgconfig(enca) BuildRequires: Seems unused.
OBS-URL: https://build.opensuse.org/request/show/961334
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-5?expand=0&rev=11
2022-03-14 14:26:44 +01:00
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150400
|
2022-01-15 12:15:43 +01:00
|
|
|
--enable-librav1e \
|
|
|
|
%endif
|
|
|
|
%if %{with rubberband}
|
|
|
|
--enable-librubberband \
|
|
|
|
%endif
|
2022-12-12 22:23:18 +01:00
|
|
|
%ifarch x86_64 %x86_64
|
2022-01-15 12:15:43 +01:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
--enable-libsvtav1 \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
--enable-libsoxr \
|
|
|
|
--enable-libspeex \
|
|
|
|
--enable-libssh \
|
|
|
|
--enable-libsrt \
|
|
|
|
--enable-libtheora \
|
|
|
|
--enable-libtwolame \
|
|
|
|
%if %{with vidstab}
|
|
|
|
--enable-libvidstab \
|
|
|
|
%endif
|
|
|
|
--enable-libvmaf \
|
|
|
|
--enable-libvorbis \
|
|
|
|
--enable-libvpx \
|
|
|
|
--enable-libwebp \
|
|
|
|
--enable-libxml2 \
|
|
|
|
--enable-libzimg \
|
|
|
|
--enable-libzmq \
|
|
|
|
--enable-libzvbi \
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%ifarch %ix86
|
|
|
|
%else
|
Accepting request 961334 from home:iznogood:branches:multimedia:libs
Yes, this does not build on i586 for 15.3, but I think we can live with that as ffmpeg-5 will never be the "main" ffmpeg on 15.3, in fact I doubt it will even reach it at all.
- Drop pkgconfig(celt) BuildRequires and stop passing
--enable-libcelt to configure and drop celt from enable_decoders,
abandoned upstream for opus.
- Drop pkgconfig(libv4l2) BuildRequires and stop passing
--enable-libv4l2 to configure, only needed very old devices and
may cause problems for others for those needing it, use
LD_PRELOAD pointing on libv4l2.
- Drop pkgconfig(librtmp) BuildRequires and stop passing
conditional --enable-librtmp to configure, built-in RTMP support
is better, and has listen mode.
- Drop bcond conditionals for cuda_sdk, libaom, srt, lv2, soxr,
zmq, zimg and openmpt, build unconditionally for all supported
versions of openSUSE.
- Drop pkgconfig(enca) BuildRequires: Seems unused.
OBS-URL: https://build.opensuse.org/request/show/961334
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-5?expand=0&rev=11
2022-03-14 14:26:44 +01:00
|
|
|
--enable-lto \
|
2022-01-15 12:15:43 +01:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
--enable-lv2 \
|
|
|
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150200
|
2022-12-12 22:23:18 +01:00
|
|
|
%ifarch x86_64 %x86_64
|
2022-01-15 12:15:43 +01:00
|
|
|
--enable-libmfx \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
--enable-vaapi \
|
|
|
|
--enable-vdpau \
|
|
|
|
--enable-version3 \
|
|
|
|
%if %{with fdk_aac_dlopen}
|
|
|
|
--enable-libfdk-aac-dlopen \
|
|
|
|
--enable-nonfree \
|
|
|
|
%endif
|
|
|
|
%if %{with opencore}
|
|
|
|
--enable-libopencore-amrnb \
|
|
|
|
--enable-libopencore-amrwb \
|
|
|
|
%endif
|
|
|
|
%if %{with amrwb}
|
|
|
|
--enable-libvo-amrwbenc \
|
|
|
|
%endif
|
|
|
|
%if %{with x264}
|
|
|
|
--enable-libx264 \
|
|
|
|
%endif
|
|
|
|
%if %{with x265}
|
|
|
|
--enable-libx265 \
|
|
|
|
%endif
|
|
|
|
%if %{with xvid}
|
|
|
|
--enable-libxvid \
|
|
|
|
%endif
|
|
|
|
%if !0%{?BUILD_ORIG}
|
|
|
|
--enable-muxers \
|
|
|
|
--enable-demuxers \
|
|
|
|
--disable-encoders \
|
|
|
|
--disable-decoders \
|
|
|
|
--disable-decoder=mpeg4,h263,h264,hevc,vc1 \
|
|
|
|
--enable-encoder="$(perl -pe 's{^(\w*).*}{$1,}gs' <%_sourcedir/enable_encoders)" \
|
|
|
|
--enable-decoder="$(perl -pe 's{^(\w*).*}{$1,}gs' <%_sourcedir/enable_decoders)" \
|
|
|
|
|
|
|
|
for i in MPEG4 H263 H264 HEVC VC1; do
|
2022-07-23 14:06:00 +02:00
|
|
|
grep -q "#define CONFIG_${i}_DECODER 0" config_components.h
|
2022-01-15 12:15:43 +01:00
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
|
|
|
cat config.h
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
%global extratools aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper probetest qt-faststart seek_print sidxindex trasher
|
|
|
|
|
|
|
|
for i in %extratools; do
|
|
|
|
%make_build "tools/$i"
|
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot"
|
|
|
|
%make_install install-man
|
|
|
|
rm -Rf "$b/%_datadir/ffmpeg/examples"
|
|
|
|
for i in %extratools; do
|
|
|
|
cp -a "tools/$i" "$b/%_bindir/"
|
|
|
|
done
|
|
|
|
|
|
|
|
# Install private headers required by libav-tools
|
|
|
|
for i in libavformat/options_table.h libavformat/os_support.h \
|
|
|
|
libavformat/internal.h libavcodec/options_table.h libavutil/libm.h \
|
|
|
|
libavutil/internal.h libavutil/colorspace.h libavutil/timer.h \
|
|
|
|
libavutil/x86/emms.h libavutil/aarch64/timer.h libavutil/arm/timer.h \
|
|
|
|
libavutil/bfin/timer.h libavutil/ppc/timer.h libavutil/x86/timer.h; do
|
|
|
|
mkdir -p "$b/%_includedir/ffmpeg/private/"`dirname $i`
|
|
|
|
cp -a $i "$b/%_includedir/ffmpeg/private/$i"
|
|
|
|
done
|
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%post -n libavcodec59 -p /sbin/ldconfig
|
|
|
|
%postun -n libavcodec59 -p /sbin/ldconfig
|
|
|
|
%post -n libavdevice59 -p /sbin/ldconfig
|
|
|
|
%postun -n libavdevice59 -p /sbin/ldconfig
|
|
|
|
%post -n libavfilter8 -p /sbin/ldconfig
|
|
|
|
%postun -n libavfilter8 -p /sbin/ldconfig
|
|
|
|
%post -n libavformat59 -p /sbin/ldconfig
|
|
|
|
%postun -n libavformat59 -p /sbin/ldconfig
|
|
|
|
%post -n libavutil57 -p /sbin/ldconfig
|
|
|
|
%postun -n libavutil57 -p /sbin/ldconfig
|
|
|
|
%post -n libpostproc56 -p /sbin/ldconfig
|
|
|
|
%postun -n libpostproc56 -p /sbin/ldconfig
|
2023-03-13 12:54:46 +01:00
|
|
|
%post -n libswresample4_ff5 -p /sbin/ldconfig
|
|
|
|
%postun -n libswresample4_ff5 -p /sbin/ldconfig
|
2022-07-27 23:49:26 +02:00
|
|
|
%post -n libswscale6 -p /sbin/ldconfig
|
|
|
|
%postun -n libswscale6 -p /sbin/ldconfig
|
2022-01-15 12:15:43 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc Changelog CREDITS README.md
|
|
|
|
%_bindir/*
|
|
|
|
%_mandir/man1/ff*.1*
|
|
|
|
%_datadir/ffmpeg/
|
2022-07-27 23:49:26 +02:00
|
|
|
|
|
|
|
%files -n libavcodec59
|
2022-01-15 12:15:43 +01:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2022-07-27 23:49:26 +02:00
|
|
|
%_libdir/libavcodec.so.*
|
2022-01-15 12:15:43 +01:00
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%files -n libavdevice59
|
2022-01-15 12:15:43 +01:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2022-07-27 23:49:26 +02:00
|
|
|
%_libdir/libavdevice.so.*
|
2022-01-15 12:15:43 +01:00
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%files -n libavfilter8
|
2022-01-15 12:15:43 +01:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2022-07-27 23:49:26 +02:00
|
|
|
%_libdir/libavfilter.so.*
|
2022-01-15 12:15:43 +01:00
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%files -n libavformat59
|
2022-01-15 12:15:43 +01:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2022-07-27 23:49:26 +02:00
|
|
|
%_libdir/libavformat.so.*
|
2022-01-15 12:15:43 +01:00
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%files -n libavutil57
|
2022-01-15 12:15:43 +01:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2022-07-27 23:49:26 +02:00
|
|
|
%_libdir/libavutil.so.*
|
2022-01-15 12:15:43 +01:00
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%files -n libpostproc56
|
2022-01-15 12:15:43 +01:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2022-07-27 23:49:26 +02:00
|
|
|
%_libdir/libpostproc.so.*
|
2022-01-15 12:15:43 +01:00
|
|
|
|
2023-03-13 12:54:46 +01:00
|
|
|
%files -n libswresample4_ff5
|
2022-01-15 12:15:43 +01:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2022-07-27 23:49:26 +02:00
|
|
|
%_libdir/libswresample.so.*
|
2022-01-15 12:15:43 +01:00
|
|
|
|
2022-07-27 23:49:26 +02:00
|
|
|
%files -n libswscale6
|
2022-01-15 12:15:43 +01:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2022-07-27 23:49:26 +02:00
|
|
|
%_libdir/libswscale.so.*
|
2022-01-15 12:15:43 +01:00
|
|
|
|
|
|
|
%files libavcodec-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libavcodec/
|
|
|
|
%_libdir/libavcodec.so
|
|
|
|
%_libdir/pkgconfig/libavcodec.pc
|
|
|
|
%_mandir/man3/libavcodec.3*
|
|
|
|
|
|
|
|
%files libavdevice-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libavdevice/
|
|
|
|
%_libdir/libavdevice.so
|
|
|
|
%_libdir/pkgconfig/libavdevice.pc
|
|
|
|
%_mandir/man3/libavdevice.3*
|
|
|
|
|
|
|
|
%files libavfilter-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libavfilter/
|
|
|
|
%_libdir/libavfilter.so
|
|
|
|
%_libdir/pkgconfig/libavfilter.pc
|
|
|
|
%_mandir/man3/libavfilter.3*
|
|
|
|
|
|
|
|
%files libavformat-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libavformat/
|
|
|
|
%_libdir/libavformat.so
|
|
|
|
%_libdir/pkgconfig/libavformat.pc
|
|
|
|
%_mandir/man3/libavformat.3*
|
|
|
|
|
|
|
|
%files libavutil-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libavutil/
|
|
|
|
%_libdir/libavutil.so
|
|
|
|
%_libdir/pkgconfig/libavutil.pc
|
|
|
|
%_mandir/man3/libavutil.3*
|
|
|
|
|
|
|
|
%files libpostproc-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libpostproc/
|
|
|
|
%_libdir/libpostproc.so
|
|
|
|
%_libdir/pkgconfig/libpostproc.pc
|
|
|
|
|
|
|
|
%files libswresample-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libswresample/
|
|
|
|
%_libdir/libswresample.so
|
|
|
|
%_libdir/pkgconfig/libswresample.pc
|
|
|
|
%_mandir/man3/libswresample.3*
|
|
|
|
|
|
|
|
%files libswscale-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libswscale/
|
|
|
|
%_libdir/libswscale.so
|
|
|
|
%_libdir/pkgconfig/libswscale.pc
|
|
|
|
%_mandir/man3/libswscale.3*
|
|
|
|
|
|
|
|
%files private-devel
|
|
|
|
%_includedir/ffmpeg/private/
|
|
|
|
|
2023-01-27 16:43:19 +01:00
|
|
|
%else # "flavor" == "ffmpeg-5-mini"
|
|
|
|
|
|
|
|
%define _name ffmpeg
|
|
|
|
|
|
|
|
Name: ffmpeg-5-mini
|
|
|
|
Version: 5.1.2
|
|
|
|
Release: 0
|
|
|
|
Summary: Set of libraries for working with various multimedia formats
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
URL: https://ffmpeg.org/
|
|
|
|
#Git-Clone: git://source.ffmpeg.org/ffmpeg
|
|
|
|
Source: https://www.ffmpeg.org/releases/%_name-%version.tar.xz
|
|
|
|
Source2: https://www.ffmpeg.org/releases/%_name-%version.tar.xz.asc
|
2023-01-28 17:51:36 +01:00
|
|
|
Source3: ffmpeg-5-rpmlintrc
|
2023-01-27 16:43:19 +01:00
|
|
|
Source98: http://ffmpeg.org/ffmpeg-devel.asc#/ffmpeg-5.keyring
|
|
|
|
Patch1: ffmpeg-arm6l.diff
|
|
|
|
Patch2: ffmpeg-new-coder-errors.diff
|
|
|
|
Patch3: ffmpeg-codec-choice.diff
|
|
|
|
Patch4: ffmpeg-4.2-dlopen-fdk_aac.patch
|
|
|
|
Patch5: work-around-abi-break.patch
|
|
|
|
Patch9: ffmpeg-4.4-CVE-2020-22046.patch
|
|
|
|
Patch10: ffmpeg-chromium.patch
|
|
|
|
Patch11: ffmpeg-CVE-2022-3964.patch
|
|
|
|
Patch91: ffmpeg-dlopen-openh264.patch
|
2023-01-31 17:09:31 +01:00
|
|
|
Patch92: no-vk-video-decoding.patch
|
2023-03-13 12:54:46 +01:00
|
|
|
Patch93: soname.diff
|
2023-01-27 16:43:19 +01:00
|
|
|
BuildRequires: c_compiler
|
2023-02-27 10:45:13 +01:00
|
|
|
Requires: this-is-only-for-build-envs
|
2023-01-27 16:43:19 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
FFmpeg is a multimedia framework.
|
|
|
|
This package merely builds the API for the sake of other packages.
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
# Even with mini, we want ff5 libs to be coinstallable to ff4-devel(!),
|
|
|
|
# hence mini-libs and mini-devel are still separated.
|
|
|
|
Summary: Feature-reduced build of FFmpeg, a multimedia framework
|
|
|
|
Conflicts: libavcodec59
|
|
|
|
Conflicts: libavdevice59
|
|
|
|
Conflicts: libavfilter8
|
|
|
|
Conflicts: libavformat59
|
|
|
|
Conflicts: libavutil57
|
|
|
|
Conflicts: libpostproc56
|
2023-03-13 12:54:46 +01:00
|
|
|
Conflicts: libswresample4_ff5
|
2023-01-27 16:43:19 +01:00
|
|
|
Conflicts: libswscale6
|
2023-02-27 10:45:13 +01:00
|
|
|
Requires: this-is-only-for-build-envs
|
2023-01-27 16:43:19 +01:00
|
|
|
|
|
|
|
%description libs
|
|
|
|
FFmpeg is a multimedia framework.
|
|
|
|
This package contains a cut-down version for building other packages.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files for feature-reduced FFmpeg build
|
|
|
|
Provides: libavcodec-devel = %version-%release
|
|
|
|
Conflicts: libavcodec-devel
|
|
|
|
Provides: libavdevice-devel = %version-%release
|
|
|
|
Conflicts: libavdevice-devel
|
|
|
|
Provides: libavfilter-devel = %version-%release
|
|
|
|
Conflicts: libavfilter-devel
|
|
|
|
Provides: libavformat-devel = %version-%release
|
|
|
|
Conflicts: libavformat-devel
|
|
|
|
Provides: libavutil-devel = %version-%release
|
|
|
|
Conflicts: libavutil-devel
|
|
|
|
Provides: libpostproc-devel = %version-%release
|
|
|
|
Conflicts: libpostproc-devel
|
|
|
|
Provides: libswresample-devel = %version-%release
|
|
|
|
Conflicts: libswresample-devel
|
|
|
|
Provides: libswscale-devel = %version-%release
|
|
|
|
Conflicts: libswscale-devel
|
|
|
|
Requires: %name-libs = %version-%release
|
2023-02-27 10:45:13 +01:00
|
|
|
Requires: this-is-only-for-build-envs
|
2023-01-27 16:43:19 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
FFmpeg is a multimedia framework.
|
|
|
|
This package contains the headers accompanying %name.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %_name-%version
|
|
|
|
|
|
|
|
%build
|
|
|
|
%define _lto_cflags %nil
|
|
|
|
CFLAGS="%optflags" \
|
|
|
|
./configure \
|
|
|
|
--prefix="%_prefix" \
|
|
|
|
--libdir="%_libdir" \
|
|
|
|
--shlibdir="%_libdir" \
|
|
|
|
--incdir="%_includedir/ffmpeg" \
|
|
|
|
--extra-cflags="%optflags" \
|
|
|
|
--optflags="%optflags" \
|
|
|
|
--disable-htmlpages --disable-stripping --disable-x86asm \
|
|
|
|
--disable-static --enable-shared --enable-pic \
|
|
|
|
--enable-gpl --enable-version3 \
|
|
|
|
--disable-muxers --disable-demuxers \
|
|
|
|
--disable-encoders --disable-decoders \
|
|
|
|
--disable-programs --disable-doc
|
|
|
|
for i in MPEG4 H263 H264 HEVC VC1; do
|
|
|
|
grep -q "#define CONFIG_${i}_DECODER 0" config_components.h
|
|
|
|
done
|
|
|
|
cat config.h
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot"
|
|
|
|
%make_install
|
|
|
|
rm -Rf "$b/%_datadir/ffmpeg/examples"
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%_libdir/libavcodec.so.*
|
|
|
|
%_libdir/libavdevice.so.*
|
|
|
|
%_libdir/libavfilter.so.*
|
|
|
|
%_libdir/libavformat.so.*
|
|
|
|
%_libdir/libavutil.so.*
|
|
|
|
%_libdir/libpostproc.so.*
|
|
|
|
%_libdir/libswresample.so.*
|
|
|
|
%_libdir/libswscale.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
|
|
|
%_libdir/*.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
%_includedir/ffmpeg/
|
|
|
|
|
|
|
|
%endif # "flavor" == "ffmpeg-5-mini"
|
|
|
|
|
2022-01-15 12:15:43 +01:00
|
|
|
%changelog
|