Sunday, December 10, 2023

How to automatically update latest snapshot ffmpeg binaries in macos

First set the destination directory:

Use this script to install the latest snapshot versions of ffmpeg, ffplay, ffprobe and ffserver for macOS:

#!/bin/sh
cd ~/zshbin/
curl -JL https://evermeet.cx/ffmpeg/get/ffmpeg/7z --output ffmpeg-macos.7z
curl -JL https://evermeet.cx/ffmpeg/get/ffplay/7z --output ffplay-macos.7z
curl -JL https://evermeet.cx/ffmpeg/get/ffprobe/7z --output ffprobe-macos.7z
curl -JL https://evermeet.cx/ffmpeg/get/ffserver/7z --output ffserver-macos.7z
7z x ffmpeg-macos.7z -aoa
7z x ffplay-macos.7z -aoa
7z x ffprobe-macos.7z -aoa
7z x ffserver-macos.7z -aoa
rm ffmpeg-macos.7z ffplay-macos.7z ffprobe-macos.7z ffserver-macos.7z

Place the script "update-ffmpeg.sh" in any directory in your PATH, like "~/zshbin/".

It will download the static binaries build by evermeet.cx. They are x86_64 native, not ARM, but work the same in Apple Silicon.

The release versions can be installed instead, and other download configurations are available:

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.