aboutsummaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg/Makefile
Commit message (Collapse)AuthorAge
* ffmpeg: add V4L2 supportÁlvaro Fernández Rojas2024-01-29
| | | | | | | Enable V4L2 support on ffmpeg-full package. Tested using V4L2 Raspberry Pi 4 encoder/decoder. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* ffmpeg: fix compilation error of ffmpeg-customJan Kratochvil2023-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #12320 After plain enable of libffmpeg-custom and ffmpeg-custom which adds: - CONFIG_PACKAGE_libbz2=m - CONFIG_PACKAGE_libffmpeg-custom=m - CONFIG_FFMPEG_CUSTOM_GPL=y - CONFIG_PACKAGE_zlib=m - CONFIG_PACKAGE_ffmpeg-custom=m I get on v22.03.5 compilation error: ``` cp -fpR /.../openwrt-git/build_dir/target-mips_24kc_musl/ffmpeg-custom/ffmpeg-5.1/ipkg-install/usr/bin/ffmpeg /.../openwrt-git/build_dir/target-mips_24kc_musl/ffmpeg-custom/ffmpeg-5.1/ipkg-mips_24kc/ffmpeg-custom/usr/bin/ cp: cannot stat '/.../openwrt-git/build_dir/target-mips_24kc_musl/ffmpeg-custom/ffmpeg-5.1/ipkg-install/usr/bin/ffmpeg': No such file or directory make[2]: *** [Makefile:756: /.../openwrt-git/bin/packages/mips_24kc/packages/ffmpeg-custom_5.1-1_mips_24kc.ipk] Error 1 ``` It is because configure is missing `ffmpeg` in its `Programs:` section: ``` ( cd /.../openwrt-git/build_dir/target-mips_24kc_musl/ffmpeg-custom/ffmpeg-5.1; CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/.../openwrt-git/build_dir/target-mips_24kc_musl/ffmpeg-custom/ffmpeg-5.1=ffmpeg-5.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/.../openwrt-git/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/usr/include -I/.../openwrt-git/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/include/fortify -I/.../openwrt-git/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/include -DPIC -fpic" LDFLAGS="-L/.../openwrt-git/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/usr/lib -L/.../openwrt-git/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib -znow -zrelro" ./configure --enable-cross-compile --cross-prefix="mips-openwrt-linux-musl-" --arch="mips" --cpu=24kc --target-os=linux --prefix="/usr" --pkg-config="pkg-config" --enable-shared --enable-static --enable-pthreads --enable-zlib --disable-doc --disable-debug --disable-lzma --disable-vaapi --disable-vdpau --disable-outdevs --disable-altivec --disable-vsx --disable-power8 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-fast-unaligned --disable-runtime-cpudetect --disable-x86asm --enable-small --enable-gpl --disable-programs --disable-avfilter --disable-swresample --disable-swscale --disable-everything --disable-postproc ) install prefix /usr source path . C compiler mips-openwrt-linux-musl-gcc C library host C compiler gcc host C library glibc ARCH mips (24kc) big-endian yes runtime cpu detection no MIPS FPU enabled no MIPS DSP R1 enabled no MIPS DSP R2 enabled no MIPS MSA enabled no LOONGSON MMI enabled no debug symbols no strip symbols yes optimize for size yes optimizations yes static yes shared yes postprocessing support no network support yes threading support pthreads safe bitstream reader yes texi2html enabled no perl enabled yes pod2man enabled yes makeinfo enabled yes makeinfo supports HTML no xmllint enabled yes External libraries: alsa iconv bzlib zlib External libraries providing hardware acceleration: cuda_llvm v4l2_m2m Libraries: avcodec avformat avdevice avutil Programs: Enabled decoders: Enabled encoders: Enabled hwaccels: Enabled parsers: Enabled demuxers: Enabled muxers: Enabled protocols: Enabled filters: Enabled bsfs: Enabled indevs: Enabled outdevs: License: GPL version 2 or later ``` Signed-off-by: Jan Kratochvil <jan@jankratochvil.net>
* ffmpeg: bump PKG_RELEASEJan Kratochvil2023-10-03
| | | | | | Suggested by @neheb. Signed-off-by: Jan Kratochvil <jan@jankratochvil.net>
* ffmpeg: Add avi muxerJan Kratochvil2023-10-03
| | | | | | | Otherwise one cannot produce *.avi containers needed for some H.264 camera codecs. Signed-off-by: Jan Kratochvil <jan@jankratochvil.net>
* ffmpeg: fix assembling with binutils v2.41Oskari Rauta2023-09-23
| | | | | | | | | | | | | | | | | fix addresses issue when building ffmpeg with binutils v2.41 that is documented here: https://trac.ffmpeg.org/ticket/10405 Issue about build failure is available here: https://github.com/openwrt/packages/issues/22170 Remarks: Patch is merged to ffmpeg upstream and will be included in next release of ffmpeg, so patch applies only to current version and is removed when package is updated to next version of ffmpeg. Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com> Co-authored-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* ffmpeg: update to version 5.1.3Josef Schlehofer2023-09-17
| | | | | | | | | | | Fixes CVEs: CVE-2022-3964 [1] CVE-2022-3965 [2] [1] https://nvd.nist.gov/vuln/detail/CVE-2022-3964 [2] https://nvd.nist.gov/vuln/detail/CVE-2022-3965 Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* ffmpeg: libffmpeg-full package should provide libffmpeg package, tooJosef Schlehofer2022-11-09
| | | | | | | | | The previous solution overwrote the provide from ``define Package/libffmpeg/Default``, but that's not what was wanted. Thus libffmpeg-full should provide three packages libffmpeg, libffmpeg-mini and libffmpeg-audio-dec Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* ffmpeg: add conflicts and providesJosef Schlehofer2022-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Motivation of this change is that full variants provides the mini variant and as well audio-dec package, thus you can not install both as it fails with the following output: Collected errors: * check_data_file_clashes: Package libffmpeg-audio-dec wants to install file /usr/lib/libavcodec.so.58 But that file is already provided by package * libffmpeg-full * check_data_file_clashes: Package libffmpeg-audio-dec wants to install file /usr/lib/libavcodec.so.58.91.100 But that file is already provided by package * libffmpeg-full * check_data_file_clashes: Package libffmpeg-audio-dec wants to install file /usr/lib/libavdevice.so.58 But that file is already provided by package * libffmpeg-full * check_data_file_clashes: Package libffmpeg-audio-dec wants to install file /usr/lib/libavdevice.so.58.10.100 But that file is already provided by package * libffmpeg-full * check_data_file_clashes: Package libffmpeg-audio-dec wants to install file /usr/lib/libavformat.so.58 But that file is already provided by package * libffmpeg-full * check_data_file_clashes: Package libffmpeg-audio-dec wants to install file /usr/lib/libavformat.so.58.45.100 But that file is already provided by package * libffmpeg-full * check_data_file_clashes: Package libffmpeg-audio-dec wants to install file /usr/lib/libavutil.so.56 But that file is already provided by package * libffmpeg-full * check_data_file_clashes: Package libffmpeg-audio-dec wants to install file /usr/lib/libavutil.so.56.51.100 But that file is already provided by package * libffmpeg-full * opkg_install_cmd: Cannot install package libffmpeg-audio-dec. Let's change it to: Installing libffmpeg-audio-dec (4.3.4-1) to root... Collected errors: * check_conflicts_for: The following packages conflict with libffmpeg-audio-dec: * check_conflicts_for: libffmpeg-full * * opkg_install_cmd: Cannot install package libffmpeg-audio-dec. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* ffmpeg: update to 5.1.2John Audia2022-09-25
| | | | | | Bump to latest upstream version Signed-off-by: John Audia <therealgraysky@proton.me>
* ffmpeg: update to 5.1.1John Audia2022-09-08
| | | | | | Bump to latest upstream version Signed-off-by: John Audia <therealgraysky@proton.me>
* ffmpeg: update to 5.1John Audia2022-07-28
| | | | | | | | | | | | | | | Bump to latest upstream version, manually rebased: 050-glibc.patch Tested using: ffmpeg -f lavfi -i testsrc=duration=10:size=1280x720:rate=30 testsrc.mpg Resulting mpg was good. Build system: x86_64 Build-tested: bcm2711/RPi4B Run-tested: bcm2711/RPi4B Signed-off-by: John Audia <therealgraysky@proton.me>
* ffmpeg: update to 5.0.1John Audia2022-05-02
| | | | | | | | | | | | | | | | | | Bump to latest upstream version, patches automatically rebased. Removed upstreamed: 060-configure-link-to-libatomic-when-its-present.patch Tested using: ffmpeg -f lavfi -i testsrc=duration=10:size=1280x720:rate=30 testsrc.mpg Resulting mpg was good. Build system: x86_64 Build-tested: bcm2711/RPi4B Run-tested: bcm2711/RPi4B Signed-off-by: John Audia <graysky@archlinux.us>
* ffmpeg: update to 5.0John Audia2022-03-02
| | | | | | | | | | | | | | | | | | | | Bump to latest upstream version. Manually rebased: 030-h264-mips.patch Backported: FFmpeg/FFmpeg/commit/2f0a214a6202516b4dda2bb22b6b3ac20e465d6d Tested using: ffmpeg -f lavfi -i testsrc=duration=10:size=1280x720:rate=30 testsrc.mpg Resulting mpg was good. Build system: x86_64 Build-tested: bcm2711/RPi4B Run-tested: bcm2711/RPi4B Signed-off-by: John Audia <graysky@archlinux.us>
* ffmpeg: update to version 4.3.3Josef Schlehofer2022-01-29
| | | | Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* ffmpeg: enable parallel buildBernd Kuhls2021-03-14
| | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
* ffmpeg: enable parallel buildBernd Kuhls2021-02-28
| | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
* ffmpeg: update to 4.3.2Bernd Kuhls2021-02-28
| | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
* ffmpeg: update to 4.3.1Ian Leonard2020-08-14
| | | | Signed-off-by: Ian Leonard <antonlacon@gmail.com>
* ffmpeg: update to 4.3Rosen Penev2020-06-25
| | | | | | Remove upstreamed patches. Refreshed other ones. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* ffmpeg: update to 4.2.3Rosen Penev2020-06-06
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* ffmpeg: fix compilation with glibcRosen Penev2020-05-19
| | | | | | | | | No idea why. Patch submitted upstream: https://patchwork.ffmpeg.org/project/ffmpeg/patch/20200503090023.29418-1-rosenp@gmail.com/ Signed-off-by: Rosen Penev <rosenp@gmail.com>
* treewide: Enable VFP/NEON optimizations for aarch64Jeffery To2020-05-12
| | | | | | | | For speexdsp, support for NEON on aarch64 was added in 1.2.0[1]. [1]: https://github.com/xiph/speexdsp/pull/8 Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* treewide: Update ARM NEON/VFP detectionJeffery To2020-05-11
| | | | | | | | | | With openwrt/openwrt@8dcc1087602e2dd606e4f6e81a06aee62cfd4f4c, the ARM FPU compiler options are no longer part of CONFIG_TARGET_OPTIMIZATION. This updates various packages that look for NEON/VFP support to search CONFIG_CPU_TYPE instead. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* ffmpeg: drop call to disable PATENTED_ENCODERSIan Leonard2020-04-28
| | | | | | | | Presently, this attempts to disable atrac3, h264, hevc and vc1. These encoders don't exist or are done through other programs (eg libx264). Handling of those other programs is done elsewhere. Signed-off-by: Ian Leonard <antonlacon@gmail.com>
* ffmpeg: add upstream patches fixing MIPS compilationRosen Penev2020-04-28
| | | | | | Removed the Makefile references. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* ffmpeg: don't provide libavresampleIan Leonard2020-03-31
| | | | | | | libavresample has bene deprecated for a number of years. Its replacement is libswresample. Signed-off-by: Ian Leonard <antonlacon@gmail.com>
* ffmpeg: enable gnutls support in libffmpeg-fullIan Leonard2020-03-31
| | | | | | | | | | | | Provides access to services requiring a secure connection. Chosen over openssl for license reason (can't redistribute). To my knowledge, libressl will have the same issue. mbed-tls is the only other ssl/tls provider, and this package is complicated enough. Signed-off-by: Ian Leonard <antonlacon@gmail.com>
* ffmpeg: update to 4.2.2Ian Leonard2020-03-31
| | | | | | | | Drop upstreamed libfdk-aac patches. ffserver was removed in 4.0. ffmpeg does not have a replacement. Signed-off-by: Ian Leonard <antonlacon@gmail.com>
* ffmpeg: add dependency to fdk-aac for ffmpeg-fullRosen Penev2020-03-22
| | | | | | | | Since getting rid of the patented line, it seems fdk-aac is now getting enabled for -full, causing a missing dependency. OTOH, fdk-aac can only be enabled if x264 is not. So add a ! dependency for it. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* ffmpeg: do not list AAC as patentedRosen Penev2020-03-21
| | | | | | | Both libraries in the tree (fdk-aac and faad) have patented functionality disabled when CONFIG_BUILD_PATENTED is off. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* ffmpeg: disable x86 asm for old CPU typesRosen Penev2020-02-16
| | | | | | | | | | | | This is a workaround for NASM being totally broken. I have two patches, one for master and another for 19.07 that upstream is not merging. https://patchwork.ozlabs.org/patch/1221696/ https://patchwork.ozlabs.org/patch/1221697/ Signed-off-by: Rosen Penev <rosenp@gmail.com>
* ffmpeg: update to 3.4.7Ian Leonard2019-12-12
| | | | Signed-off-by: Ian Leonard <antonlacon@gmail.com>
* ffmpeg: Fix fdkaac patchesRosen Penev2019-10-14
| | | | | | | The patch created patch files in the ffmpeg build directory, which did absolutely nothing. Properly backported them. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* treewide: Use default PKG_BUILD_DIR when possibleJeffery To2019-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes lines that set PKG_BUILD_DIR when the set value is no different from the default value. Specifically, the line is removed if the assigned value is: * $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) The default PKG_BUILD_DIR was updated[1] to incorporate BUILD_VARIANT if it is set, so now this is identical to the default value. * $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR) if PKG_SOURCE_SUBDIR is set to $(PKG_NAME)-$(PKG_VERSION), making it the same as the previous case * $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) This is the same as the default PKG_BUILD_DIR when there is no BUILD_VARIANT. * $(BUILD_DIR)/[name]-$(PKG_VERSION) where [name] is a string that is identical to PKG_NAME [1]: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e545fac8d968864a965edb9e50c6f90940b0a6c9 Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* ffmpeg: Fix pkgconfig files to be more cross compile friendlyRosen Penev2019-09-28
| | | | | | | | | | | | | | | | | | | | Before: prefix=/usr exec_prefix=${prefix} libdir=/usr/lib includedir=/usr/include After: prefix=/usr exec_prefix=/usr libdir=${exec_prefix}/lib includedir=${prefix}/include Numbered the other patch file. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* treewide: Change .*GPL.*+ licenses to SPDX compatible identifierSven Eckelmann2019-09-10
| | | | | | | | The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL licenses. But a lot of packages did use a different, non-SPDX style with a "+" at the end instead of "-or-later". Signed-off-by: Sven Eckelmann <sven@narfation.org>
* ffmpeg: install ffserver and ffprobe when using custom versionsIan Leonard2019-06-07
| | | | Signed-off-by: Ian Leonard <antonlacon@gmail.com>
* ffmpeg: update to 3.4.6Ian Leonard2019-04-08
| | | | Signed-off-by: Ian Leonard <antonlacon@gmail.com>
* ffmpeg: disable assembly on MIPSIan Leonard2019-02-07
| | | | | | | | | | | | | | | Disable use of assembly on MIPS to allow it to build. MIPS is not expected to be high performance in OpenWrt, and this allows it to still be used for media identification as updated versions of ffmpeg are brought in. The error is in libavcodec/mips/aacdec_mips.c: In function 'imdct_and_windowing_mips' regarding: 'asm' has impossible constraints in multiple locations. Signed-off-by: Ian Leonard <antonlacon@gmail.com>
* ffmpeg: update to 3.4.5Ian Leonard2019-02-07
| | | | Signed-off-by: Ian Leonard <antonlacon@gmail.com>
* ffmpeg: Add choices to libffmpeg-custom to select and build CLI programsTed Hess2018-11-11
| | | | | | Add postproc to libffmpeg-custom if x264 selected Signed-off-by: Ted Hess <thess@kitschensync.net>
* ffmpeg: Resolve libx264, BUILD_PATENTED anomaliesTed Hess2018-11-11
| | | | | | | libx264 will be included in both hard & soft float libffmpeg-full builds if selected and BUILD_PATENTED=y. Otherwise, it is not included in libffmpeg-full Signed-off-by: Ted Hess <thess@kitschensync.net>
* ffmpeg: Resolve hard/float builds with work-around dependenciesTed Hess2018-11-09
| | | | | | | | | | Hard float includes: libx264, mp3lame Soft float includes: shine (mp3 encoder) fdk-aac will not be available in libffmpeg-full due to incompatible license with libx264. Custom builds can override licensing restrictions but results may not be re-distributable. Signed-off-by: Ted Hess <thess@kitschensync.net>
* ffmpeg: Configuration fixes for optional codec librariesTed Hess2018-10-04
| | | | Signed-off-by: Ted Hess <thess@kitschensync.net>
* ffmpeg: pack libpostproc for hard float archs onlyAlexander Ryzhov2018-09-10
| | | | Signed-off-by: Alexander Ryzhov <github@ryzhov-al.ru>
* ffmpeg: Add CPE ID for proper CVE trackingRosen Penev2018-08-19
| | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* ffmpeg: Add build overrides for some specific CPUs: Octeon, X86 and 24kf.Ted Hess2018-08-15
| | | | | | | | Octeon: Rename octeonplus to oction+ MIPS 24kf: Inline ASM fails to build (unknown reason) X86: Configure finds NASM and assumes YASM if name explictly set (wrong switches) Signed-off-by: Ted Hess <thess@kitschensync.net>
* ffmpeg: Add cpu_type to configure opts. Upgrade to 3.2.12Ted Hess2018-08-12
| | | | Signed-off-by: Ted Hess <thess@kitschensync.net>
* ffmpeg/libx264: Replacing YASM with NASM and fixing ffmpeg/x264 module ↵Ted Hess2018-06-28
| | | | | | | | dependency Both libraries on X86 platforms require NASM instead of YASM going forward. Signed-off-by: Ted Hess <thess@kitschensync.net>
* ffmpeg: libffmpeg-full to lgpl; include fdk-aac supportIan Leonard2018-04-22
| | | | | | | | | | | Change libffmpeg-full to, by default, use the LGPL license. This allows libffmpeg-full to gain support for libfdk-aac. When libx264 is selected, this changes to GPL, and libfdk-aac support is lost. Libx264 support is prioritized when both are selected, which maintains the status quo of what happens now. Signed-off-by: Ian Leonard <antonlacon@gmail.com>