Add dependencies and rebuild with automatic stripping
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: ffmpeg4.4
|
name: ffmpeg4.4
|
||||||
description: A complete, cross-platform solution to record, convert and stream audio and video
|
description: A complete, cross-platform solution to record, convert and stream audio and video
|
||||||
version: 4.4.6
|
version: 4.4.6
|
||||||
revision: 1
|
revision: 2
|
||||||
url: https://ffmpeg.org/
|
url: https://ffmpeg.org/
|
||||||
license: GPL3-only
|
license: GPL3-only
|
||||||
architecture: any
|
architecture: any
|
||||||
@@ -10,17 +10,19 @@ depends:
|
|||||||
- alsa-lib
|
- alsa-lib
|
||||||
- libaom
|
- libaom
|
||||||
- bzip2
|
- bzip2
|
||||||
|
- cairo
|
||||||
- fontconfig
|
- fontconfig
|
||||||
- freetype2
|
- freetype2
|
||||||
- fribidi
|
- fribidi
|
||||||
- glib
|
- glib
|
||||||
- glibc
|
- glibc
|
||||||
|
- gmp
|
||||||
- gnutls
|
- gnutls
|
||||||
- harfbuzz
|
|
||||||
- lame
|
- lame
|
||||||
- libass
|
- libass
|
||||||
- libdrm
|
- libdrm
|
||||||
- libpulse
|
- libpulse
|
||||||
|
- librsvg
|
||||||
- libva
|
- libva
|
||||||
- libvdpau
|
- libvdpau
|
||||||
- libvorbis
|
- libvorbis
|
||||||
@@ -31,8 +33,12 @@ depends:
|
|||||||
- libxext
|
- libxext
|
||||||
- libxml2
|
- libxml2
|
||||||
- libxv
|
- libxv
|
||||||
|
- openjpeg
|
||||||
|
- opus
|
||||||
|
- rav1e
|
||||||
- sdl2-compat
|
- sdl2-compat
|
||||||
- speex
|
- speex
|
||||||
|
- svt-av1
|
||||||
- vulkan-loader
|
- vulkan-loader
|
||||||
- x264
|
- x264
|
||||||
- x265
|
- x265
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
From d1ed5c06e3edc5f2b5f3664c80121fa55b0baa95 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gyan Doshi <[email protected]>
|
||||||
|
Date: Sat, 22 Feb 2025 10:38:53 +0530
|
||||||
|
Subject: [PATCH] avcodec/libsvtav1: unbreak build with latest svtav1
|
||||||
|
|
||||||
|
SVT-AV1 made a change in their public API in 988e930c but without a
|
||||||
|
version bump or any other accessible marker, thus breaking ffmpeg build
|
||||||
|
with current versions of SVT-AV1.
|
||||||
|
|
||||||
|
They have finally bumped versions a month later, so check added.
|
||||||
|
---
|
||||||
|
libavcodec/libsvtav1.c | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
|
||||||
|
index 79b28eb4df..43fe531fde 100644
|
||||||
|
--- a/libavcodec/libsvtav1.c
|
||||||
|
+++ b/libavcodec/libsvtav1.c
|
||||||
|
@@ -435,7 +435,11 @@ static av_cold int eb_enc_init(AVCodecContext *avctx)
|
||||||
|
|
||||||
|
svt_enc->eos_flag = EOS_NOT_REACHED;
|
||||||
|
|
||||||
|
+#if SVT_AV1_CHECK_VERSION(3, 0, 0)
|
||||||
|
+ svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, &svt_enc->enc_params);
|
||||||
|
+#else
|
||||||
|
svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params);
|
||||||
|
+#endif
|
||||||
|
if (svt_ret != EB_ErrorNone) {
|
||||||
|
return svt_print_error(avctx, svt_ret, "Error initializing encoder handle");
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
@@ -2,6 +2,11 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$BPM_SOURCE"
|
||||||
|
patch -Np1 -i "$BPM_WORKDIR"/svt-av1-fix.patch
|
||||||
|
}
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
@@ -13,6 +18,7 @@ build() {
|
|||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-debug \
|
--disable-debug \
|
||||||
|
--disable-stripping \
|
||||||
--disable-doc \
|
--disable-doc \
|
||||||
--disable-programs \
|
--disable-programs \
|
||||||
--enable-gnutls \
|
--enable-gnutls \
|
||||||
@@ -31,6 +37,12 @@ build() {
|
|||||||
--enable-libx265 \
|
--enable-libx265 \
|
||||||
--enable-libxml2 \
|
--enable-libxml2 \
|
||||||
--enable-vulkan \
|
--enable-vulkan \
|
||||||
|
--enable-librav1e \
|
||||||
|
--enable-libsvtav1 \
|
||||||
|
--enable-gmp \
|
||||||
|
--enable-libopenjpeg \
|
||||||
|
--enable-libopus \
|
||||||
|
--enable-librsvg \
|
||||||
--ignore-tests=enhanced-flv-av1 \
|
--ignore-tests=enhanced-flv-av1 \
|
||||||
--docdir=/usr/share/doc/ffmpeg
|
--docdir=/usr/share/doc/ffmpeg
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user