From b12c8c9203a6d5f067b578006b0e022721789618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Lalinsk=C3=BD?= Date: Thu, 11 Apr 2024 06:20:31 +0200 Subject: [PATCH] Build FFmpeg 7.0 (#15) * Build FFmpeg 7.0 * Use bz2 * Use gz * Try to handle redirect * Try to fix mac build --- build-macos.sh | 2 +- common.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build-macos.sh b/build-macos.sh index 11734ae..0e75410 100755 --- a/build-macos.sh +++ b/build-macos.sh @@ -9,7 +9,7 @@ source common.sh if [ ! -e $FFMPEG_TARBALL ] then - curl -O $FFMPEG_TARBALL_URL + curl -s -L -O $FFMPEG_TARBALL_URL fi : ${TARGET?} diff --git a/common.sh b/common.sh index 0fa850f..06bdbd1 100644 --- a/common.sh +++ b/common.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash -FFMPEG_VERSION=5.1.2 -FFMPEG_TARBALL=ffmpeg-$FFMPEG_VERSION.tar.bz2 +FFMPEG_VERSION=7.0 +FFMPEG_TARBALL=ffmpeg-$FFMPEG_VERSION.tar.gz FFMPEG_TARBALL_URL=http://ffmpeg.org/releases/$FFMPEG_TARBALL FFMPEG_CONFIGURE_FLAGS=( @@ -14,15 +14,16 @@ FFMPEG_CONFIGURE_FLAGS=( --disable-avdevice --disable-swscale --disable-programs - --enable-rdft --enable-ffmpeg --enable-ffprobe --disable-network --disable-muxers --disable-demuxers --disable-zlib + --disable-lzma --disable-bzlib --disable-iconv + --disable-libxcb --disable-bsfs --disable-filters --disable-parsers