Update and rename compile-ffmpeg.md to technical-notes.md

This commit is contained in:
Namhyeon Go 2024-05-11 21:54:09 +09:00 committed by GitHub
parent a73b8e888b
commit 9929bf925b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,21 +1,26 @@
# Compile FFmpeg for ffmpeg-api
# Techinical notes for ffmpeg-api
## high444 profile of the H264 codec
The high444 profile of the H264 codec is not supported in the latest version of Firefox and some Safari releases as of May 2024. In this project, we included the option `-fix_fmt yuv420p` along with the `high` profile.
## 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
### Required packages
* X264-devel (yum), libx264-dev (apt): available in major Linux distributions
* [Fraunhofer FDK AAC](https://github.com/mstorsjo/fdk-aac) (No GPL, Need compile from the source code)
## Download FFmpeg 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)
### 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
cd ffmpeg-7.0
mkdir build
cd build
../configure --enable-gpl --enable-libx264 --enable-nonfree --enable-libfdk-aac