Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added libsvtav1, updated libaom. #320

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 46 additions & 32 deletions docker-images/3.2/alpine38/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ FROM base AS build
WORKDIR /tmp/workdir

ENV FFMPEG_VERSION=3.2.15 \
AOM_VERSION=v1.0.0 \
LIBSTVAV1_VERSION=v0.8.7 \
AOM_VERSION=v3.1.3 \
FDKAAC_VERSION=0.1.5 \
FONTCONFIG_VERSION=2.12.4 \
FREETYPE_VERSION=2.10.4 \
Expand Down Expand Up @@ -123,7 +124,7 @@ RUN \
curl -sL https://versaweb.dl.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-${OPENCOREAMR_VERSION}.tar.gz | \
tar -zx --strip-components=1 && \
./configure --prefix="${PREFIX}" --enable-shared && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
## x264 http://www.videolan.org/developers/x264.html
Expand All @@ -134,7 +135,7 @@ RUN \
curl -sL https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${X264_VERSION}.tar.bz2 | \
tar -jx --strip-components=1 && \
./configure --prefix="${PREFIX}" --enable-shared --enable-pic --disable-cli && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
### x265 http://x265.org/
Expand All @@ -148,7 +149,7 @@ RUN \
sed -i "/-DEXTRA_LIB/ s/$/ -DCMAKE_INSTALL_PREFIX=\${PREFIX}/" multilib.sh && \
sed -i "/^cmake/ s/$/ -DENABLE_CLI=OFF/" multilib.sh && \
./multilib.sh && \
make -C 8bit install && \
make -C 8bit -j $(nproc) install && \
rm -rf ${DIR}
### libogg https://www.xiph.org/ogg/
RUN \
Expand All @@ -159,7 +160,7 @@ RUN \
echo ${OGG_SHA256SUM} | sha256sum --check && \
tar -zx --strip-components=1 -f libogg-${OGG_VERSION}.tar.gz && \
./configure --prefix="${PREFIX}" --enable-shared && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
### libopus https://www.opus-codec.org/
Expand All @@ -172,7 +173,7 @@ RUN \
tar -zx --strip-components=1 -f opus-${OPUS_VERSION}.tar.gz && \
autoreconf -fiv && \
./configure --prefix="${PREFIX}" --enable-shared && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
### libvorbis https://xiph.org/vorbis/
Expand All @@ -184,7 +185,7 @@ RUN \
echo ${VORBIS_SHA256SUM} | sha256sum --check && \
tar -zx --strip-components=1 -f libvorbis-${VORBIS_VERSION}.tar.gz && \
./configure --prefix="${PREFIX}" --with-ogg="${PREFIX}" --enable-shared && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
### libtheora http://www.theora.org/
Expand All @@ -196,7 +197,7 @@ RUN \
echo ${THEORA_SHA256SUM} | sha256sum --check && \
tar -zx --strip-components=1 -f libtheora-${THEORA_VERSION}.tar.gz && \
./configure --prefix="${PREFIX}" --with-ogg="${PREFIX}" --enable-shared && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
### libvpx https://www.webmproject.org/code/
Expand All @@ -208,7 +209,7 @@ RUN \
tar -zx --strip-components=1 && \
./configure --prefix="${PREFIX}" --enable-vp8 --enable-vp9 --enable-vp9-highbitdepth --enable-pic --enable-shared \
--disable-debug --disable-examples --disable-docs --disable-install-bins && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
### libwebp https://developers.google.com/speed/webp/
Expand All @@ -219,7 +220,7 @@ RUN \
curl -sL https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-${WEBP_VERSION}.tar.gz | \
tar -zx --strip-components=1 && \
./configure --prefix="${PREFIX}" --enable-shared && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
### libmp3lame http://lame.sourceforge.net/
Expand All @@ -230,7 +231,7 @@ RUN \
curl -sL https://versaweb.dl.sourceforge.net/project/lame/lame/$(echo ${LAME_VERSION} | sed -e 's/[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)\([0-9A-Za-z-]*\)/\1.\2/')/lame-${LAME_VERSION}.tar.gz | \
tar -zx --strip-components=1 && \
./configure --prefix="${PREFIX}" --bindir="${PREFIX}/bin" --enable-shared --enable-nasm --disable-frontend && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
### xvid https://www.xvid.com/
Expand All @@ -243,7 +244,7 @@ RUN \
tar -zx -f xvidcore-${XVID_VERSION}.tar.gz && \
cd xvidcore/build/generic && \
./configure --prefix="${PREFIX}" --bindir="${PREFIX}/bin" && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
### fdk-aac https://github.com/mstorsjo/fdk-aac
Expand All @@ -255,7 +256,7 @@ RUN \
tar -zx --strip-components=1 && \
autoreconf -fiv && \
./configure --prefix="${PREFIX}" --enable-shared --datadir="${DIR}" && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
## openjpeg https://github.com/uclouvain/openjpeg
Expand All @@ -266,7 +267,7 @@ RUN \
curl -sL https://github.com/uclouvain/openjpeg/archive/v${OPENJPEG_VERSION}.tar.gz | \
tar -zx --strip-components=1 && \
cmake -DBUILD_THIRDPARTY:BOOL=ON -DCMAKE_INSTALL_PREFIX="${PREFIX}" . && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
## freetype https://www.freetype.org/
Expand All @@ -278,7 +279,7 @@ RUN \
echo ${FREETYPE_SHA256SUM} | sha256sum --check && \
tar -zx --strip-components=1 -f freetype-${FREETYPE_VERSION}.tar.gz && \
./configure --prefix="${PREFIX}" --disable-static --enable-shared && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
## libvstab https://github.com/georgmartius/vid.stab
Expand All @@ -290,7 +291,7 @@ RUN \
echo ${LIBVIDSTAB_SHA256SUM} | sha256sum --check && \
tar -zx --strip-components=1 -f v${LIBVIDSTAB_VERSION}.tar.gz && \
cmake -DCMAKE_INSTALL_PREFIX="${PREFIX}" . && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
## fridibi https://www.fribidi.org/
Expand All @@ -315,7 +316,7 @@ RUN \
curl -sLO https://www.freedesktop.org/software/fontconfig/release/fontconfig-${FONTCONFIG_VERSION}.tar.bz2 && \
tar -jx --strip-components=1 -f fontconfig-${FONTCONFIG_VERSION}.tar.bz2 && \
./configure --prefix="${PREFIX}" --disable-static --enable-shared && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
## libass https://github.com/libass/libass
Expand All @@ -328,7 +329,7 @@ RUN \
tar -zx --strip-components=1 -f ${LIBASS_VERSION}.tar.gz && \
./autogen.sh && \
./configure --prefix="${PREFIX}" --disable-static --enable-shared && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}
## kvazaar https://github.com/ultravideo/kvazaar
Expand All @@ -352,7 +353,7 @@ RUN \
mkdir -p ./aom_build ; \
cd ./aom_build ; \
cmake -DCMAKE_INSTALL_PREFIX="${PREFIX}" -DBUILD_SHARED_LIBS=1 ..; \
make ; \
make -j $(nproc); \
make install ; \
rm -rf ${DIR}

Expand All @@ -364,7 +365,7 @@ RUN \
curl -sLO https://www.x.org/archive//individual/util/util-macros-${XORG_MACROS_VERSION}.tar.gz && \
tar -zx --strip-components=1 -f util-macros-${XORG_MACROS_VERSION}.tar.gz && \
./configure --srcdir=${DIR} --prefix="${PREFIX}" && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}

Expand All @@ -375,7 +376,7 @@ RUN \
curl -sLO https://www.x.org/archive/individual/proto/xproto-${XPROTO_VERSION}.tar.gz && \
tar -zx --strip-components=1 -f xproto-${XPROTO_VERSION}.tar.gz && \
./configure --srcdir=${DIR} --prefix="${PREFIX}" && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}

Expand All @@ -386,7 +387,7 @@ RUN \
curl -sLO https://www.x.org/archive/individual/lib/libXau-${XAU_VERSION}.tar.gz && \
tar -zx --strip-components=1 -f libXau-${XAU_VERSION}.tar.gz && \
./configure --srcdir=${DIR} --prefix="${PREFIX}" && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}

Expand All @@ -397,7 +398,7 @@ RUN \
curl -sLO https://xcb.freedesktop.org/dist/libpthread-stubs-${LIBPTHREAD_STUBS_VERSION}.tar.gz && \
tar -zx --strip-components=1 -f libpthread-stubs-${LIBPTHREAD_STUBS_VERSION}.tar.gz && \
./configure --prefix="${PREFIX}" && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}

Expand All @@ -409,7 +410,7 @@ RUN \
tar -zx --strip-components=1 -f xcb-proto-${XCBPROTO_VERSION}.tar.gz && \
ACLOCAL_PATH="${PREFIX}/share/aclocal" ./autogen.sh && \
./configure --prefix="${PREFIX}" && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}

Expand All @@ -421,7 +422,7 @@ RUN \
tar -zx --strip-components=1 -f libxcb-${LIBXCB_VERSION}.tar.gz && \
ACLOCAL_PATH="${PREFIX}/share/aclocal" ./autogen.sh && \
./configure --prefix="${PREFIX}" --disable-static --enable-shared && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}

Expand All @@ -434,7 +435,7 @@ RUN \
echo ${LIBXML2_SHA256SUM} | sha256sum --check && \
tar -xz --strip-components=1 -f libxml2-v${LIBXML2_VERSION}.tar.gz && \
./autogen.sh --prefix="${PREFIX}" --with-ftp=no --with-http=no --with-python=no && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}

Expand All @@ -447,7 +448,7 @@ RUN \
echo ${LIBBLURAY_SHA256SUM} | sha256sum --check && \
tar -jx --strip-components=1 -f libbluray-${LIBBLURAY_VERSION}.tar.bz2 && \
./configure --prefix="${PREFIX}" --disable-examples --disable-bdjava-jar --disable-static --enable-shared && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}

Expand All @@ -461,7 +462,7 @@ RUN \
tar -xz --strip-components=1 -f v${LIBZMQ_VERSION}.tar.gz && \
./autogen.sh && \
./configure --prefix="${PREFIX}" && \
make && \
make -j $(nproc) && \
make check && \
make install && \
rm -rf ${DIR}
Expand All @@ -474,7 +475,7 @@ RUN \
curl -sLO https://github.com/Haivision/srt/archive/v${LIBSRT_VERSION}.tar.gz && \
tar -xz --strip-components=1 -f v${LIBSRT_VERSION}.tar.gz && \
cmake -DCMAKE_INSTALL_PREFIX="${PREFIX}" . && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}

Expand All @@ -486,7 +487,7 @@ RUN \
git clone https://git.code.sf.net/p/libpng/code ${DIR} -b v${LIBPNG_VERSION} --depth 1 && \
./autogen.sh && \
./configure --prefix="${PREFIX}" && \
make check && \
make check -j $(nproc) && \
make install && \
rm -rf ${DIR}

Expand All @@ -500,7 +501,20 @@ RUN \
tar -xz --strip-components=1 -f v${LIBARIBB24_VERSION}.tar.gz && \
autoreconf -fiv && \
./configure CFLAGS="-I${PREFIX}/include -fPIC" --prefix="${PREFIX}" && \
make && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}


## libsvtav1
RUN \
DIR=/tmp/svtav1 && \
mkdir -p ${DIR} && \
cd ${DIR} && \
git clone https://gitlab.com/AOMediaCodec/SVT-AV1.git ${DIR} --depth=1 -b ${LIBSTVAV1_VERSION} &&\
cd Build && \
cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${PREFIX}" && \
make -j $(nproc) && \
make install && \
rm -rf ${DIR}

Expand Down Expand Up @@ -551,7 +565,7 @@ RUN \
--enable-libkvazaar \
--extra-cflags="-I${PREFIX}/include" \
--extra-ldflags="-L${PREFIX}/lib" && \
make && \
make -j $(nproc) && \
make install && \
make tools/zmqsend && cp tools/zmqsend ${PREFIX}/bin/ && \
make distclean && \
Expand Down
Loading