From 2aa0b21bf3f99d518949fc7c3699d43202028e6d Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Tue, 9 Nov 2021 00:04:26 +0100 Subject: [PATCH] Update FFmpeg with AV1 and rist support Adds libaom for AV1 encoding support as well as librist as additional streaming protocol. Also adds FFmpeg patches for HLS streaming and additional CPU levels for libaom. Meson was added to list of build-time dependencies as librist requires it. --- .github/workflows/main.yml | 49 +++- CI/build-deps-macos.sh | 6 +- CI/include/Brewfile | 2 + CI/include/build_support.sh | 56 +++-- CI/include/build_support_macos.sh | 2 + CI/macos/build_ffmpeg.sh | 12 +- CI/macos/build_libaom.sh | 111 +++++++++ CI/macos/build_librist.sh | 103 ++++++++ CI/macos/build_mbedtls.sh | 1 + CI/macos/patches/librist.patch | 45 ++++ CI/patches/FFmpeg-4.4.1-OBS.patch | 22 ++ CI/patches/FFmpeg-9010.patch | 14 ++ README.md | 22 +- licenses/aom/AUTHORS | 286 ++++++++++++++++++++++ licenses/aom/LICENSE | 27 ++ licenses/aom/PATENTS | 108 ++++++++ licenses/aom/fastfeat/LICENSE | 30 +++ licenses/aom/libwebm/AUTHORS.TXT | 4 + licenses/aom/libwebm/LICENSE.TXT | 30 +++ licenses/aom/libwebm/PATENTS.TXT | 23 ++ licenses/aom/libyuv/LICENSE | 29 +++ licenses/aom/vector/LICENSE | 19 ++ licenses/aom/x86inc/LICENSE | 18 ++ licenses/lame/mpglib/AUTHORS | 16 ++ licenses/lame/mpglib/README | 26 ++ licenses/libpng/gregbook/COPYING | 340 ++++++++++++++++++++++++++ licenses/libpng/gregbook/LICENSE | 50 ++++ licenses/libpng/pngminus/LICENSE.txt | 22 ++ licenses/librist/COPYING | 23 ++ licenses/libvpx/libwebm/AUTHORS.TXT | 4 + licenses/libvpx/libwebm/LICENSE.TXT | 30 +++ licenses/libvpx/libwebm/PATENTS.TXT | 23 ++ licenses/libvpx/libyuv/LICENSE | 29 +++ licenses/libvpx/x86inc/LICENSE | 18 ++ licenses/opus/LICENSE_PLEASE_READ.txt | 22 ++ utils/build_script_generator.py | 2 + 36 files changed, 1581 insertions(+), 43 deletions(-) create mode 100755 CI/macos/build_libaom.sh create mode 100755 CI/macos/build_librist.sh create mode 100644 CI/macos/patches/librist.patch create mode 100644 CI/patches/FFmpeg-4.4.1-OBS.patch create mode 100644 CI/patches/FFmpeg-9010.patch create mode 100644 licenses/aom/AUTHORS create mode 100644 licenses/aom/LICENSE create mode 100644 licenses/aom/PATENTS create mode 100644 licenses/aom/fastfeat/LICENSE create mode 100644 licenses/aom/libwebm/AUTHORS.TXT create mode 100644 licenses/aom/libwebm/LICENSE.TXT create mode 100644 licenses/aom/libwebm/PATENTS.TXT create mode 100644 licenses/aom/libyuv/LICENSE create mode 100644 licenses/aom/vector/LICENSE create mode 100644 licenses/aom/x86inc/LICENSE create mode 100644 licenses/lame/mpglib/AUTHORS create mode 100644 licenses/lame/mpglib/README create mode 100644 licenses/libpng/gregbook/COPYING create mode 100644 licenses/libpng/gregbook/LICENSE create mode 100644 licenses/libpng/pngminus/LICENSE.txt create mode 100644 licenses/librist/COPYING create mode 100644 licenses/libvpx/libwebm/AUTHORS.TXT create mode 100644 licenses/libvpx/libwebm/LICENSE.TXT create mode 100644 licenses/libvpx/libwebm/PATENTS.TXT create mode 100644 licenses/libvpx/libyuv/LICENSE create mode 100644 licenses/libvpx/x86inc/LICENSE create mode 100644 licenses/opus/LICENSE_PLEASE_READ.txt diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7a33020e6..673efcfa9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: env: MACOSX_DEPLOYMENT_TARGET_X86_64: '10.13' MACOSX_DEPLOYMENT_TARGET_ARM64: '11.0' - CACHE_REVISION: '05' + CACHE_REVISION: '09' LIBPNG_VERSION: '1.6.37' LIBPNG_HASH: '505e70834d35383537b6491e7ae8641f1a4bed1876dbfe361201fc80868d88ca' LIBOPUS_VERSION: '1.3.1-93-gdfd6c88a' @@ -33,6 +33,8 @@ jobs: LIBVORBIS_HASH: 'b33cc4934322bcbf6efcbacf49e3ca01aadbea4114ec9589d1b1e9d20f72954b' LIBVPX_VERSION: '1.10.0' LIBVPX_HASH: '85803ccbdbdd7a3b03d930187cb055f1353596969c1f92ebec2db839fa4f834a' + LIBAOM_VERSION: '3.2.0' + LIBAOM_HASH: '287164de79516c25c8c84fd544f67752c170082a' LIBX264_VERSION: 'r3059' LIBX264_HASH: 'b684ebe04a6f80f8207a57940a1fa00e25274f81' LIBTHEORA_VERSION: '1.1.1' @@ -43,8 +45,10 @@ jobs: MBEDTLS_HASH: '35d8d87509cd0d002bddbd5508b9d2b931c5e83747d087234cc7ad551d53fe05' LIBSRT_VERSION: '1.4.1' LIBSRT_HASH: 'e80ca1cd0711b9c70882c12ec365cda1ba852e1ce8acd43161a21a04de0cbf14' - FFMPEG_VERSION: '4.2.3' - FFMPEG_HASH: '9df6c90aed1337634c1fb026fb01c154c29c82a64ea71291ff2da9aacb9aad31' + LIBRIST_VERSION: '0.2.6' + LIBRIST_HASH: '88b35b86af1ef3d306f33674f2d9511a27d3ff4ec76f20d3a3b3273b79a4521d' + FFMPEG_VERSION: '4.4.1' + FFMPEG_HASH: 'eadbad9e9ab30b25f5520fbfde99fae4a92a1ae3c0257a8d68569a4651e30e02' SPEEXDSP_VERSION: '1.2.0' SPEEXDSP_HASH: 'd7032f607e8913c019b190c2bccc36ea73fc36718ee38b5cdfc4e4c0a04ce9a4' LIBJANSSON_VERSION: '2.13.1' @@ -104,7 +108,22 @@ jobs: brew bundle --file "CI/include/Brewfile" echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH - FFMPEG_DEP_HASH="$(echo "${{ env.LIBPNG_VERSION }}-${{ env.LIBLAME_VERSION }}-${{ env.LIBOGG_VERSION }}-${{ env.LIBVORBIS_VERSION }}-${{ env.LIBVPX_VERSION }}-${{ env.LIBOPUS_VERSION }}-${{ env.LIBX264_VERSION }}-${{ env.LIBSRT_VERSION }}-${{ env.LIBMBEDTLS_VERSION }}-${{ env.LIBTHEORA_VERSION }}" | sha256sum | cut -d " " -f 1)" + FFMPEG_DEPS=(\ + "${{ env.LIBPNG_VERSION }}" \ + "${{ env.LIBLAME_VERSION }}" \ + "${{ env.LIBOGG_VERSION }}" \ + "${{ env.LIBVORBIS_VERSION }}" \ + "${{ env.LIBVPX_VERSION }}" \ + "${{ env.LIBOPUS_VERSION }}" \ + "${{ env.LIBAOM_VERSION }}" \ + "${{ env.LIBX264_VERSION }}" \ + "${{ env.LIBSRT_VERSION }}" \ + "${{ env.LIBRIST_VERSION }}" \ + "${{ env.MBEDTLS_VERSION }}" \ + "${{ env.LIBTHEORA_VERSION }}" + ) + + FFMPEG_DEP_HASH="$(echo "${FFMPEG_DEPS}" | sha256sum | cut -d " " -f 1)" echo "FFMPEG_DEP_HASH=$FFMPEG_DEP_HASH" >> $GITHUB_ENV - name: 'Restore ffmpeg dependencies from cache' @@ -119,20 +138,22 @@ jobs: ${{ github.workspace }}/macos_build_temp/libogg-${{ env.LIBOGG_VERSION }} ${{ github.workspace }}/macos_build_temp/libvorbis-${{ env.LIBVORBIS_VERSION }} ${{ github.workspace }}/macos_build_temp/libvpx-${{ env.LIBVPX_VERSION }} + ${{ github.workspace }}/macos_build_temp/aom-${{ env.LIBAOM_VERSION }} ${{ github.workspace }}/macos_build_temp/x264-${{ env.LIBX264_VERSION }} ${{ github.workspace }}/macos_build_temp/libtheora-${{ env.LIBTHEORA_VERSION }} ${{ github.workspace }}/macos_build_temp/lame-${{ env.LIBLAME_VERSION }} ${{ github.workspace }}/macos_build_temp/mbedtls-mbedtls-${{ env.MBEDTLS_VERSION }} + ${{ github.workspace }}/macos_build_temp/librist-v${{ env.LIBRIST_VERSION }} ${{ github.workspace }}/macos_build_temp/srt-${{ env.LIBSRT_VERSION }} key: ${{ runner.os }}-${{ env.CACHE_NAME }}-${{ env.FFMPEG_DEP_HASH }} - name: 'Build dependency libpng' if: steps.ffmpeg-deps-cache.outputs.cache-hit != 'true' - run: CI/macos/build_libpng.sh -a ${{ matrix.arch }} + run: CI/macos/build_libpng.sh -s -a ${{ matrix.arch }} - name: 'Install dependency libpng' if: steps.ffmpeg-deps-cache.outputs.cache-hit == 'true' - run: CI/macos/build_libpng.sh -a ${{ matrix.arch }} --install + run: CI/macos/build_libpng.sh -s -a ${{ matrix.arch }} --install - name: 'Build dependency libopus' if: steps.ffmpeg-deps-cache.outputs.cache-hit != 'true' @@ -174,6 +195,14 @@ jobs: if: steps.ffmpeg-deps-cache.outputs.cache-hit == 'true' run: CI/macos/build_libx264.sh -s -a ${{ matrix.arch }} --install + - name: 'Build dependency libaom' + if: steps.ffmpeg-deps-cache.outputs.cache-hit != 'true' + run: CI/macos/build_libaom.sh -s -a ${{ matrix.arch }} + + - name: 'Install dependency libaom' + if: steps.ffmpeg-deps-cache.outputs.cache-hit == 'true' + run: CI/macos/build_libaom.sh -s -a ${{ matrix.arch }} --install + - name: 'Build dependency libtheora' if: steps.ffmpeg-deps-cache.outputs.cache-hit != 'true' run: CI/macos/build_libtheora.sh -s -a ${{ matrix.arch }} @@ -206,6 +235,14 @@ jobs: if: steps.ffmpeg-deps-cache.outputs.cache-hit == 'true' run: CI/macos/build_libsrt.sh -s -a ${{ matrix.arch }} --install + - name: 'Build dependency librist' + if: steps.ffmpeg-deps-cache.outputs.cache-hit != 'true' + run: CI/macos/build_librist.sh -s -a ${{ matrix.arch }} + + - name: 'Install dependency librist' + if: steps.ffmpeg-deps-cache.outputs.cache-hit == 'true' + run: CI/macos/build_librist.sh -s -a ${{ matrix.arch }} --install + - name: 'Restore ffmpeg from cache' id: ffmpeg-cache uses: actions/cache@v2.1.6 diff --git a/CI/build-deps-macos.sh b/CI/build-deps-macos.sh index 76b82cde5..ea0363e66 100755 --- a/CI/build-deps-macos.sh +++ b/CI/build-deps-macos.sh @@ -23,18 +23,19 @@ set -eE _RUN_OBS_BUILD_SCRIPT=TRUE PRODUCT_NAME="obs-deps" REQUIRED_DEPS=( - "macosx " "libpng 1.6.37 505e70834d35383537b6491e7ae8641f1a4bed1876dbfe361201fc80868d88ca" "libopus 1.3.1-93-gdfd6c88a dfd6c88aaa54a03a61434c413e30c217eb98f1d5" "libogg 1.3.5 c4d91be36fc8e54deae7575241e03f4211eb102afb3fc0775fbbc1b740016705" "libvorbis 1.3.7 b33cc4934322bcbf6efcbacf49e3ca01aadbea4114ec9589d1b1e9d20f72954b" "libvpx 1.10.0 85803ccbdbdd7a3b03d930187cb055f1353596969c1f92ebec2db839fa4f834a" + "libaom 3.2.0 287164de79516c25c8c84fd544f67752c170082a" "libx264 r3059 b684ebe04a6f80f8207a57940a1fa00e25274f81" "libtheora 1.1.1 f36da409947aa2b3dcc6af0a8c2e3144bc19db2ed547d64e9171c59c66561c61" "liblame 3.100 ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e" "mbedtls 2.26.0 35d8d87509cd0d002bddbd5508b9d2b931c5e83747d087234cc7ad551d53fe05" "libsrt 1.4.1 e80ca1cd0711b9c70882c12ec365cda1ba852e1ce8acd43161a21a04de0cbf14" - "ffmpeg 4.2.3 9df6c90aed1337634c1fb026fb01c154c29c82a64ea71291ff2da9aacb9aad31" + "librist 0.2.6 88b35b86af1ef3d306f33674f2d9511a27d3ff4ec76f20d3a3b3273b79a4521d" + "ffmpeg 4.4.1 eadbad9e9ab30b25f5520fbfde99fae4a92a1ae3c0257a8d68569a4651e30e02" "speexdsp 1.2.0 d7032f607e8913c019b190c2bccc36ea73fc36718ee38b5cdfc4e4c0a04ce9a4" "libjansson 2.13.1 f4f377da17b10201a60c1108613e78ee15df6b12016b116b6de42209f47a474f" "libluajit 2.1 ec6edc5c39c25e4eb3fca51b753f9995e97215da" @@ -44,7 +45,6 @@ REQUIRED_DEPS=( ## MAIN SCRIPT FUNCTIONS ## obs-deps-build-main() { - QMAKE_QUIET=TRUE CHECKOUT_DIR="$(/usr/bin/git rev-parse --show-toplevel)" BUILD_DIR="${CHECKOUT_DIR}/../obs-prebuilt-dependencies" source "${CHECKOUT_DIR}/CI/include/build_support.sh" diff --git a/CI/include/Brewfile b/CI/include/Brewfile index 4ef029ef5..e6143fd45 100644 --- a/CI/include/Brewfile +++ b/CI/include/Brewfile @@ -1,4 +1,5 @@ brew "nasm" +brew "yasm" brew "gnu-tar" brew "pkg-config" brew "automake" @@ -7,3 +8,4 @@ brew "coreutils" brew "cmake" brew "ccache" brew "ninja" +brew "meson" diff --git a/CI/include/build_support.sh b/CI/include/build_support.sh index 4546f812d..8cc9caf36 100644 --- a/CI/include/build_support.sh +++ b/CI/include/build_support.sh @@ -11,27 +11,39 @@ ## DEFINE UTILITIES ## -status() { - script_output "${COLOR_BLUE}[${PRODUCT_NAME}] ${1}${COLOR_RESET}" -} - -step() { - script_output "${COLOR_GREEN} + ${1}${COLOR_RESET}" -} - -info() { - script_output "${COLOR_ORANGE} + ${1}${COLOR_RESET}" -} - -error() { - echo -e "${COLOR_RED} + ${1}${COLOR_RESET}" -} - -script_output() { - if [ -z "${QUIET}" ]; then - echo -e "${1}" - fi -} +if [ -z "${QUIET}" ]; then + status() { + echo -e "${COLOR_BLUE}[${PRODUCT_NAME}] ${1}${COLOR_RESET}" + } + + step() { + echo -e "${COLOR_GREEN} + ${1}${COLOR_RESET}" + } + + info() { + echo -e "${COLOR_ORANGE} + ${1}${COLOR_RESET}" + } + + error() { + echo -e "${COLOR_RED} + ${1}${COLOR_RESET}" + } +else + status() { + : + } + + step() { + : + } + + info() { + : + } + + error() { + echo -e "${COLOR_RED} + ${1}${COLOR_RESET}" + } +fi exists() { /usr/bin/command -v "$1" >/dev/null 2>&1 @@ -153,7 +165,7 @@ github_fetch() { git config remote.origin.fetch "+refs/heads/master:refs/remotes/origin/master" git config remote.origin.tapOpt --no-tags - if ! git rev-parse -q --verify "${GH_COMMIT}^{commit}"; then + if ! git rev-parse -q --verify "${GH_REF}^{commit}"; then git fetch origin fi diff --git a/CI/include/build_support_macos.sh b/CI/include/build_support_macos.sh index 5a5319ffc..cd860fc5b 100644 --- a/CI/include/build_support_macos.sh +++ b/CI/include/build_support_macos.sh @@ -76,6 +76,8 @@ install_homebrew_deps() { fi brew bundle --file "${CHECKOUT_DIR}/CI/include/Brewfile" ${QUIET:+--quiet} + + check_curl } check_curl() { diff --git a/CI/macos/build_ffmpeg.sh b/CI/macos/build_ffmpeg.sh index b1f4fa101..7aa44dce5 100755 --- a/CI/macos/build_ffmpeg.sh +++ b/CI/macos/build_ffmpeg.sh @@ -11,6 +11,14 @@ # Halt on errors set -eE +_patch_product() { + cd "${PRODUCT_FOLDER}" + + step "Apply patches..." + apply_patch "${CHECKOUT_DIR}/CI/patches/FFmpeg-9010.patch" "97ac6385c2b7a682360c0cfb3e311ef4f3a48041d3f097d6b64f8c13653b6450" + apply_patch "${CHECKOUT_DIR}/CI/patches/FFmpeg-4.4.1-OBS.patch" "710fb5a381f7b68c95dcdf865af4f3c63a9405c305abef55d24c7ab54e90b182" +} + _fixup_ffmpeg_libs() { LIBS=$(find "${BUILD_DIR}/lib" -type f \( -name "libav*.dylib" -o -name "libsw*.dylib" -o -name "libpostproc*.dylib" \)) @@ -67,7 +75,7 @@ _build_product() { step "Configure (x86_64)..." PKG_CONFIG_PATH="${BUILD_DIR}/lib/pkgconfig" ../configure \ - --enable-libx264 --enable-libopus --enable-libvorbis --enable-libvpx --enable-libsrt --enable-libtheora --enable-libmp3lame --enable-version3 --enable-gpl --enable-videotoolbox \ + --enable-libx264 --enable-libopus --enable-libvorbis --enable-libvpx --enable-libsrt --enable-librist --enable-libtheora --enable-libmp3lame --enable-libaom --enable-version3 --enable-gpl --enable-videotoolbox \ --disable-libjack --disable-indev=jack --disable-outdev=sdl --disable-programs --disable-doc \ --enable-cross-compile --enable-shared --disable-static --enable-pthreads \ --shlibdir="${BUILD_DIR}/lib" --pkg-config-flags="--static" --prefix="${BUILD_DIR}" --enable-rpath \ @@ -86,7 +94,7 @@ _build_product() { step "Configure (arm64)..." PKG_CONFIG_PATH="${BUILD_DIR}/lib/pkgconfig" ../configure \ - --enable-libx264 --enable-libopus --enable-libvorbis --enable-libvpx --enable-libsrt --enable-libtheora --enable-libmp3lame --enable-version3 --enable-gpl --enable-videotoolbox \ + --enable-libx264 --enable-libopus --enable-libvorbis --enable-libvpx --enable-libsrt --enable-librist --enable-libtheora --enable-libmp3lame --enable-libaom --enable-version3 --enable-gpl --enable-videotoolbox \ --disable-libjack --disable-indev=jack --disable-outdev=sdl --disable-programs --disable-doc \ --enable-cross-compile --enable-shared --disable-static --enable-pthreads --enable-rpath \ --shlibdir="${BUILD_DIR}/lib" --pkg-config-flags="--static" --prefix="${BUILD_DIR}" \ diff --git a/CI/macos/build_libaom.sh b/CI/macos/build_libaom.sh new file mode 100755 index 000000000..5f2e892e6 --- /dev/null +++ b/CI/macos/build_libaom.sh @@ -0,0 +1,111 @@ +#!/bin/bash + +############################################################################## +# macOS libaom build script +############################################################################## +# +# This script file can be included in build scripts for macOS or run directly +# +############################################################################## + +# Halt on errors +set -eE + +_build_product() { + cd "${PRODUCT_FOLDER}" + + step "Configure ("${ARCH}")..." + if [ "${CURRENT_ARCH}" = "arm64" ]; then + _DISABLE_CPU_DETECT="-DCONFIG_RUNTIME_CPU_DETECT=0" + fi + + cmake -S . -B build_${ARCH} -G Ninja ${CMAKE_CCACHE_OPTIONS} \ + -DCMAKE_INSTALL_PREFIX="${BUILD_DIR}" \ + -DCMAKE_PREFIX_PATH="${BUILD_DIR}" \ + -DCMAKE_OSX_ARCHITECTURES="${CMAKE_ARCHS}" \ + -DAOM_TARGET_CPU="${ARCH}" \ + -DENABLE_DOCS=OFF \ + -DENABLE_EXAMPLES=OFF \ + -DENABLE_TESTDATA=OFF \ + -DENABLE_TESTS=OFF \ + -DENABLE_TOOLS=OFF \ + -DBUILD_SHARED_LIBS=OFF \ + ${_DISABLE_CPU_DETECT} \ + ${QUIET:+-Wno-deprecated -Wno-dev --log-level=ERROR} + + step "Compile ("${ARCH}")..." + cmake --build build_${ARCH} --config "Release" +} + +_install_product() { + cd "${PRODUCT_FOLDER}" + + step "Install ("${ARCH}").." + cmake --install build_${ARCH} --config "Release" +} + +_build_setup_aom() { + trap "caught_error 'build-libaom'" ERR + + ensure_dir "${CHECKOUT_DIR}/macos_build_temp" + + step "Git checkout..." + mkdir -p "${PRODUCT_REPO}-${PRODUCT_VERSION:-${CI_PRODUCT_VERSION}}" + cd "${PRODUCT_REPO}-${PRODUCT_VERSION:-${CI_PRODUCT_VERSION}}" + + if [ -d "./.git" ]; then + info "Repository ${PRODUCT_REPO} already exists, updating..." + git config advice.detachedHead false + git config remote.origin.url "https://aomedia.googlesource.com/${PRODUCT_REPO}.git" + git config remote.origin.fetch "+refs/heads/master:refs/remotes/origin/master" + git config remote.origin.tapOpt --no-tags + + if ! git rev-parse -q --verify "${PRODUCT_HASH:-${CI_PRODUCT_HASH}}^{commit}"; then + git fetch origin + fi + + git checkout -f "${PRODUCT_HASH:-${CI_PRODUCT_HASH}}" -- + git reset --hard "${PRODUCT_HASH:-${CI_PRODUCT_HASH}}" -- + if [ -d "./.gitmodules" ]; then + git submodule foreach --recursive git submodule sync + git submodule update --init --recursive + fi + else + git clone "https://aomedia.googlesource.com/${PRODUCT_REPO}.git" "$(pwd)" + git config advice.detachedHead false + info "Checking out commit ${PRODUCT_HASH:-${CI_PRODUCT_HASH}}..." + git checkout -f "${PRODUCT_HASH:-${CI_PRODUCT_HASH}}" -- + + if [ -d "./.gitmodules" ]; then + git submodule foreach --recursive git submodule sync + git submodule update --init --recursive + fi + fi +} + +build-libaom-main() { + PRODUCT_NAME="${PRODUCT_NAME:-libaom}" + + if [ -z "${_RUN_OBS_BUILD_SCRIPT}" ]; then + CHECKOUT_DIR="$(/usr/bin/git rev-parse --show-toplevel)" + source "${CHECKOUT_DIR}/CI/include/build_support.sh" + source "${CHECKOUT_DIR}/CI/include/build_support_macos.sh" + + _check_parameters $* + _build_checks + fi + + PRODUCT_REPO="aom" + PRODUCT_PROJECT="libaom" + PRODUCT_FOLDER="${PRODUCT_REPO}-${PRODUCT_VERSION:-${CI_PRODUCT_VERSION}}" + + if [ -z "${INSTALL}" ]; then + _add_ccache_to_path + _build_setup_aom + _build + else + _install_product + fi +} + +build-libaom-main $* diff --git a/CI/macos/build_librist.sh b/CI/macos/build_librist.sh new file mode 100755 index 000000000..80618bd9f --- /dev/null +++ b/CI/macos/build_librist.sh @@ -0,0 +1,103 @@ +#!/bin/bash + +############################################################################## +# macOS librist build script +############################################################################## +# +# This script file can be included in build scripts for macOS or run directly +# +############################################################################## + +# Halt on errors +set -eE + +_patch_product() { + cd "${PRODUCT_FOLDER}" + + step "Apply patches..." + if [ ! -f "cross_compile.txt" ]; then + apply_patch "${CHECKOUT_DIR}/CI/macos/patches/librist.patch" "c7b167df4debc5bc0926b56ea1206b2a893ff7541d025218c48d14dfc07bbbe9" + fi +} + +_build_product() { + cd "${PRODUCT_FOLDER}" + BASE_DIR="$(pwd)" + + if [ "${ARCH}" = "x86_64" -o "${ARCH}" = "universal" ]; then + step "Configure (x86_64)..." + meson setup build_x86_64 \ + --buildtype release \ + --prefix "${BUILD_DIR}" \ + -Duse_mbedtls=true \ + -Dtest=false \ + -Dbuilt_tools=false \ + -Dbuiltin_cjson=true \ + --default-library static \ + -Dc_args="-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}" \ + -Dc_link_args="-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}" \ + -Dpkg_config_path="${BUILD_DIR}/lib/pkgconfig" + + step "Build (x86_64)..." + meson compile -C build_x86_64 + fi + + if [ "${ARCH}" = "arm64" -o "${ARCH}" = "universal" ]; then + step "Configure (arm64)..." + meson setup build_arm64 \ + --buildtype release \ + --prefix "${BUILD_DIR}" \ + -Duse_mbedtls=true \ + -Dtest=false \ + -Dbuilt_tools=false \ + -Dbuiltin_cjson=true \ + --default-library static \ + -Dpkg_config_path="${BUILD_DIR}/lib/pkgconfig" \ + --cross-file ./cross_compile.txt + + step "Build (arm64)..." + meson compile -C build_arm64 + fi + + if [ "${ARCH}" = "universal" ]; then + step "Create universal binaries..." + cp -cpR "${BASE_DIR}/build_x86_64" "${BASE_DIR}/build_universal" + cd "${BASE_DIR}/build_universal" + + lipo -create ./librist.a ../build_arm64/librist.a -output ./librist.a + fi +} + +_install_product() { + cd "${PRODUCT_FOLDER}" + + step "Install (${ARCH})..." + meson install -C build_${ARCH} +} + +build-librist-main() { + PRODUCT_NAME="${PRODUCT_NAME:-librist}" + + if [ -z "${_RUN_OBS_BUILD_SCRIPT}" ]; then + CHECKOUT_DIR="$(/usr/bin/git rev-parse --show-toplevel)" + source "${CHECKOUT_DIR}/CI/include/build_support.sh" + source "${CHECKOUT_DIR}/CI/include/build_support_macos.sh" + + _check_parameters $* + _build_checks + fi + + NOCONTINUE=TRUE + PRODUCT_URL="https://code.videolan.org/rist/librist/-/archive/v${PRODUCT_VERSION:-${CI_PRODUCT_VERSION}}/librist-v${PRODUCT_VERSION:-${CI_PRODUCT_VERSION}}.tar.gz" + PRODUCT_FILENAME="$(basename "${PRODUCT_URL}")" + PRODUCT_FOLDER="librist-v${PRODUCT_VERSION:-${CI_PRODUCT_VERSION}}" + + if [ -z "${INSTALL}" ]; then + _build_setup + _build + else + _install_product + fi +} + +build-librist-main $* diff --git a/CI/macos/build_mbedtls.sh b/CI/macos/build_mbedtls.sh index 3a45c4e1f..d55514be4 100755 --- a/CI/macos/build_mbedtls.sh +++ b/CI/macos/build_mbedtls.sh @@ -27,6 +27,7 @@ _build_product() { -DCMAKE_OSX_ARCHITECTURES="${CMAKE_ARCHS}" \ -DUSE_SHARED_MBEDTLS_LIBRARY=ON \ -DENABLE_PROGRAMS=OFF \ + -DENABLE_TESTING=OFF \ -DCMAKE_MACOSX_RPATH=ON \ ${QUIET:+-Wno-deprecated -Wno-dev --log-level=ERROR} diff --git a/CI/macos/patches/librist.patch b/CI/macos/patches/librist.patch new file mode 100644 index 000000000..f8c1e2010 --- /dev/null +++ b/CI/macos/patches/librist.patch @@ -0,0 +1,45 @@ +--- /dev/null 2021-11-07 15:50:49.000000000 +0100 ++++ ./cross_compile.txt 2021-11-07 15:50:00.000000000 +0100 +@@ -0,0 +1,20 @@ ++[host_machine] ++system = 'darwin' ++cpu_family = 'aarch64' ++cpu = 'arm64' ++endian = 'little' ++ ++[binaries] ++c = 'cc' ++cpp = 'c++' ++ar = 'ar' ++strip = 'strip' ++pkgconfig = 'pkg-config' ++ ++[built-in options] ++c_std = 'c11' ++cpp_std = 'c++11' ++c_args = '-target arm64-apple-macos11 -mmacosx-version-min=11.0' ++cpp_args = '-target arm64-apple-macos11 -mmacosx-version-min=11.0' ++c_link_args = '-target arm64-apple-macos11 -mmacosx-version-min=11.0' ++cpp_link_args = '-target arm64-apple-macos11 -mmacosx-version-min=11.0' +--- ./include/meson.build 2021-07-22 09:28:00.000000000 +0200 ++++ ./include/meson.build 2021-11-10 17:23:06.000000000 +0100 +@@ -2,14 +2,11 @@ + # SPDX-License-Identifier: BSD-2-Clause + + #stub file +-librist_git_dir = join_paths(librist_src_root, '.git') +-rev_target = vcs_tag(command: [ +- 'git', '--git-dir', librist_git_dir, +- '--work-tree', meson.source_root(), +- 'describe', '--tags', '--dirty', +- '--match', 'v?.*', '--always' +- ], ++version_data = configuration_data() ++version_data.set('VCS_TAG', '0.2.6') ++rev_target = configure_file( + input: 'vcs_version.h.in', +- output: 'vcs_version.h' ++ output: 'vcs_version.h', ++ configuration: version_data + ) + subdir('librist') diff --git a/CI/patches/FFmpeg-4.4.1-OBS.patch b/CI/patches/FFmpeg-4.4.1-OBS.patch new file mode 100644 index 000000000..faebdb95d --- /dev/null +++ b/CI/patches/FFmpeg-4.4.1-OBS.patch @@ -0,0 +1,22 @@ +--- ./libavformat/flvdec.c 2021-10-24 22:47:07.000000000 +0200 ++++ ./libavformat/flvdec.c 2021-11-08 13:13:47.000000000 +0100 +@@ -1077,7 +1077,7 @@ + int type; + meta_pos = avio_tell(s->pb); + type = flv_read_metabody(s, next); +- if (type == 0 && dts == 0 || type < 0) { ++ if (type == 0 && dts == 0 || type < 0 || type == TYPE_UNKNOWN) { + if (type < 0 && flv->validate_count && + flv->validate_index[0].pos > next && + flv->validate_index[0].pos - 4 < next) { +--- ./libavcodec/libaomenc.c 2021-10-24 22:47:07.000000000 +0200 ++++ ./libavcodec/libaomenc.c 2021-11-08 13:15:54.000000000 +0100 +@@ -1247,7 +1247,7 @@ + #define OFFSET(x) offsetof(AOMContext, x) + #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM + static const AVOption options[] = { +- { "cpu-used", "Quality/Speed ratio modifier", OFFSET(cpu_used), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 8, VE}, ++ { "cpu-used", "Quality/Speed ratio modifier", OFFSET(cpu_used), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 10, VE}, + { "auto-alt-ref", "Enable use of alternate reference " + "frames (2-pass only)", OFFSET(auto_alt_ref), AV_OPT_TYPE_INT, {.i64 = -1}, -1, 2, VE}, + { "lag-in-frames", "Number of frames to look ahead at for " diff --git a/CI/patches/FFmpeg-9010.patch b/CI/patches/FFmpeg-9010.patch new file mode 100644 index 000000000..f4627b176 --- /dev/null +++ b/CI/patches/FFmpeg-9010.patch @@ -0,0 +1,14 @@ +diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c +index 7c37bc50b9..ad3800ecae 100644 +--- a/libavformat/hlsenc.c ++++ b/libavformat/hlsenc.c +@@ -316,8 +316,7 @@ static int hlsenc_io_close(AVFormatContext *s, AVIOContext **pb, char *filename) + URLContext *http_url_context = ffio_geturlcontext(*pb); + av_assert0(http_url_context); + avio_flush(*pb); +- ffurl_shutdown(http_url_context, AVIO_FLAG_WRITE); +- ret = ff_http_get_shutdown_status(http_url_context); ++ ret = ffurl_shutdown(http_url_context, AVIO_FLAG_WRITE); + #endif + } + return ret; diff --git a/README.md b/README.md index 04acde642..6ee60b8b2 100644 --- a/README.md +++ b/README.md @@ -6,20 +6,22 @@ Scripts to build and package dependencies for OBS on CI | lib | git commit | version | | :--- | :---: | :---: | -|libpng|[Sourceforge](https://downloads.sourceforge.net/project/libpng/libpng16/1.6.37/libpng-1.6.37.tar.xz)|1.6.37| -|libopus|[GitHub](https://github.com/xiph/opus/tree/dfd6c88aaa54a03a61434c413e30c217eb98f1d5)|1.3.1-93-gdfd6c88a| +|aom|[Google Source](https://aomedia.googlesource.com/aom.git)|3.2.0| +|ffmpeg|[ffmpeg.org](https://ffmpeg.org/releases/ffmpeg-4.4.1.tar.xz)|4.4.1| +|libfreetype|[Sourceforge](https://downloads.sourceforge.net/project/freetype/freetype2/2.10.4/freetype-2.10.4.tar.xz)|2.10.4| +|libjansson|[Petri Lehtinen](https://digip.org/jansson/releases/jansson-2.13.1.tar.gz)|2.13.1| +|libluajit|[GitHub](https://github.com/LuaJIT/LuaJIT/commit/ec6edc5c39c25e4eb3fca51b753f9995e97215da)|2.1| +|libmbedtls|[GitHub](https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.24.0.tar.gz)|2.24.0| |libogg|[GitHub](https://github.com/xiph/ogg/releases/download/v1.3.5/libogg-1.3.5.tar.xz)|1.3.5| +|libopus|[GitHub](https://github.com/xiph/opus/tree/dfd6c88aaa54a03a61434c413e30c217eb98f1d5)|1.3.1-93-gdfd6c88a| +|libpng|[Sourceforge](https://downloads.sourceforge.net/project/libpng/libpng16/1.6.37/libpng-1.6.37.tar.xz)|1.6.37| +|librist|[Videolan](https://code.videolan.org/rist/librist/-/archive/v0.2.6/librist-v0.2.6.tar.gz)|0.2.6| |librnnoise|[90ec41e](https://github.com/xiph/rnnoise/commit/90ec41ef659fd82cfec2103e9bb7fc235e9ea66c)|Master branch| +|libsrt|[GitHub](https://github.com/Haivision/srt/archive/v1.4.1.tar.gz)|1.4.1| +|libtheora|[xiph.org](https://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2)|1.1.1| |libvorbis|[xiph.org](https://downloads.xiph.org/releases/vorbis/libvorbis-1.3.7.tar.xz)|1.3.7| |libvpx|[GitHub](https://github.com/webmproject/libvpx/archive/v1.10.0.tar.gz)|1.10.0| -|libjansson|[Petri Lehtinen](https://digip.org/jansson/releases/jansson-2.13.1.tar.gz)|2.13.1| |libx264|[GitHub](https://github.com/mirror/x264/commit/b684ebe04a6f80f8207a57940a1fa00e25274f81)|r3059| -|libmbedtls|[GitHub](https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.24.0.tar.gz)|2.24.0| -|libsrt|[GitHub](https://github.com/Haivision/srt/archive/v1.4.1.tar.gz)|1.4.1| -|libtheora|[xiph.org](https://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2)|1.1.1| -|ffmpeg|[ffmpeg.org](https://ffmpeg.org/releases/ffmpeg-4.2.3.tar.xz)|4.2.3| -|libluajit|[GitHub](https://github.com/LuaJIT/LuaJIT/commit/ec6edc5c39c25e4eb3fca51b753f9995e97215da)|2.1| -|libfreetype|[Sourceforge](https://downloads.sourceforge.net/project/freetype/freetype2/2.10.4/freetype-2.10.4.tar.xz)|2.10.4| |Qt|[Qt.io](https://download.qt.io/official_releases/qt/5.15/5.15.2/single/qt-everywhere-src-5.15.2.tar.xz)|5.15.2| ### Notes @@ -60,7 +62,7 @@ git clone https://github.com/obsproject/obs-deps.git cmake -DCMAKE_PREFIX_PATH="some_other_path;obs-deps" [..] ``` -## Contributing +### Contributing * Add/edit seperate build scripts for every dependency in the `CI/[OPERATING SYSTEM/` directory * For new dependencies: diff --git a/licenses/aom/AUTHORS b/licenses/aom/AUTHORS new file mode 100644 index 000000000..a42f17e49 --- /dev/null +++ b/licenses/aom/AUTHORS @@ -0,0 +1,286 @@ +# This file is automatically generated from the git commit history +# by tools/gen_authors.sh. + +Aamir Anis +Aaron Watry +Aasaipriya Chandran +Abo Talib Mahfoodh +Adrian Grange +Ahmad Sharif +Akshata Jadhav +Alexander Bokov +Alexander Voronov +Aℓex Converse +Alexis Ballier +Alex Peterson +Alok Ahuja +Alpha Lam +A.Mahfoodh +Ami Fischman +Andoni Morales Alastruey +Andres Mejia +Andrew Russell +Andrey Norkin +Angie Chiang +Aniket Dhok +Aniket Wanare +Ankur Saxena +Arild Fuldseth +Aron Rosenberg +Attila Nagy +Bohan Li +Brennan Shacklett +Brion Vibber +Bruno Berthier +Changjun Yang +Charles 'Buck' Krasic +Cheng Chen +Cherma Rajan A +Chethan Kumar R E +Chi Yo Tsai +Chm +Christian Duvivier +Christopher Degawa +Cyril Concolato +Dake He +Damon Shen +Dandan Ding +Daniele Castagna +Daniel Kang +Daniel Max Valenzuela +Danil Chapovalov +David Barker +David Major +David Michael Barr +David Turner +Deb Mukherjee +Deepa K G +Di Chen +Dim Temp +Dmitry Kovalev +Dominic Symes +Dragan Mrdjan +Ed Baker +Edward Hervey +Ehsan Akhgari +Elliott Karpilovsky +Emil Keyder +Erik Niemeyer +Fabio Pedretti +Fangwen Fu +Fergus Simpson +Frank Bossen +Frank Galligan +Frederic Barbier +Fredrik Söderquist +Fritz Koenig +Fyodor Kyslov +Gaute Strokkenes +Geza Lore +Ghislain MARY +Giuseppe Scrivano +Gordana Cmiljanovic +Grant Hsu +Guillaume Martres +Guillermo Ballester Valor +Hamsalekha S +Hangyu Kuang +Hanno Böck +Harish Mahendrakar +Henrik Lundin +Hien Ho +Hui Su +Ilie Halip +Ilya Brailovskiy +Imdad Sardharwalla +Iole Moccagatta +Ivan Krasin +Ivan Maltz +Jacek Caban +Jack Haughton +Jacky Chen +James Berry +James Yu +James Zern +Jan Gerber +Jan Kratochvil +Janne Salonen +Jayasanker J +Jayashri Murugan +Jean-Marc Valin +Jean-Yves Avenard +Jeff Faust +Jeff Muizelaar +Jeff Petkau +Jerome Jiang +Jia Jia +Jian Zhou +Jim Bankoski +Jingning Han +Joe Young +Joey Parrish +Johann Koenig +John Koleszar +Johnny Klonaris +John Stark +Jonathan Matthews +Joshua Bleecher Snyder +Joshua Litt +Josh Verdejo +Julia Robson +Justin Clift +Justin Lebar +Katsuhisa Yuasa +Kavi Ramamurthy +KO Myung-Hun +Krishna Malladi +Kyle Siefring +Larisa Markeeva +Lauren Partin +Lawrence Velázquez +leolzhao +Lester Lu +liang zhao +Linfeng Zhang +Link.Meng +Logan Goldberg +Lokeshwar Reddy B +Lou Quillio +Luca Barbato +Luc Trudeau +Madhu Peringassery Krishnan +Makoto Kato +Mans Rullgard +Marco Paniconi +Mark Mentovai +Martin Ettl +Martin Storsjo +Maryla +Matthew Heaney +Matthieu Vaudano +Mattias Hansson +Maxym Dmytrychenko +Michael Bebenita +Michael Horowitz +Michael Kohler +Michelle Findlay-Olynyk +Mike Frysinger +Mike Hommey +Mikhal Shemer +Minghai Shang +Mingliang Chen +Mirko Bonadei +Monty Montgomery +Morton Jonuschat +Mudassir Galagnath +Mufaddal Chakera +Nathan E. Egge +Neil Birkbeck +Nico Weber +Nithya V S +Ola Hugosson +Oleg Nalivayko +Parag Salasakar +Pascal Massimino +Patrik Westin +Paul Wilkins +Pavel Frolov +Pavol Rusnak +Paweł Hajdan +Peng Bin +Pengchong Jin +Peter Boström +Peter de Rivaz +Peter Kasting +Philip Jägenstedt +Priit Laes +Rafael Ávila de Espíndola +Rafaël Carré +Ralph Giles +Ranjit Kumar Tulabandu +Ravi Chaudhary +Remya Prakasan +Remy Foray +Rob Bradford +Robert-André Mauchin +Roger Zhou +Rohit Athavale +Ronald S. Bultje +Rostislav Pehlivanov +Ruiling Song +Rui Ueyama +Rupert Swarbrick +Ryan Lei +Ryan Overbeck +Sachin Kumar Garg +Sai Deng +Sami Boukortt +Sami Pietilä +Sarah Parker +Sasi Inguva +Satish Kumar Suman +Scott Graham +Scott LaVarnway +Sean DuBois +Sean McGovern +Sean Purser-Haskell +Sebastien Alaiwan +Sergey Kolomenkin +Sergey Ulanov +S Hamsalekha +Shimon Doodkin +Shunyao Li +SmilingWolf +Soo-Chul Han +Stanislav Vitvitskyy +Stefan Holmer +Steinar Midtskogen +Suman Sunkara +susannad +Taekhyun Kim +Takanori MATSUURA +Tamar Levy +Tao Bai +Tarek AMARA +Tarundeep Singh +Tero Rintaluoma +Thijs Vermeir +Thomas Daede +Thomas Davies Thomas +Tim Kopp +Timothy B. Terriberry +Timo Witte +Todd Nguyen +Tom Anderson +Tom Finegan +Tristan Matthews +Umang Saini +Urvang Joshi +Venkat Sanampudi +Victoria Zhislina +Vignesh Venkatasubramanian +Vikas Prasad +Vincent Rabaud +Vishesh +Vishnu Teja Manyam +Vitalii Dziumenko +Vitalii Dziumenko +Wan-Teh Chang +Wei-Ting Lin +Wenyao Liu +Will Bresnahan +Xiaoqing Zhu +Xing Jin +Xin Zhao +Yannis Guyon +Yaowu Xu +Yeqing Wu +Yi Luo +Yongzhe Wang +Yue Chen +Yunqing Wang +Yury Gitman +Yushin Cho +Zhijie Yang +Zhipin Deng +Zoe Liu diff --git a/licenses/aom/LICENSE b/licenses/aom/LICENSE new file mode 100644 index 000000000..fc340c376 --- /dev/null +++ b/licenses/aom/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2016, Alliance for Open Media. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + diff --git a/licenses/aom/PATENTS b/licenses/aom/PATENTS new file mode 100644 index 000000000..493f61637 --- /dev/null +++ b/licenses/aom/PATENTS @@ -0,0 +1,108 @@ +Alliance for Open Media Patent License 1.0 + +1. License Terms. + +1.1. Patent License. Subject to the terms and conditions of this License, each + Licensor, on behalf of itself and successors in interest and assigns, + grants Licensee a non-sublicensable, perpetual, worldwide, non-exclusive, + no-charge, royalty-free, irrevocable (except as expressly stated in this + License) patent license to its Necessary Claims to make, use, sell, offer + for sale, import or distribute any Implementation. + +1.2. Conditions. + +1.2.1. Availability. As a condition to the grant of rights to Licensee to make, + sell, offer for sale, import or distribute an Implementation under + Section 1.1, Licensee must make its Necessary Claims available under + this License, and must reproduce this License with any Implementation + as follows: + + a. For distribution in source code, by including this License in the + root directory of the source code with its Implementation. + + b. For distribution in any other form (including binary, object form, + and/or hardware description code (e.g., HDL, RTL, Gate Level Netlist, + GDSII, etc.)), by including this License in the documentation, legal + notices, and/or other written materials provided with the + Implementation. + +1.2.2. Additional Conditions. This license is directly from Licensor to + Licensee. Licensee acknowledges as a condition of benefiting from it + that no rights from Licensor are received from suppliers, distributors, + or otherwise in connection with this License. + +1.3. Defensive Termination. If any Licensee, its Affiliates, or its agents + initiates patent litigation or files, maintains, or voluntarily + participates in a lawsuit against another entity or any person asserting + that any Implementation infringes Necessary Claims, any patent licenses + granted under this License directly to the Licensee are immediately + terminated as of the date of the initiation of action unless 1) that suit + was in response to a corresponding suit regarding an Implementation first + brought against an initiating entity, or 2) that suit was brought to + enforce the terms of this License (including intervention in a third-party + action by a Licensee). + +1.4. Disclaimers. The Reference Implementation and Specification are provided + "AS IS" and without warranty. The entire risk as to implementing or + otherwise using the Reference Implementation or Specification is assumed + by the implementer and user. Licensor expressly disclaims any warranties + (express, implied, or otherwise), including implied warranties of + merchantability, non-infringement, fitness for a particular purpose, or + title, related to the material. IN NO EVENT WILL LICENSOR BE LIABLE TO + ANY OTHER PARTY FOR LOST PROFITS OR ANY FORM OF INDIRECT, SPECIAL, + INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER FROM ANY CAUSES OF + ACTION OF ANY KIND WITH RESPECT TO THIS LICENSE, WHETHER BASED ON BREACH + OF CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE, AND WHETHER OR + NOT THE OTHER PARTRY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +2. Definitions. + +2.1. Affiliate. "Affiliate" means an entity that directly or indirectly + Controls, is Controlled by, or is under common Control of that party. + +2.2. Control. "Control" means direct or indirect control of more than 50% of + the voting power to elect directors of that corporation, or for any other + entity, the power to direct management of such entity. + +2.3. Decoder. "Decoder" means any decoder that conforms fully with all + non-optional portions of the Specification. + +2.4. Encoder. "Encoder" means any encoder that produces a bitstream that can + be decoded by a Decoder only to the extent it produces such a bitstream. + +2.5. Final Deliverable. "Final Deliverable" means the final version of a + deliverable approved by the Alliance for Open Media as a Final + Deliverable. + +2.6. Implementation. "Implementation" means any implementation, including the + Reference Implementation, that is an Encoder and/or a Decoder. An + Implementation also includes components of an Implementation only to the + extent they are used as part of an Implementation. + +2.7. License. "License" means this license. + +2.8. Licensee. "Licensee" means any person or entity who exercises patent + rights granted under this License. + +2.9. Licensor. "Licensor" means (i) any Licensee that makes, sells, offers + for sale, imports or distributes any Implementation, or (ii) a person + or entity that has a licensing obligation to the Implementation as a + result of its membership and/or participation in the Alliance for Open + Media working group that developed the Specification. + +2.10. Necessary Claims. "Necessary Claims" means all claims of patents or + patent applications, (a) that currently or at any time in the future, + are owned or controlled by the Licensor, and (b) (i) would be an + Essential Claim as defined by the W3C Policy as of February 5, 2004 + (https://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential) + as if the Specification was a W3C Recommendation; or (ii) are infringed + by the Reference Implementation. + +2.11. Reference Implementation. "Reference Implementation" means an Encoder + and/or Decoder released by the Alliance for Open Media as a Final + Deliverable. + +2.12. Specification. "Specification" means the specification designated by + the Alliance for Open Media as a Final Deliverable for which this + License was issued. + diff --git a/licenses/aom/fastfeat/LICENSE b/licenses/aom/fastfeat/LICENSE new file mode 100644 index 000000000..f347008d6 --- /dev/null +++ b/licenses/aom/fastfeat/LICENSE @@ -0,0 +1,30 @@ +Copyright (c) 2006, 2008 Edward Rosten +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + + *Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + *Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + *Neither the name of the University of Cambridge nor the names of + its contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/licenses/aom/libwebm/AUTHORS.TXT b/licenses/aom/libwebm/AUTHORS.TXT new file mode 100644 index 000000000..9686ac13e --- /dev/null +++ b/licenses/aom/libwebm/AUTHORS.TXT @@ -0,0 +1,4 @@ +# Names should be added to this file like so: +# Name or Organization + +Google Inc. diff --git a/licenses/aom/libwebm/LICENSE.TXT b/licenses/aom/libwebm/LICENSE.TXT new file mode 100644 index 000000000..7a6f99547 --- /dev/null +++ b/licenses/aom/libwebm/LICENSE.TXT @@ -0,0 +1,30 @@ +Copyright (c) 2010, Google Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + * Neither the name of Google nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/licenses/aom/libwebm/PATENTS.TXT b/licenses/aom/libwebm/PATENTS.TXT new file mode 100644 index 000000000..caedf607e --- /dev/null +++ b/licenses/aom/libwebm/PATENTS.TXT @@ -0,0 +1,23 @@ +Additional IP Rights Grant (Patents) +------------------------------------ + +"These implementations" means the copyrightable works that implement the WebM +codecs distributed by Google as part of the WebM Project. + +Google hereby grants to you a perpetual, worldwide, non-exclusive, no-charge, +royalty-free, irrevocable (except as stated in this section) patent license to +make, have made, use, offer to sell, sell, import, transfer, and otherwise +run, modify and propagate the contents of these implementations of WebM, where +such license applies only to those patent claims, both currently owned by +Google and acquired in the future, licensable by Google that are necessarily +infringed by these implementations of WebM. This grant does not include claims +that would be infringed only as a consequence of further modification of these +implementations. If you or your agent or exclusive licensee institute or order +or agree to the institution of patent litigation or any other patent +enforcement activity against any entity (including a cross-claim or +counterclaim in a lawsuit) alleging that any of these implementations of WebM +or any code incorporated within any of these implementations of WebM +constitute direct or contributory patent infringement, or inducement of +patent infringement, then any patent rights granted to you under this License +for these implementations of WebM shall terminate as of the date such +litigation is filed. diff --git a/licenses/aom/libyuv/LICENSE b/licenses/aom/libyuv/LICENSE new file mode 100644 index 000000000..c911747a6 --- /dev/null +++ b/licenses/aom/libyuv/LICENSE @@ -0,0 +1,29 @@ +Copyright 2011 The LibYuv Project Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + * Neither the name of Google nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/licenses/aom/vector/LICENSE b/licenses/aom/vector/LICENSE new file mode 100644 index 000000000..afcb9f00a --- /dev/null +++ b/licenses/aom/vector/LICENSE @@ -0,0 +1,19 @@ +The MIT License (MIT) +Copyright (c) 2016 Peter Goldsborough + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/licenses/aom/x86inc/LICENSE b/licenses/aom/x86inc/LICENSE new file mode 100644 index 000000000..7d07645a1 --- /dev/null +++ b/licenses/aom/x86inc/LICENSE @@ -0,0 +1,18 @@ +Copyright (C) 2005-2012 x264 project + +Authors: Loren Merritt + Anton Mitrofanov + Jason Garrett-Glaser + Henrik Gramner + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/licenses/lame/mpglib/AUTHORS b/licenses/lame/mpglib/AUTHORS new file mode 100644 index 000000000..0a6a10b07 --- /dev/null +++ b/licenses/lame/mpglib/AUTHORS @@ -0,0 +1,16 @@ +Michael Hipp Author of orignal mpglib version 0.2a. + +Albert L. Faber +Aleksander Korzynski +Alexander Leidinger +Frank Klemm +Gabriel Bouvigne +Leigh Smith +Mark Taylor +Myers Carpenter +Naoki Shibata +Robert Hegemann +Sigbjorn Skjaeret +Stefan Bellon +Steve Lhomme +Takehiro TOMINAGA diff --git a/licenses/lame/mpglib/README b/licenses/lame/mpglib/README new file mode 100644 index 000000000..7155d004c --- /dev/null +++ b/licenses/lame/mpglib/README @@ -0,0 +1,26 @@ +hip - Hip Isn't a Player +A LGPLed mpeg audio decoding library. + +Based off of Michael Hipp's mpglib 0.2a , with many +improvements by the lame development team (see AUTHORS). + +The interface to the library is based off of vorbisfile. If you add mp3 +support to your app using this library it should be a snap to add Ogg Vorbis +support as well. + +This isn't as fast as mpg123 will be for decoding as none of it is in +assmbler. + +Seeking currently isn't implemented. + + +From mpglib's orginal README: +============================= + +PLEASE NOTE: This software may contain patented algorithms (at least + patented in some countries). It may be not allowed to sell/use products + based on this source code in these countries. Check this out first! + +COPYRIGHT of MP3 music: + Please note, that the duplicating of copyrighted music without explicit + permission violates the rights of the owner. diff --git a/licenses/libpng/gregbook/COPYING b/licenses/libpng/gregbook/COPYING new file mode 100644 index 000000000..a3e977479 --- /dev/null +++ b/licenses/libpng/gregbook/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/licenses/libpng/gregbook/LICENSE b/licenses/libpng/gregbook/LICENSE new file mode 100644 index 000000000..d9567178c --- /dev/null +++ b/licenses/libpng/gregbook/LICENSE @@ -0,0 +1,50 @@ + --------------------------------------------------------------------------- + + Copyright (c) 1998-2008 Greg Roelofs. All rights reserved. + + This software is provided "as is," without warranty of any kind, + express or implied. In no event shall the author or contributors + be held liable for any damages arising in any way from the use of + this software. + + The contents of this file are DUAL-LICENSED. You may modify and/or + redistribute this software according to the terms of one of the + following two licenses (at your option): + + + LICENSE 1 ("BSD-like with advertising clause"): + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute + it freely, subject to the following restrictions: + + 1. Redistributions of source code must retain the above copyright + notice, disclaimer, and this list of conditions. + 2. Redistributions in binary form must reproduce the above copyright + notice, disclaimer, and this list of conditions in the documenta- + tion and/or other materials provided with the distribution. + 3. All advertising materials mentioning features or use of this + software must display the following acknowledgment: + + This product includes software developed by Greg Roelofs + and contributors for the book, "PNG: The Definitive Guide," + published by O'Reilly and Associates. + + + LICENSE 2 (GNU GPL v2 or later): + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + --------------------------------------------------------------------------- diff --git a/licenses/libpng/pngminus/LICENSE.txt b/licenses/libpng/pngminus/LICENSE.txt new file mode 100644 index 000000000..00878a9a6 --- /dev/null +++ b/licenses/libpng/pngminus/LICENSE.txt @@ -0,0 +1,22 @@ + +pnm2png / png2pnm --- conversion from PBM/PGM/PPM-file to PNG-file + +copyright (C) 1999-2019 by Willem van Schaik + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +The software is provided "as is", without warranty of any kind, express or +implied, including but not limited to the warranties of merchantability, +fitness for a particular purpose and noninfringement. In no event shall the +authors or copyight holders be liable for any claim, damages or other +liability, whether in an action of contract, tort or otherwise, arising from, +out of or in connection with the software or the use or other dealings in the +software. diff --git a/licenses/librist/COPYING b/licenses/librist/COPYING new file mode 100644 index 000000000..da7c41b5c --- /dev/null +++ b/licenses/librist/COPYING @@ -0,0 +1,23 @@ +Copyright © 2019-2020, VideoLAN and librist authors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/licenses/libvpx/libwebm/AUTHORS.TXT b/licenses/libvpx/libwebm/AUTHORS.TXT new file mode 100644 index 000000000..9686ac13e --- /dev/null +++ b/licenses/libvpx/libwebm/AUTHORS.TXT @@ -0,0 +1,4 @@ +# Names should be added to this file like so: +# Name or Organization + +Google Inc. diff --git a/licenses/libvpx/libwebm/LICENSE.TXT b/licenses/libvpx/libwebm/LICENSE.TXT new file mode 100644 index 000000000..7a6f99547 --- /dev/null +++ b/licenses/libvpx/libwebm/LICENSE.TXT @@ -0,0 +1,30 @@ +Copyright (c) 2010, Google Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + * Neither the name of Google nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/licenses/libvpx/libwebm/PATENTS.TXT b/licenses/libvpx/libwebm/PATENTS.TXT new file mode 100644 index 000000000..caedf607e --- /dev/null +++ b/licenses/libvpx/libwebm/PATENTS.TXT @@ -0,0 +1,23 @@ +Additional IP Rights Grant (Patents) +------------------------------------ + +"These implementations" means the copyrightable works that implement the WebM +codecs distributed by Google as part of the WebM Project. + +Google hereby grants to you a perpetual, worldwide, non-exclusive, no-charge, +royalty-free, irrevocable (except as stated in this section) patent license to +make, have made, use, offer to sell, sell, import, transfer, and otherwise +run, modify and propagate the contents of these implementations of WebM, where +such license applies only to those patent claims, both currently owned by +Google and acquired in the future, licensable by Google that are necessarily +infringed by these implementations of WebM. This grant does not include claims +that would be infringed only as a consequence of further modification of these +implementations. If you or your agent or exclusive licensee institute or order +or agree to the institution of patent litigation or any other patent +enforcement activity against any entity (including a cross-claim or +counterclaim in a lawsuit) alleging that any of these implementations of WebM +or any code incorporated within any of these implementations of WebM +constitute direct or contributory patent infringement, or inducement of +patent infringement, then any patent rights granted to you under this License +for these implementations of WebM shall terminate as of the date such +litigation is filed. diff --git a/licenses/libvpx/libyuv/LICENSE b/licenses/libvpx/libyuv/LICENSE new file mode 100644 index 000000000..c911747a6 --- /dev/null +++ b/licenses/libvpx/libyuv/LICENSE @@ -0,0 +1,29 @@ +Copyright 2011 The LibYuv Project Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + * Neither the name of Google nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/licenses/libvpx/x86inc/LICENSE b/licenses/libvpx/x86inc/LICENSE new file mode 100644 index 000000000..7d07645a1 --- /dev/null +++ b/licenses/libvpx/x86inc/LICENSE @@ -0,0 +1,18 @@ +Copyright (C) 2005-2012 x264 project + +Authors: Loren Merritt + Anton Mitrofanov + Jason Garrett-Glaser + Henrik Gramner + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/licenses/opus/LICENSE_PLEASE_READ.txt b/licenses/opus/LICENSE_PLEASE_READ.txt new file mode 100644 index 000000000..bc88efa6c --- /dev/null +++ b/licenses/opus/LICENSE_PLEASE_READ.txt @@ -0,0 +1,22 @@ +Contributions to the collaboration shall not be considered confidential. + +Each contributor represents and warrants that it has the right and +authority to license copyright in its contributions to the collaboration. + +Each contributor agrees to license the copyright in the contributions +under the Modified (2-clause or 3-clause) BSD License or the Clear BSD License. + +Please see the IPR statements submitted to the IETF for the complete +patent licensing details: + +Xiph.Org Foundation: +https://datatracker.ietf.org/ipr/1524/ + +Microsoft Corporation: +https://datatracker.ietf.org/ipr/1914/ + +Skype Limited: +https://datatracker.ietf.org/ipr/1602/ + +Broadcom Corporation: +https://datatracker.ietf.org/ipr/1526/ diff --git a/utils/build_script_generator.py b/utils/build_script_generator.py index 5a122bc04..451470140 100755 --- a/utils/build_script_generator.py +++ b/utils/build_script_generator.py @@ -30,6 +30,8 @@ def main() -> int: not in [ "CACHE_REVISION", "MACOSX_DEPLOYMENT_TARGET", + "MACOSX_DEPLOYMENT_TARGET_ARM64", + "MACOSX_DEPLOYMENT_TARGET_X86_64", "FFMPEG_REVISION", "BLOCKED_FORMULAS", ]