Skip to content

Commit

Permalink
Merge pull request #318 from nyanmisaka/next
Browse files Browse the repository at this point in the history
[6.0] Add full HWA pipeline for Rockchip RK3588 platform
  • Loading branch information
nyanmisaka authored Jan 29, 2024
2 parents 002ab8d + 9f471d9 commit 0ddadf9
Show file tree
Hide file tree
Showing 42 changed files with 6,748 additions and 150 deletions.
2 changes: 1 addition & 1 deletion build-windows-win64
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for dep in docker make; do
done

# Use the latest distro for toolchains
distro="ubuntu:lunar"
distro="ubuntu:mantic"
image_name="jellyfin-ffmpeg-build-windows-win64"
package_temporary_dir="$( mktemp -d )"
current_user="$( whoami )"
Expand Down
2 changes: 1 addition & 1 deletion build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# We just wrap `build` so this is really it
name: "jellyfin-ffmpeg"
version: "6.0.1-1"
version: "6.0.1-2"
packages:
- buster-amd64
- buster-armhf
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/10-xorg-macros.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/util/macros.git"
SCRIPT_COMMIT="cb147377e9341af05232f95814022abdecf14024"
SCRIPT_COMMIT="1031f8cc5c7a170e278372ccdf2e70151b096ef7"

ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/20-libxml2.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/GNOME/libxml2.git"
SCRIPT_COMMIT="da703eaaea152f6dd9e871cbe7f0ae46322c583d"
SCRIPT_COMMIT="12ce9b5ffeba776ede786c075795a4dbae94bfa1"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/20-zlib.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/madler/zlib.git"
SCRIPT_COMMIT="15c45adb76e81a7e3a8a9e17b2a56eb90f668f44"
SCRIPT_COMMIT="b14484997a50c01b8d78f9db32516423573fc083"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/25-fftw3f.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/FFTW/fftw3.git"
SCRIPT_COMMIT="38ea230e25e69e7a3f35b957b815bac4f9aa22b0"
SCRIPT_COMMIT="d0ce926f1523d95daed48cd7c69572e068dbbfb3"

ffbuild_enabled() {
# Dependency of GPL-Only librubberband
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/25-freetype.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/freetype/freetype.git"
SCRIPT_COMMIT="028b0d5c1be1b1fe9305e073760ba6ac614ba6d8"
SCRIPT_COMMIT="47574f7ea445c8bb751da0fa716424c9c29a6807"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/25-fribidi.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/fribidi/fribidi.git"
SCRIPT_COMMIT="b54871c339dabb7434718da3fed2fa63320997e5"
SCRIPT_COMMIT="5b9a242cbbb0cf27d20da9941667abfc63808c19"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/35-fontconfig.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/fontconfig/fontconfig.git"
SCRIPT_COMMIT="a264a2c0ca0be120c0fd2325f0d67ca4d5e81bd0"
SCRIPT_COMMIT="14d466b30a8ab4a9d789977ed94f2c30e7209267"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/45-harfbuzz.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/harfbuzz/harfbuzz.git"
SCRIPT_COMMIT="2b5af6f42e6ba4b6eb67f807267fd5821744c519"
SCRIPT_COMMIT="846d5204c07b006adcca2ca0937e5d6935d66334"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/45-x11/30-libxcb.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxcb.git"
SCRIPT_COMMIT="02a7bbed391859c79864b9aacf040d84f103d38a"
SCRIPT_COMMIT="3c946010c8521497b0fba2c8bc9bde184622345a"

ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/45-x11/40-libx11.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libx11.git"
SCRIPT_COMMIT="c745719e23af44a4b40ab4508447637b35d91a1e"
SCRIPT_COMMIT="ae3eca18cec44a953789c7f77ffab888713ed132"

ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/45-x11/50-libxxf86vm.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxxf86vm.git"
SCRIPT_COMMIT="cfda59347e3a04415340a99f925a9cd85c0531b2"
SCRIPT_COMMIT="546c0e93adc535dfaaa66277928887c8dc1f8e13"

ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/45-x11/60-libglvnd.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/glvnd/libglvnd.git"
SCRIPT_COMMIT="62176c235ceca2c20f30777f5bc4195bd70391c4"
SCRIPT_COMMIT="908086d22dc307d17d0eb35c522c35fd190718cc"

ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/45-x11/60-libxcursor.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libxcursor.git"
SCRIPT_COMMIT="5e0f8347cebef2b3a9f5d75ca254aabaa0bca259"
SCRIPT_COMMIT="3783190da9aaa5ddd23aad6060469fd3f3ebece9"

ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-amf.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git"
SCRIPT_COMMIT="2f326350e849894a929296854f5290e66197c97c"
SCRIPT_COMMIT="8787d3ef5d938425d094170c1b2fec87762683b6"

ffbuild_enabled() {
[[ $TARGET == *arm64 ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-dav1d.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://code.videolan.org/videolan/dav1d.git"
SCRIPT_COMMIT="2179b30c84571ae5a4ecfe60821b2dd0050f355f"
SCRIPT_COMMIT="16ed8e8b99f2fcfffe016e929d3626e15267ad3e"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-libass.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/libass/libass.git"
SCRIPT_COMMIT="9f4e6afeec54c0d240a9b8377f27e6c5b7c2bde0"
SCRIPT_COMMIT="58a8f09cccb4829239855791a305d1336d8ee773"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-libmp3lame.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://svn.code.sf.net/p/lame/svn/trunk/lame"
SCRIPT_REV="6507"
SCRIPT_REV="6531"

ffbuild_enabled() {
return 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/oneapi-src/oneVPL.git"
SCRIPT_COMMIT="ca5bbbb057a6e84b103aca807612afb693ad046c"
SCRIPT_REPO="https://github.com/intel/libvpl.git"
SCRIPT_COMMIT="18e890e7a5d6355306b8f1046b46c378ced453ff"

ffbuild_enabled() {
[[ $TARGET == *arm64 ]] && return -1
return 0
}

ffbuild_dockerbuild() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" onevpl
cd onevpl
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libvpl
cd libvpl

mkdir build && cd build

Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-libvpx.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://chromium.googlesource.com/webm/libvpx"
SCRIPT_COMMIT="b7d847d0e7c754ca90c15eaca08515b959ff0359"
SCRIPT_COMMIT="433577ae317ac3c9f9f6efe0e22de8e2fa7b9e58"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-libwebp.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://chromium.googlesource.com/webm/libwebp"
SCRIPT_COMMIT="24d7f9cb6ef1ef90a04d7b6c15d3477813f75ee0"
SCRIPT_COMMIT="5efd6300dc3c4891a8ac928151c3484f9bc7d8fc"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-openmpt.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://source.openmpt.org/svn/openmpt/trunk/OpenMPT"
SCRIPT_REV="19911"
SCRIPT_REV="20108"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-srt.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/Haivision/srt.git"
SCRIPT_COMMIT="4a8067cf38656926494ae6b150cf7d148213c024"
SCRIPT_COMMIT="3dba3f441890b430380fba25848e8ff4a4db4bf3"

ffbuild_enabled() {
return 0
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-svtav1.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.com/AOMediaCodec/SVT-AV1.git"
SCRIPT_COMMIT="ba13fac241f1b54954935f2cb200efc07f3de13a"
SCRIPT_COMMIT="fd71fc49c2737ab390fa9d09b49b3a1c92f629e1"

ffbuild_enabled() {
[[ $TARGET == win32 ]] && return -1
Expand Down
21 changes: 10 additions & 11 deletions builder/scripts.d/50-vaapi/30-libpciaccess.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://gitlab.freedesktop.org/xorg/lib/libpciaccess.git"
SCRIPT_COMMIT="6cd5a4afbb70868c7746de8d50dea59e02e9acf2"
SCRIPT_COMMIT="c74d0a4b630f115e797cbb159ac13e0dc78f31f5"

ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
Expand All @@ -12,19 +12,18 @@ ffbuild_dockerbuild() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libpciaccess
cd libpciaccess

autoreconf -fi
mkdir build && cd build

local myconf=(
--prefix="$FFBUILD_PREFIX"
--enable-shared
--disable-static
--with-pic
--with-zlib
--buildtype=release
--default-library=shared
-Dzlib=enabled
)

if [[ $TARGET == linux* ]]; then
myconf+=(
--host="$FFBUILD_TOOLCHAIN"
--cross-file=/cross.meson
)
else
echo "Unknown target"
Expand All @@ -34,12 +33,12 @@ ffbuild_dockerbuild() {
export CFLAGS="$RAW_CFLAGS"
export LDFLAFS="$RAW_LDFLAGS"

./configure "${myconf[@]}"
make -j$(nproc)
make install
meson setup "${myconf[@]}" ..
ninja -j$(nproc)
ninja install

gen-implib "$FFBUILD_PREFIX"/lib/{libpciaccess.so.0,libpciaccess.a}
rm "$FFBUILD_PREFIX"/lib/libpciaccess{.so*,.la}
rm "$FFBUILD_PREFIX"/lib/libpciaccess.so*

echo "Libs: -ldl" >> "$FFBUILD_PREFIX"/lib/pkgconfig/pciaccess.pc
}
2 changes: 1 addition & 1 deletion builder/scripts.d/50-vaapi/50-libva.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/intel/libva.git"
SCRIPT_COMMIT="633746e717ef8daf82856b9909a4ffd0163df4b4"
SCRIPT_COMMIT="b8c7eed68846a8b9cdf1040be414880a4e0924a8"

ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-vulkan/45-vulkan.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/KhronosGroup/Vulkan-Headers.git"
SCRIPT_COMMIT="v1.3.270"
SCRIPT_COMMIT="v1.3.276"
SCRIPT_TAGFILTER="v?.*.*"

ffbuild_enabled() {
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-vulkan/55-spirv-cross.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/KhronosGroup/SPIRV-Cross.git"
SCRIPT_COMMIT="4818f7e7ef7b7078a3a7a5a52c4a338e0dda22f4"
SCRIPT_COMMIT="03b485dc47c6e84a15936601e8b121d84d8ddadf"

ffbuild_enabled() {
return 0
Expand Down
4 changes: 2 additions & 2 deletions builder/scripts.d/50-x264.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/mirror/x264.git"
SCRIPT_COMMIT="eaa68fad9e5d201d42fde51665f2d137ae96baf0"
SCRIPT_REPO="https://code.videolan.org/videolan/x264.git"
SCRIPT_COMMIT="4815ccadb1890572f2bf8b9d9553d56f6c9122ad"

ffbuild_enabled() {
[[ $VARIANT == lgpl* ]] && return -1
Expand Down
2 changes: 1 addition & 1 deletion builder/scripts.d/50-x265.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_REPO="https://bitbucket.org/multicoreware/x265_git.git"
SCRIPT_COMMIT="8ee01d45b05cdbc9da89b884815257807a514bc8"
SCRIPT_COMMIT="74abf80c70a3969fca2e112691cecfb50c0c2259"

ffbuild_enabled() {
[[ $VARIANT == lgpl* ]] && return -1
Expand Down
8 changes: 8 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
jellyfin-ffmpeg (6.0.1-2) unstable; urgency=medium

* Add full HWA pipeline for Rockchip RK3588 platform
* Fix libx265 encoded fMP4 HLS playback on Safari
* Update build scripts and dependencies

-- nyanmisaka <nst799610810@gmail.com> Sun, 17 Dec 2023 22:41:39 +0800

jellyfin-ffmpeg (6.0.1-1) unstable; urgency=medium

* New upstream version 6.0.1
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Build-Depends:
# --enable-cuda-llvm
clang [!armhf !arm64],
# --enable-opencl
ocl-icd-opencl-dev [!armhf !arm64],
ocl-icd-opencl-dev,
# --enable-omx
# libomxil-bellagio-dev
# omx headers are fully included in raspberrypi/firmware.
Expand Down
Loading

0 comments on commit 0ddadf9

Please sign in to comment.