Affected files: 02. PARA/03. Resources(資源)/FFMPEG/01. Setup.md attachments/Pasted image 20220607110949.png
30 lines
1.0 KiB
Markdown
30 lines
1.0 KiB
Markdown
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](https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2) 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](https://www.gyan.dev/ffmpeg/builds/#release-builds), 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]] |