moonfire-nvr/ci/install-ffmpeg.sh
Scott Lamb fc0bc51bed build and lint the UI in travis-ci
This is a separate item in the matrix, so it doesn't go through this for
each of the three Rust versions.
2018-08-31 08:19:56 -07:00

14 lines
395 B
Bash
Executable File

#!/bin/bash -e
if [ ! -f ffmpeg-${FFMPEG_VERSION}/configure ]; then
wget https://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.xz
tar xf ffmpeg-${FFMPEG_VERSION}.tar.xz
fi
cd ffmpeg-${FFMPEG_VERSION}
./configure --enable-shared
make --jobs=2
sudo make install --jobs=2
sudo ldconfig
# The build log varies with each invocation; remove it to improve cachability.
rm -f ffbuild/config.log