tahoma2d/ci-scripts/osx/tahoma-buildffmpeg.sh

100 lines
1.8 KiB
Bash
Raw Normal View History

#!/bin/bash
cd thirdparty
2021-03-19 17:26:13 +13:00
echo ">>> Cloning aom"
mkdir aom
cd aom
echo "*" >| .gitignore
git clone https://aomedia.googlesource.com/aom
if [ ! -d build ]
then
mkdir build
fi
cd build
echo ">>> CMaking aom"
cmake ../aom
echo ">>> Making aom"
make
echo ">>> Installing aom"
sudo make install
cd ../..
2022-06-07 13:14:01 +12:00
echo ">>> Cloning dav1d"
git clone https://github.com/videolan/dav1d
cd dav1d
git checkout tags/0.9.2
if [ ! -d build ]
then
mkdir build
fi
cd build
echo ">>> Configuring dav1d (meson)"
meson ..
echo ">>> Building dav1d"
ninja
echo ">>> Installing dav1d"
ninja install
cd ../..
echo ">>> Cloning ffmpeg"
2022-01-30 13:00:54 +13:00
git clone -b v4.3.1 https://github.com/tahoma2d/FFmpeg ffmpeg
cd ffmpeg
echo "*" >| .gitignore
echo ">>> Configuring to build ffmpeg (shared)"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
./configure --prefix=/usr/local \
--enable-shared \
--enable-pthreads \
--enable-version3 \
--enable-avresample \
--enable-gnutls \
--enable-libaom \
--enable-libbluray \
--enable-libdav1d \
--enable-libmp3lame \
--enable-libopus \
--enable-librav1e \
--enable-libsnappy \
--enable-libtesseract \
--enable-libtheora \
--enable-libvorbis \
--enable-libvpx \
--enable-libwebp \
--enable-libxml2 \
--enable-lzma \
--enable-libfontconfig \
--enable-libfreetype \
--enable-libass \
--enable-libopencore-amrnb \
--enable-libopencore-amrwb \
--enable-libopenjpeg \
--enable-libspeex \
--enable-libsoxr \
--enable-videotoolbox \
--enable-libopenh264 \
--disable-libjack \
--disable-indev=jack
echo ">>> Building ffmpeg (shared)"
make -j7 # runs 7 jobs in parallel
echo ">>> Installing ffmpeg (shared)"
sudo make install