Create compile-ffmpeg.md
This commit is contained in:
parent
ffa0197409
commit
6865199f8f
28
compile-ffmpeg.md
Normal file
28
compile-ffmpeg.md
Normal 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
|
Loading…
Reference in New Issue
Block a user