Skip to content

Commit

Permalink
Add x264 library installation
Browse files Browse the repository at this point in the history
  • Loading branch information
sfreet committed Jun 21, 2019
1 parent dd4dbac commit 1cc160f
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion misc/prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,24 @@ install_fdk_aac()
${MAKE} && sudo make install
}

install_libx264()
{
BUILD_PRG="X264"

cd ${WORKDIR}

if [ ! -d ${BUILD_PRG} ]; then
curl -OLf https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20190513-2245-stable.tar.bz2 || fail_exit ${BUILD_PRG}
tar xvf x264-* -C ${WORKDIR} && rm -rf x264-snapshot-20190513-2245-stable.tar.bz2 && mv x264-* ${BUILD_PRG}
fi

cd ${BUILD_PRG}

./configure --enable-shared --disable-asm

${MAKE} && sudo make install
}

install_libopus()
{
BUILD_PRG="OPUS"
Expand Down Expand Up @@ -147,7 +165,7 @@ install_ffmpeg()
install_base_ubuntu()
{
PKGS="build-essential nasm autoconf libtool zlib1g-dev libssl-dev libvpx-dev libopus-dev pkg-config libfdk-aac-dev \
tclsh cmake curl"
libx264-dev tclsh cmake curl"
for PKG in ${PKGS}; do
sudo apt install -y ${PKG} || fail_exit ${PKG}
done
Expand Down Expand Up @@ -240,6 +258,8 @@ elif [ "x${OSNAME}" == "xCentOS Linux" ]; then

install_fdk_aac

install_libx264

install_ffmpeg

install_libsrt
Expand All @@ -255,6 +275,8 @@ elif [ "x${OSNAME}" == "xFedora" ]; then

install_fdk_aac

install_libx264

install_ffmpeg

install_libsrt
Expand Down

0 comments on commit 1cc160f

Please sign in to comment.