mirror of
https://github.com/jellyfin/jellyfin-ffmpeg.git
synced 2025-04-18 20:24:05 +03:00
Enable ffnvcodec for Linux/Arm64 builds
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
9c8e0abf19
commit
a2280c5f22
@ -5,7 +5,6 @@ SCRIPT_COMMIT="451da99614412a7f9526ef301a5ee0c7a6f9ad76"
|
||||
|
||||
ffbuild_enabled() {
|
||||
[[ $TARGET == mac* ]] && return -1
|
||||
[[ $TARGET == *arm64 ]] && return -1
|
||||
return 0
|
||||
}
|
||||
|
||||
|
4
debian/control
vendored
4
debian/control
vendored
@ -42,11 +42,11 @@ Build-Depends:
|
||||
# --enable-libzvbi
|
||||
libzvbi-dev,
|
||||
# --enable-cuda-llvm
|
||||
clang [!armhf !arm64],
|
||||
clang:amd64 [!armhf],
|
||||
# --enable-opencl
|
||||
ocl-icd-opencl-dev,
|
||||
# used to detect libraries
|
||||
pkg-config,
|
||||
pkg-config | pkgconf,
|
||||
# HTML documentation
|
||||
texinfo,
|
||||
# assembler optimizations
|
||||
|
6
debian/rules
vendored
6
debian/rules
vendored
@ -77,6 +77,12 @@ CONFIG_ARM := --arch=armhf \
|
||||
CONFIG_ARM64 := --arch=arm64 \
|
||||
--cross-prefix=/usr/bin/aarch64-linux-gnu- \
|
||||
${CONFIG_ARM_COMMON} \
|
||||
--enable-ffnvcodec \
|
||||
--enable-cuda \
|
||||
--enable-cuda-llvm \
|
||||
--enable-cuvid \
|
||||
--enable-nvdec \
|
||||
--enable-nvenc \
|
||||
|
||||
HOST_ARCH := $(shell arch)
|
||||
BUILD_ARCH := ${DEB_HOST_MULTIARCH}
|
||||
|
@ -285,18 +285,18 @@ prepare_extra_common() {
|
||||
echo "fdk-aac-stripped${TARGET_DIR}/lib/libfdk-aac.so* usr/lib/jellyfin-ffmpeg/lib" >> ${DPKG_INSTALL_LIST}
|
||||
popd
|
||||
popd
|
||||
}
|
||||
|
||||
# Prepare extra headers, libs and drivers for x86_64-linux-gnu
|
||||
prepare_extra_amd64() {
|
||||
# FFNVCODEC
|
||||
pushd ${SOURCE_DIR}
|
||||
git clone -b n12.0.16.1 --depth=1 https://github.com/FFmpeg/nv-codec-headers.git
|
||||
pushd nv-codec-headers
|
||||
make && make install
|
||||
make PREFIX=${TARGET_DIR} install
|
||||
popd
|
||||
popd
|
||||
}
|
||||
|
||||
# Prepare extra headers, libs and drivers for x86_64-linux-gnu
|
||||
prepare_extra_amd64() {
|
||||
# AMF
|
||||
# https://www.ffmpeg.org/general.html#AMD-AMF_002fVCE
|
||||
pushd ${SOURCE_DIR}
|
||||
|
Loading…
x
Reference in New Issue
Block a user