Skip to content

Commit

Permalink
build script: pull ffmpeg 5.0 binaries, remove FreeBSD
Browse files Browse the repository at this point in the history
For FreeBSD, currently there are no ffmpeg 5.0 binaries available. See #96
  • Loading branch information
derhuerst committed Mar 2, 2022
1 parent 67e7631 commit 29b2bf5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ffmpeg-static

**[ffmpeg](https://ffmpeg.org) static binaries for Mac OSX, Linux, Windows and FreeBSD.**
**[ffmpeg](https://ffmpeg.org) static binaries for Mac OSX, Linux, Windows.**

Supports macOS (64-bit and arm64), Linux (32 and 64-bit, armhf, arm64), Windows (32 and 64-bit) and FreeBSD (64-bit). [The ffmpeg version currently used is `4.4.1`.](https://github.com/eugeneware/ffmpeg-static/releases/tag/b4.4.1)
Supports macOS (64-bit and arm64), Linux (32 and 64-bit, armhf, arm64), Windows (32 and 64-bit). [The ffmpeg version currently used is `4.4.1`.](https://github.com/eugeneware/ffmpeg-static/releases/tag/b4.4.1)

[![npm version](https://img.shields.io/npm/v/ffmpeg-static.svg)](https://www.npmjs.com/package/ffmpeg-static)
![minimum Node.js version](https://img.shields.io/node/v/ffmpeg-static.svg)
Expand Down Expand Up @@ -44,19 +44,17 @@ Check the [example script](example.js) for a more thorough example.

[The build script](build/index.sh) downloads binaries from these locations:

- [Windows x64 builds](https://github.com/ShareX/FFmpeg/)
- [Windows x64 builds](https://www.gyan.dev/ffmpeg/builds/)
- [Windows x86 builds](https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/)
- [Linux builds](https://johnvansickle.com/ffmpeg/)
- macOS builds [for Intel](https://evermeet.cx/pub/ffmpeg/) / [for ARM (Apple Silicon)](https://osxexperts.net/)
- [FreeBSD builds](https://github.com/Thefrank/ffmpeg-static-freebsd/releases)
- [Linux x64/x86/ARM/ARM64 builds](https://johnvansickle.com/ffmpeg/)
- macOS [x64 (Intel)](https://evermeet.cx/pub/ffmpeg/) & [ARM64 (Apple Silicon)](https://osxexperts.net/) builds

The build script extracts build information and (when possible) the license file from the downloaded package or the distribution server. Please consult the individual build's project site for exact source versions, which you can locate based on the version information included in the README file.

## Show your support

This npm package includes statically linked binaries that are produced by the following individuals. Please consider supporting and donating to them who have been providing quality binary builds for many years:

- **Windows builds**: [Jaex](https://getsharex.com/donate/)
- **Linux builds**: [John Van Sickle](https://www.johnvansickle.com/ffmpeg/)
- **macOS builds**: [Helmut K. C. Tessarek](https://evermeet.cx/ffmpeg/#donations)

Expand Down
13 changes: 7 additions & 6 deletions build/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mv "$tmpdir/README.txt" ../bin/win32-x64.README

echo 'windows ia32'
echo ' downloading from github.com'
download 'https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/releases/download/autobuild-2021-12-28-12-53/ffmpeg-n4.4.1-2-gcc33e73618-win32-gpl-4.4.zip' win32-ia32.zip
download 'https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/releases/download/latest/ffmpeg-n5.0-latest-win32-gpl-5.0.zip' win32-ia32.zip
echo ' extracting'
unzip -o -d ../bin -j win32-ia32.zip '*/bin/ffmpeg.exe'
mv ../bin/ffmpeg.exe ../bin/win32-ia32
Expand Down Expand Up @@ -82,14 +82,15 @@ curl -s -L 'https://evermeet.cx/ffmpeg/info/ffmpeg/release' | jq --tab '.' >../b

echo 'darwin arm64'
echo ' downloading from osxexperts.net'
download 'https://www.osxexperts.net/FFmpeg441ARM.zip' darwin-arm64.zip
download 'https://www.osxexperts.net/FFmpegARM.zip' darwin-arm64.zip
echo ' extracting'
unzip -o -d ../bin -j darwin-arm64.zip ffmpeg
mv ../bin/ffmpeg ../bin/darwin-arm64
curl -s -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/HEAD:/LICENSE.md' -o ../bin/darwin-arm64.LICENSE
curl -s -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/HEAD:/README.md' -o ../bin/darwin-arm64.README

echo 'freebsd x64'
echo ' downloading from github.com/Thefrank/ffmpeg-static-freebsd'
download 'https://github.com/Thefrank/ffmpeg-static-freebsd/releases/download/v4.4.1/ffmpeg' ../bin/freebsd-x64
chmod +x ../bin/freebsd-x64
# todo: add FreeBSD again
# echo 'freebsd x64'
# echo ' downloading from github.com/Thefrank/ffmpeg-static-freebsd'
# download 'https://github.com/Thefrank/ffmpeg-static-freebsd/releases/download/v5.0.0/ffmpeg' ../bin/freebsd-x64
# chmod +x ../bin/freebsd-x64

0 comments on commit 29b2bf5

Please sign in to comment.