Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions tools/fetch-ffmpeg-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,21 @@
# rather than the rolling `latest` tag. `latest` is rebuilt daily and
# only keeps the branches BtbN currently builds: n7.1 was dropped from
# it in August 2026 (only master / n8.1 / n9.0 remain), which 404'd this
# script and took CI down with it. A dated tag keeps its assets, and the
# SHA-256 below makes a silently swapped or truncated archive fail here
# instead of at runtime.
# script and took CI down with it. Only month-end dated tags are kept
# long-term (back to 2024); mid-month ones are pruned within weeks, which
# 404'd the previous 2026-08-16 pin. 2026-07-31 is the last month-end tag
# that still carries n7.1. The SHA-256 below makes a silently swapped or
# truncated archive fail here instead of at runtime.
# Flavor: lgpl-shared (no GPL components; redistributable alongside the app as
# long as the .so remain shared + replaceable — see README "Licensing").
set -euo pipefail

# Overridable together: a different release/asset needs its own checksum, and
# an empty EXPECTED_SHA256 skips the check (with a warning) rather than failing
# every override.
FFMPEG_RELEASE="${FFMPEG_RELEASE:-autobuild-2026-08-16-13-00}"
ASSET_NAME="${ASSET_NAME:-ffmpeg-n7.1.5-16-g9a4bb2c579-linux64-lgpl-shared-7.1.tar.xz}"
EXPECTED_SHA256="${EXPECTED_SHA256-05e4cf57a4f8bb63bda8a1a306dbf370c03e305088e7153c02e7761b2c181ec0}"
FFMPEG_RELEASE="${FFMPEG_RELEASE:-autobuild-2026-07-31-14-10}"
ASSET_NAME="${ASSET_NAME:-ffmpeg-n7.1.5-12-g1fdbca85aa-linux64-lgpl-shared-7.1.tar.xz}"
EXPECTED_SHA256="${EXPECTED_SHA256-f5f0ad52c6ee28a222eb10838c231469a10ad325f84063d3bc0aadf08164b3ec}"
FORCE="${FORCE:-0}"

repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
Expand Down
13 changes: 8 additions & 5 deletions tools/fetch-ffmpeg.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@
Version pin: n7.1 (matches FFmpeg.AutoGen 7.1.x bindings), taken from a dated
release rather than the rolling `latest` tag - `latest` only keeps the branches
BtbN currently builds, and n7.1 was dropped from it in August 2026 (master /
n8.1 / n9.0 remain), which 404'd this script. The SHA-256 below turns a swapped
or truncated archive into a failure here instead of at runtime.
n8.1 / n9.0 remain), which 404'd this script. Only month-end dated tags are
kept long-term; mid-month ones get pruned (that 404'd the 2026-08-16 pin), so
this uses 2026-07-31, the last month-end tag that still carries n7.1. The
SHA-256 below turns a swapped or truncated archive into a failure here
instead of at runtime.
Build flavor: lgpl-shared (no GPL components; safe to redistribute alongside
a closed-source app provided DLLs remain replaceable).
#>
[CmdletBinding()]
param(
[string]$FfmpegRelease = "autobuild-2026-08-16-13-00",
[string]$AssetName = "ffmpeg-n7.1.5-16-g9a4bb2c579-win64-lgpl-shared-7.1.zip",
[string]$FfmpegRelease = "autobuild-2026-07-31-14-10",
[string]$AssetName = "ffmpeg-n7.1.5-12-g1fdbca85aa-win64-lgpl-shared-7.1.zip",
# A different release/asset needs its own hash; pass an empty string to skip
# the check rather than have every override fail.
[string]$ExpectedSha256 = "a950596cea0bf9766f169dae6f1e6eb623aa1ccfd2822cd20cd2874b120d4086",
[string]$ExpectedSha256 = "0f376f96fb38554ccefb1b2ae9c7c6a7b351f0e60a372b38262c320e8392c5d0",
[switch]$Force
)

Expand Down
Loading