Files
Obsidian-Main/21. 資料收集/Programming/FFMPEG/01. Setup.md

1.0 KiB

FFmpeg doesn't support any official builds for any operation systems. You can build the codes from source, or use the prebuilt packages.

From source

Get source code from snapshot or git(git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg).

From prebuilt packages

MacOS

Use homebrew to install FFMPEG package

brew install ffmpeg

Ubuntu

sudo apt update ;\
sudo apt install ffmpeg

Windows

Goto https://www.ffmpeg.org/download.html, and !Pasted image 20220607105807.png

And then browser jumps to https://www.gyan.dev/ffmpeg/builds/, click release build, download release-full. !Pasted image 20220607110211.png

Unzip the file, then put the folder to anywhere you like, e.g. C:\libs, so the full path of ffmpeg packages should looks like: C:\libs\ffmpeg-5.0.1-full_build

Add to system variable

Add the path of bin of ffmpeg packages to PATH system variable. !Pasted image 20220607110949.png