tahoma2d/ci-scripts/osx/tahoma-buildffmpeg.sh
2022-01-29 19:00:54 -05:00

75 lines
1.5 KiB
Bash
Executable file

#!/bin/bash
cd thirdparty
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 ../..
echo ">>> Cloning ffmpeg"
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