mirror of
https://github.com/jellyfin/jellyfin-ffmpeg.git
synced 2026-09-03 05:09:58 +03:00
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://git.code.sf.net/p/mingw-w64/mingw-w64.git"
|
||||
SCRIPT_COMMIT="d78ef3552df8cdbfd1a275296921787975573d54"
|
||||
SCRIPT_COMMIT="d7877cbd2e080ffb77070cc08033efde9e034f13"
|
||||
|
||||
ffbuild_enabled() {
|
||||
[[ $TARGET == win* ]] || return -1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://github.com/GNOME/libxml2.git"
|
||||
SCRIPT_COMMIT="6273df6c6d84b6be8a62a62abf1d9b79cc2035f8"
|
||||
SCRIPT_COMMIT="884474477284474e0151280aaa275a18e3d7a036"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://gitlab.freedesktop.org/freetype/freetype.git"
|
||||
SCRIPT_COMMIT="7bed7a02f4bfbfe2a47efb4d06b9c02fdb83b758"
|
||||
SCRIPT_COMMIT="e4586d960f339cf75e2e0b34aee30a0ed8353c0d"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://gmplib.org/repo/gmp/"
|
||||
SCRIPT_HGREV="614a1cd8bb1d"
|
||||
SCRIPT_VERSION="6.2.1"
|
||||
SCRIPT_SHA512="c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84"
|
||||
SCRIPT_URL="https://ftp.gnu.org/gnu/gmp/gmp-${SCRIPT_VERSION}.tar.xz"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
}
|
||||
|
||||
ffbuild_dockerbuild() {
|
||||
retry-tool sh -c "rm -rf gmp && hg clone -r '$SCRIPT_HGREV' -u '$SCRIPT_HGREV' '$SCRIPT_REPO' gmp"
|
||||
cd gmp
|
||||
retry-tool check-wget "gmp.tar.xz" "$SCRIPT_URL" "$SCRIPT_SHA512"
|
||||
|
||||
./.bootstrap
|
||||
tar xaf "gmp.tar.xz"
|
||||
cd "gmp-$SCRIPT_VERSION"
|
||||
|
||||
local myconf=(
|
||||
--prefix="$FFBUILD_PREFIX"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://github.com/xz-mirror/xz.git"
|
||||
SCRIPT_COMMIT="1dbe12b90cff79bb51923733ac0840747b4b4131"
|
||||
SCRIPT_COMMIT="dbb3a536ed9873ffa0870321f6873e564c6a9da8"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
@@ -11,7 +11,7 @@ ffbuild_dockerbuild() {
|
||||
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" xz
|
||||
cd xz
|
||||
|
||||
./autogen.sh --no-po4a
|
||||
./autogen.sh --no-po4a --no-doxygen
|
||||
|
||||
local myconf=(
|
||||
--prefix="$FFBUILD_PREFIX"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://gitlab.freedesktop.org/fontconfig/fontconfig.git"
|
||||
SCRIPT_COMMIT="ff037052bc27ae1c0e97879fd7333d3afdf2566e"
|
||||
SCRIPT_COMMIT="7e2a1b2577e8d90ea5be3f14091e809ac7742438"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://github.com/harfbuzz/harfbuzz.git"
|
||||
SCRIPT_COMMIT="efefec13ccedc1461867544e2066e2042e86c66f"
|
||||
SCRIPT_COMMIT="d4bbe3f48663944385f25f608438e1eb678fc4b7"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/proto/xorgproto.git"
|
||||
SCRIPT_COMMIT="6b1012c29c2eee95c6ea2ef63b0e5dc628a6cb7f"
|
||||
SCRIPT_COMMIT="766967322209f2dcb72e6a8edea0c651f586201d"
|
||||
|
||||
ffbuild_enabled() {
|
||||
[[ $TARGET != linux* ]] && return -1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libx11.git"
|
||||
SCRIPT_COMMIT="71b08b8af20474bb704a11affaa8ea39b06d5ddf"
|
||||
SCRIPT_COMMIT="ab0442d3fa835ce16559b29532ac7f674f8557f4"
|
||||
|
||||
ffbuild_enabled() {
|
||||
[[ $TARGET != linux* ]] && return -1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://code.videolan.org/videolan/dav1d.git"
|
||||
SCRIPT_COMMIT="8b419c16bf1e37bc98044089da58f06824462cb9"
|
||||
SCRIPT_COMMIT="2373fda303d46489c1ec269dc66369a31663cb25"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://github.com/xiph/opus.git"
|
||||
SCRIPT_COMMIT="5023249b5c935545fb02dbfe845cae996ecfc8bb"
|
||||
SCRIPT_COMMIT="9fc8fc4cf432640f284113ba502ee027268b0d9f"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://chromium.googlesource.com/webm/libvpx"
|
||||
SCRIPT_COMMIT="575bd73f6118a88c5a0cf1d27a8ec9b5bda8c278"
|
||||
SCRIPT_COMMIT="14e52008edbf2e91386423fdd53310fe49654991"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://chromium.googlesource.com/webm/libwebp"
|
||||
SCRIPT_COMMIT="46bc4fc9d981b1760def26dd64b9c80ccbad9f6f"
|
||||
SCRIPT_COMMIT="08d60d60066eb30ab8e0e3ccfa0cd0b68f8cccc6"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://source.openmpt.org/svn/openmpt/trunk/OpenMPT"
|
||||
SCRIPT_REV="19366"
|
||||
SCRIPT_REV="19439"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://github.com/Haivision/srt.git"
|
||||
SCRIPT_COMMIT="3cefedefe91fca543083d260d1ed32efd2e7cba5"
|
||||
SCRIPT_COMMIT="9448e26fcd7602098b4bf9cd7fe535136e89e10b"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://gitlab.com/AOMediaCodec/SVT-AV1.git"
|
||||
SCRIPT_COMMIT="6f3651c76d30c7564f9cbd2db8523a5bbaf2cee1"
|
||||
SCRIPT_COMMIT="08c18ba0768ed3dbbff0903adc326fb3a7549bd9"
|
||||
|
||||
ffbuild_enabled() {
|
||||
[[ $TARGET == win32 ]] && return -1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://github.com/intel/libva.git"
|
||||
SCRIPT_COMMIT="f4c4c0370df2b756bd201f25b1ed7942475d44e0"
|
||||
SCRIPT_COMMIT="1c58941b93ba5013c68e8370a408efd630275c9c"
|
||||
|
||||
ffbuild_enabled() {
|
||||
[[ $TARGET != linux* ]] && return -1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://github.com/google/shaderc.git"
|
||||
SCRIPT_COMMIT="4dc596ddc2702092c670e828745dc3e0338d83c1"
|
||||
SCRIPT_COMMIT="e31c4c2e41544d63d90be28c46e4a4793a624240"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_REPO="https://github.com/KhronosGroup/SPIRV-Cross.git"
|
||||
SCRIPT_COMMIT="12542fc6fc05000e04742daf93892a0b10edbe80"
|
||||
SCRIPT_COMMIT="2d3a152081ca6e6bea7093940d0f81088fe4d01c"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
|
||||
@@ -159,9 +159,9 @@ popd
|
||||
popd
|
||||
|
||||
# LZMA
|
||||
git clone -b v5.4.1 --depth=1 https://github.com/xz-mirror/xz.git
|
||||
git clone -b v5.4.3 --depth=1 https://github.com/xz-mirror/xz.git
|
||||
pushd xz
|
||||
./autogen.sh --no-po4a
|
||||
./autogen.sh --no-po4a --no-doxygen
|
||||
./configure \
|
||||
--prefix=${FF_DEPS_PREFIX} \
|
||||
--host=${FF_TOOLCHAIN} \
|
||||
@@ -322,7 +322,7 @@ popd
|
||||
# OPENMPT
|
||||
mkdir mpt
|
||||
pushd mpt
|
||||
mpt_ver="0.7.1"
|
||||
mpt_ver="0.7.2"
|
||||
mpt_link="https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${mpt_ver}+release.autotools.tar.gz"
|
||||
wget ${mpt_link} -O mpt.tar.gz
|
||||
tar xaf mpt.tar.gz
|
||||
@@ -456,7 +456,7 @@ popd
|
||||
popd
|
||||
|
||||
# SVT-AV1
|
||||
git clone -b v1.5.0 --depth=1 https://gitlab.com/AOMediaCodec/SVT-AV1.git
|
||||
git clone -b v1.6.0 --depth=1 https://gitlab.com/AOMediaCodec/SVT-AV1.git
|
||||
pushd SVT-AV1
|
||||
mkdir build
|
||||
pushd build
|
||||
|
||||
+6
-16
@@ -138,7 +138,7 @@ prepare_extra_amd64() {
|
||||
# SVT-AV1
|
||||
# nasm >= 2.14
|
||||
pushd ${SOURCE_DIR}
|
||||
git clone -b v1.5.0 --depth=1 https://gitlab.com/AOMediaCodec/SVT-AV1.git
|
||||
git clone -b v1.6.0 --depth=1 https://gitlab.com/AOMediaCodec/SVT-AV1.git
|
||||
pushd SVT-AV1
|
||||
mkdir build
|
||||
pushd build
|
||||
@@ -237,7 +237,7 @@ prepare_extra_amd64() {
|
||||
|
||||
# GMMLIB
|
||||
pushd ${SOURCE_DIR}
|
||||
git clone -b intel-gmmlib-22.3.5 --depth=1 https://github.com/intel/gmmlib.git
|
||||
git clone -b intel-gmmlib-22.3.7 --depth=1 https://github.com/intel/gmmlib.git
|
||||
pushd gmmlib
|
||||
mkdir build && pushd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=${TARGET_DIR} ..
|
||||
@@ -292,7 +292,7 @@ prepare_extra_amd64() {
|
||||
# Provides VPL runtime (libmfx-gen.so.1.2) for 11th Gen Tiger Lake and newer
|
||||
# Both MSDK and VPL runtime can be loaded by MFX dispatcher (libmfx.so.1)
|
||||
pushd ${SOURCE_DIR}
|
||||
git clone -b intel-onevpl-23.2.2 --depth=1 https://github.com/oneapi-src/oneVPL-intel-gpu.git
|
||||
git clone -b intel-onevpl-23.2.3 --depth=1 https://github.com/oneapi-src/oneVPL-intel-gpu.git
|
||||
pushd oneVPL-intel-gpu
|
||||
mkdir build && pushd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=${TARGET_DIR} \
|
||||
@@ -318,6 +318,8 @@ prepare_extra_amd64() {
|
||||
wget -q -O - https://github.com/intel/media-driver/commit/cbbd676f.patch | git apply
|
||||
# Correct AV1 supported tx mode caps for the AV1 VA-API encoder
|
||||
wget -q -O - https://github.com/intel/media-driver/commit/89201eaa.patch | git apply
|
||||
# Fix the slow VPP tone-mapping on ADL-S and ADL-N
|
||||
wget -q -O - https://github.com/intel/media-driver/commit/1097e39b.patch | git apply
|
||||
mkdir build && pushd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=${TARGET_DIR} \
|
||||
-DENABLE_KERNELS=ON \
|
||||
@@ -396,19 +398,7 @@ prepare_extra_amd64() {
|
||||
if [[ ${LLVM_VER} -ge 11 ]]; then
|
||||
apt-get install -y llvm-${LLVM_VER}-dev libudev-dev
|
||||
pushd ${SOURCE_DIR}
|
||||
git clone -b main https://gitlab.freedesktop.org/mesa/mesa.git
|
||||
pushd mesa
|
||||
git reset --hard "cf323446"
|
||||
popd
|
||||
# disable the broken hevc packed header
|
||||
MESA_VA_PIC="mesa/src/gallium/frontends/va/picture.c"
|
||||
MESA_VA_CONF="mesa/src/gallium/frontends/va/config.c"
|
||||
sed -i 's|handleVAEncPackedHeaderParameterBufferType(context, buf);||g' ${MESA_VA_PIC}
|
||||
sed -i 's|handleVAEncPackedHeaderDataBufferType(context, buf);||g' ${MESA_VA_PIC}
|
||||
sed -i 's|if (u_reduce_video_profile(ProfileToPipe(profile)) == PIPE_VIDEO_FORMAT_HEVC)|if (0)|g' ${MESA_VA_CONF}
|
||||
# force reporting all packed headers are supported
|
||||
sed -i 's|value = VA_ENC_PACKED_HEADER_NONE;|value = 0x0000001f;|g' ${MESA_VA_CONF}
|
||||
sed -i 's|if (attrib_list\[i\].type == VAConfigAttribEncPackedHeaders)|if (0)|g' ${MESA_VA_CONF}
|
||||
git clone -b llvm11 --depth=1 https://gitlab.freedesktop.org/nyanmisaka/mesa.git
|
||||
meson setup mesa mesa_build \
|
||||
--prefix=${TARGET_DIR} \
|
||||
--libdir=lib \
|
||||
|
||||
Reference in New Issue
Block a user