Create compile-ffmpeg.md

This commit is contained in:
Namhyeon Go 2024-05-11 21:32:49 +09:00 committed by GitHub
parent ffa0197409
commit 6865199f8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

28
compile-ffmpeg.md Normal file
View File

@ -0,0 +1,28 @@
# Compile FFmpeg for ffmpeg-api
This article is an FFmpeg compilation guide that is used as a reference when you want to run it in a non-container environment.
## Required packages
* X264-devel (yum), libx264-dev (apt): available in major Linux distributions
* [mstorsjo/fdk-aac](https://github.com/mstorsjo/fdk-aac) (No GPL, Need compile from the source code)
## Download FFmpeg source code
* https://ffmpeg.org/download.html
* Direct link: https://ffmpeg.org/releases/ffmpeg-7.0.tar.xz
## Compile FFmpeg (Minimal options)
```bash
wget https://ffmpeg.org/releases/ffmpeg-7.0.tar.xz
tar xvf ffmpeg-7.0.tar.xz
cd FFmpeg-7.0
mkdir build
cd build
../configure --disable-static --enable-shared --enable-gpl --enable-libx264 --enable-nonfree
make
make install
```
## Report abuse
* ActivityPub [@gnh1201@catswords.social](https://catswords.social/@gnh1201)
* abuse@catswords.net