use new btbn ffmpeg builds

This commit is contained in:
SrGooglo 2025-06-16 20:40:16 +00:00
parent efc309ed6a
commit 596c8df44f

View File

@ -19,8 +19,6 @@ detect_arch() {
echo "amd64" echo "amd64"
elif [[ "$ARCH" == "aarch64" ]] || [[ "$ARCH" == "arm64" ]]; then elif [[ "$ARCH" == "aarch64" ]] || [[ "$ARCH" == "arm64" ]]; then
echo "arm64" echo "arm64"
elif [[ "$ARCH" == "armv7l" ]]; then
echo "armhf"
else else
echo "unsupported" echo "unsupported"
fi fi
@ -52,19 +50,17 @@ download_ffmpeg() {
echo -e "${YELLOW}Downloading the latest stable version of FFmpeg...${NC}" echo -e "${YELLOW}Downloading the latest stable version of FFmpeg...${NC}"
# Base URL for downloads from John van Sickle's FFmpeg builds # Base URL for downloads from John van Sickle's FFmpeg builds
BASE_URL="https://johnvansickle.com/ffmpeg/releases" BASE_URL="https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n7.1-latest"
# Map architecture to the expected format in the URL # Map architecture to the expected format in the URL
if [[ "$ARCH" == "amd64" ]]; then if [[ "$ARCH" == "amd64" ]]; then
URL_ARCH="amd64" URL_ARCH="linux64"
elif [[ "$ARCH" == "arm64" ]]; then elif [[ "$ARCH" == "arm64" ]]; then
URL_ARCH="arm64" URL_ARCH="linuxarm64"
elif [[ "$ARCH" == "armhf" ]]; then
URL_ARCH="armhf"
fi fi
# Create the download URL for the latest release # Create the download URL for the latest release
FFMPEG_URL="$BASE_URL/ffmpeg-release-$URL_ARCH-static.tar.xz" FFMPEG_URL="$BASE_URL-$URL_ARCH-gpl-7.1.tar.xz"
if [[ -z "$FFMPEG_URL" ]]; then if [[ -z "$FFMPEG_URL" ]]; then
echo -e "${RED}Could not determine the download URL for your system.${NC}" echo -e "${RED}Could not determine the download URL for your system.${NC}"
@ -118,9 +114,11 @@ install_binaries() {
exit 1 exit 1
fi fi
echo -e "${GREEN}Extracted directory: $EXTRACTED_DIR${NC}"
# Find the binaries # Find the binaries
FFMPEG_BIN="$EXTRACTED_DIR/ffmpeg" FFMPEG_BIN="$EXTRACTED_DIR/bin/ffmpeg"
FFPROBE_BIN="$EXTRACTED_DIR/ffprobe" FFPROBE_BIN="$EXTRACTED_DIR/bin/ffprobe"
# Verify binaries exist # Verify binaries exist
if [[ ! -f "$FFMPEG_BIN" ]] || [[ ! -f "$FFPROBE_BIN" ]]; then if [[ ! -f "$FFMPEG_BIN" ]] || [[ ! -f "$FFPROBE_BIN" ]]; then