mirror of
https://github.com/levogevo/ffmpeg-av1-builder.git
synced 2026-01-15 16:56:18 +00:00
build aom
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
ffmpeg/
|
ffmpeg/
|
||||||
rav1e/
|
rav1e/
|
||||||
svt/
|
svt/
|
||||||
|
aom/
|
||||||
benchmark/
|
benchmark/
|
||||||
@@ -4,11 +4,13 @@ BASE_DIR=$(pwd)
|
|||||||
SVT_DIR="$BASE_DIR/svt"
|
SVT_DIR="$BASE_DIR/svt"
|
||||||
RAV1E_DIR="$BASE_DIR/rav1e"
|
RAV1E_DIR="$BASE_DIR/rav1e"
|
||||||
FFMPEG_DIR="$BASE_DIR/ffmpeg"
|
FFMPEG_DIR="$BASE_DIR/ffmpeg"
|
||||||
|
AOM_DIR="$BASE_DIR/aom"
|
||||||
|
|
||||||
# clone
|
# clone
|
||||||
git clone https://gitlab.com/AOMediaCodec/SVT-AV1.git "$SVT_DIR" --depth 1
|
git clone https://gitlab.com/AOMediaCodec/SVT-AV1.git "$SVT_DIR" --depth 1
|
||||||
git clone https://github.com/xiph/rav1e "$RAV1E_DIR" --depth 1
|
git clone https://github.com/xiph/rav1e "$RAV1E_DIR" --depth 1
|
||||||
git clone https://git.ffmpeg.org/ffmpeg.git "$FFMPEG_DIR" --depth 1
|
git clone https://git.ffmpeg.org/ffmpeg.git "$FFMPEG_DIR" --depth 1
|
||||||
|
git clone https://aomedia.googlesource.com/aom "$AOM_DIR" --depth 1
|
||||||
|
|
||||||
# build svt-av1
|
# build svt-av1
|
||||||
cd "$SVT_DIR/" || exit
|
cd "$SVT_DIR/" || exit
|
||||||
@@ -35,18 +37,27 @@ cd ffmpeg_build || exit
|
|||||||
sudo cp ./lib/* /usr/local/lib/ -r
|
sudo cp ./lib/* /usr/local/lib/ -r
|
||||||
sudo cp ./include/* /usr/local/include/ -r
|
sudo cp ./include/* /usr/local/include/ -r
|
||||||
|
|
||||||
# build ffmpeg
|
# build aom
|
||||||
cd "$FFMPEG_DIR/" || exit
|
cd "$AOM_DIR/" || exit
|
||||||
export LD_LIBRARY_PATH+=":/usr/local/lib"
|
git pull
|
||||||
export PKG_CONFIG_PATH+=":/usr/local/lib/pkgconfig"
|
mkdir build
|
||||||
|
cd build || exit
|
||||||
make clean
|
make clean
|
||||||
./configure --enable-libsvtav1 --enable-librav1e
|
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||||
make -j "$(nproc)"
|
make -j "$(nproc)"
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/ffmpeg.conf
|
echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/ffmpeg.conf
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
|
|
||||||
|
# build ffmpeg
|
||||||
|
cd "$FFMPEG_DIR/" || exit
|
||||||
|
export PKG_CONFIG_PATH+=":/usr/local/lib/pkgconfig"
|
||||||
|
make clean
|
||||||
|
./configure --enable-libsvtav1 --enable-librav1e --enable-libaom
|
||||||
|
make -j "$(nproc)"
|
||||||
|
sudo make install
|
||||||
|
|
||||||
hash -r
|
hash -r
|
||||||
source ~/.profile
|
source ~/.profile
|
||||||
ffmpeg -encoders | grep "av1"
|
ffmpeg -encoders | grep "av1"
|
||||||
|
|||||||
Reference in New Issue
Block a user