EditMe - corresponding source for the bundled FFmpeg executables ================================================================= Generated by scripts/fetch-or-build-ffmpeg.sh. Do not edit by hand; edit the script. Covers: bin/darwin-arm64/ffmpeg and bin/darwin-arm64/ffprobe (arm64, macOS 14.0+) Licence of these two executables as built: GNU LGPL version 2.1 or later (no --enable-gpl, no --enable-nonfree, no --enable-version3). They are separate, unrenamed programs built from the unmodified upstream releases listed below. No patches are applied to any component. FreeType, HarfBuzz, FriBidi, libass and zimg are linked statically into both executables; everything else they use is a macOS system library, linked dynamically and not redistributed. HOW TO REBUILD -------------- On an Apple Silicon Mac with Xcode (or the Command Line Tools) and brew install pkgconf meson ninja autoconf automake libtool run, from a checkout of the EditMe repository: scripts/fetch-or-build-ffmpeg.sh --clean The script downloads exactly the archives below, verifies each SHA-256, builds with the configure lines below, and writes the two executables to bin/darwin-arm64/. To change or replace a library (your right under the LGPL), edit the source under .build/ffmpeg/src/ or the pins at the top of the script, then run the script again. Common build environment for every component: MACOSX_DEPLOYMENT_TARGET=14.0 CC=clang CXX=clang++ (Apple clang from Xcode) PKG_CONFIG_LIBDIR=$PREFIX/lib/pkgconfig (pkg-config sees ONLY our own prefix) PKG_CONFIG_PATH, CPATH, LIBRARY_PATH, CPPFLAGS and friends unset PATH=/usr/bin:/bin:/usr/sbin:/sbin plus only these Homebrew build tools: pkg-config meson ninja autoconf autoheader autom4te autoreconf automake aclocal glibtoolize Libraries: CFLAGS="-O2 -mmacosx-version-min=14.0" CXXFLAGS="-O2 -mmacosx-version-min=14.0" LDFLAGS="-mmacosx-version-min=14.0" $PREFIX = /.build/ffmpeg/prefix COMPONENTS ---------- 1. FFmpeg 9.1 Source: https://ffmpeg.org/releases/ffmpeg-9.1.tar.xz SHA-256: 1a4d394ae63d190a526cd052eb4415c156b5c5e2df37efab41a7de0b8fde2433 Licence: LGPL-2.1-or-later (licenses/ffmpeg-COPYING.LGPLv2.1.txt, licenses/ffmpeg-LICENSE.md) Role: the programs themselves (ffmpeg, ffprobe, libav* linked statically) Configure: ./configure --prefix=/opt/editme/ffmpeg --arch=arm64 --cc=clang --disable-gpl --disable-nonfree --disable-doc --disable-ffplay --disable-debug --enable-videotoolbox --enable-audiotoolbox --enable-libfreetype --enable-libharfbuzz --enable-libfribidi --enable-libass --enable-libzimg --pkg-config-flags=--static --extra-cflags=-mmacosx-version-min=14.0 --extra-ldflags=-mmacosx-version-min=14.0 Build: make && make install DESTDIR=/.build/ffmpeg/stage Additions to the build-brief section 4.1 configure line, and why: --prefix=/opt/editme/ffmpeg fixed neutral prefix instead of a path inside the build machine's home directory: the configure line is embedded in the binary and printed in every banner. Nothing is installed there (DESTDIR install). --cc=clang pin the compiler (FFmpeg's default name is "gcc"). --extra-cflags / --extra-ldflags=-mmacosx-version-min=14.0 deployment target macOS 14.0. 2. FreeType 2.15.0 Source: https://download.savannah.gnu.org/releases/freetype/freetype-2.15.0.tar.xz SHA-256: 93cd47eb719c325107f2d3cf087d06299e944c3b48a40b55537302304dea1dd5 Licence: FreeType License (FTL), chosen from the FTL / GPL-2.0 dual licence (licenses/freetype-LICENSE.txt, licenses/freetype-FTL.txt) Linking: static Configure: ./configure --prefix=$PREFIX --disable-shared --enable-static --with-zlib=yes --with-bzip2=no --with-png=no --with-harfbuzz=no --with-brotli=no --with-librsvg=no Build: make && make install 3. HarfBuzz 15.2.0 Source: https://github.com/harfbuzz/harfbuzz/releases/download/15.2.0/harfbuzz-15.2.0.tar.xz SHA-256: e2ec49090744383cdbe7df808c1cedaafba06a97be8dc4211fe546ba585f12cb Licence: MIT ("Old MIT") (licenses/harfbuzz-COPYING.txt) Linking: static Configure: meson setup build --prefix=$PREFIX --libdir=lib --buildtype=release --default-library=static --wrap-mode=nofallback -Dfreetype=enabled -Dcoretext=disabled -Dglib=disabled -Dgobject=disabled -Dcairo=disabled -Dchafa=disabled -Dpng=disabled -Dzlib=disabled -Dicu=disabled -Draster=disabled -Dvector=disabled -Dgpu=disabled -Dgpu_demo=disabled -Dsubset=disabled -Dtests=disabled -Dintrospection=disabled -Ddocs=disabled -Dutilities=disabled -Dbenchmark=disabled Build: meson compile -C build && meson install -C build 4. GNU FriBidi 1.0.18 Source: https://github.com/fribidi/fribidi/releases/download/v1.0.18/fribidi-1.0.18.tar.xz SHA-256: 1de5e8073d035388b71d0b2d452b1da1f8caeea8a7702997b401fe1b6250727f Licence: LGPL-2.1-or-later (licenses/fribidi-COPYING.txt) Linking: static Configure: meson setup build --prefix=$PREFIX --libdir=lib --buildtype=release --default-library=static --wrap-mode=nofallback -Ddocs=false -Dbin=false -Dtests=false Build: meson compile -C build && meson install -C build 5. libass 0.17.5 Source: https://github.com/libass/libass/releases/download/0.17.5/libass-0.17.5.tar.xz SHA-256: 2dca25c0e0c837ddf00b52011b3f82cac1e4ddd3ad018227806b0c2288864acc Licence: ISC (licenses/libass-COPYING.txt) Linking: static; font provider CoreText, no fontconfig Configure: ./configure --prefix=$PREFIX --disable-shared --enable-static --disable-fontconfig --enable-coretext --disable-libunibreak Build: make && make install 6. zimg 3.0.6 Source: https://github.com/sekrit-twc/zimg/archive/refs/tags/release-3.0.6.tar.gz (upstream publishes no release tarball; this is the archive of tag release-3.0.6) SHA-256: be89390f13a5c9b2388ce0f44a5e89364a20c1c57ce46d382b1fcc3967057577 Licence: WTFPL version 2 (licenses/zimg-COPYING.txt) Linking: static Configure: LIBTOOLIZE=glibtoolize ./autogen.sh ./configure --prefix=$PREFIX --disable-shared --enable-static STL_LIBS=-lc++ Build: make && make install MACOS SYSTEM LIBRARIES (dynamic, part of the operating system, not redistributed) --------------------------------------------------------------------------------- /usr/lib: libSystem.B, libc++.1, libobjc.A, libz.1, libbz2.1.0, libiconv.2, and libhvf (weak-linked: FreeType's Apple HVF font support, used only on macOS 15.4+ behind a runtime availability check). /System/Library/Frameworks: AppKit, ApplicationServices, AudioToolbox, AVFoundation, CoreAudio, CoreFoundation, CoreGraphics, CoreImage, CoreMedia, CoreServices, CoreText, CoreVideo, Foundation, IOKit, OpenGL, Security, VideoToolbox. The exact list for a given build is the output of otool -L bin/darwin-arm64/ffmpeg bin/darwin-arm64/ffprobe (recorded for the shipped build in docs/verification/S2-ffmpeg.md). NOTES ----- - The FreeType License asks that product documentation credit the FreeType Project: "Portions of this software are copyright (c) The FreeType Project (www.freetype.org). All rights reserved." with taken from the FreeType version in use (see licenses/freetype-FTL.txt). - Keep the six archives (cached in .build/ffmpeg/dl/ after a build) and publish them together with this file and scripts/fetch-or-build-ffmpeg.sh next to the download, so the source offer does not depend on upstream URLs staying alive.