Skip to content
Merged
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
24 changes: 21 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ prepare_dependencies() {
build-essential \
apt-utils cmake cython3 flex bison gcc g++ git make patch pkg-config wget \
libdrm-dev libtool libusb-1.0-0-dev xz-utils ocl-icd-opencl-dev opencl-headers \
apt-utils gpg-agent software-properties-common wget python3-dev libpython3-dev python3-pip
apt-utils gpg-agent software-properties-common wget python3-dev libpython3-dev python3-pip nasm yasm
}

config_git_users() {
Expand Down Expand Up @@ -109,11 +109,27 @@ build_install_ivsr_sdk() {
echo "Build ivsr sdk finished."
}

build_install_svt_av1() {
echo "Building and installing SVT-AV1 library..."
svtav1_repo=https://gitlab.com/AOMediaCodec/SVT-AV1.git
svtav1_branch=v4.2.0
ivsr_svtav1_dir=${base_dir}/ivsr_svtav1/SVT-AV1
if [ ! -d "${ivsr_svtav1_dir}" ]; then
git clone --depth 1 --branch ${svtav1_branch} ${svtav1_repo} ${ivsr_svtav1_dir}
git config --global --add safe.directory ${ivsr_svtav1_dir}
fi
cd ${ivsr_svtav1_dir}/Build
cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
sudo make install
echo "Build svt-av1 finished."
}

build_ffmpeg() {
echo "Building FFMPEG with specific libraries support..."
sudo -E apt-get update && \
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends \
ca-certificates tar g++ wget pkg-config nasm yasm libglib2.0-dev flex bison gobject-introspection libgirepository1.0-dev \
ca-certificates tar g++ wget pkg-config libglib2.0-dev flex bison gobject-introspection libgirepository1.0-dev \
python3-dev libx11-dev libxv-dev libxt-dev libasound2-dev libpango1.0-dev libtheora-dev libvisual-0.4-dev libgl1-mesa-dev \
libcurl4-gnutls-dev librtmp-dev libx264-dev libx265-dev libde265-dev libva-dev libtbb-dev \
patchutils
Expand Down Expand Up @@ -170,7 +186,8 @@ build_ffmpeg() {
--enable-version3 \
--enable-libivsr \
--enable-libx264 \
--enable-libx265
--enable-libx265 \
--enable-libsvtav1

make -j$(nproc)
sudo make install
Expand Down Expand Up @@ -235,6 +252,7 @@ main() {
install_openvino_from_apt "$ov_version"
fi
build_install_ivsr_sdk
build_install_svt_av1
build_ffmpeg
}

Expand Down
12 changes: 12 additions & 0 deletions ivsr_ffmpeg_plugin/dockerfiles/rockylinux9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,17 @@ RUN wget ${LIBX265} && \
make -j16 && \
make install

# Build SVT-AV1
ARG SVTAV1_VER="v4.2.0"
ARG SVTAV1_REPO="https://gitlab.com/AOMediaCodec/SVT-AV1.git"
ARG SVTAV1_DIR=${WORKSPACE}/ivsr/svt-av1
WORKDIR ${SVTAV1_DIR}
RUN git clone --branch ${SVTAV1_VER} --depth 1 ${SVTAV1_REPO} . && \
cd Build && \
cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release && \
make -j$(nproc) && \
make install

ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
ENV LD_LIBRARY_PATH=${IVSR_SDK_DIR}/lib:/usr/local/lib:$LD_LIBRARY_PATH

Expand Down Expand Up @@ -223,6 +234,7 @@ RUN ./configure \
--enable-gpl \
--enable-libx264 \
--enable-libx265 \
--enable-libsvtav1 \
--enable-version3 && \
make -j16 && \
make install
Expand Down
12 changes: 12 additions & 0 deletions ivsr_ffmpeg_plugin/dockerfiles/rockylinux9/ov2024.5s.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ RUN wget ${LIBX265} && \
make -j16 && \
make install

# Build SVT-AV1
ARG SVTAV1_VER="v4.2.0"
ARG SVTAV1_REPO="https://gitlab.com/AOMediaCodec/SVT-AV1.git"
ARG SVTAV1_DIR=${WORKSPACE}/ivsr/svt-av1
WORKDIR ${SVTAV1_DIR}
RUN git clone --branch ${SVTAV1_VER} --depth 1 ${SVTAV1_REPO} . && \
cd Build && \
cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release && \
make -j$(nproc) && \
make install

ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
ENV LD_LIBRARY_PATH=${IVSR_SDK_DIR}/lib:/usr/local/lib:$LD_LIBRARY_PATH

Expand Down Expand Up @@ -136,6 +147,7 @@ RUN ./configure \
--enable-gpl \
--enable-libx264 \
--enable-libx265 \
--enable-libsvtav1 \
--enable-version3 && \
make -j16 && \
make install
Expand Down
14 changes: 13 additions & 1 deletion ivsr_ffmpeg_plugin/dockerfiles/ubuntu22/ov2026.1.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ RUN rm -rf build && mkdir -p build && cd build && \
make install && \
echo "Building iVSR SDK finished."

# Build SVT-AV1
ARG SVTAV1_VER="v4.2.0"
ARG SVTAV1_REPO="https://gitlab.com/AOMediaCodec/SVT-AV1.git"
ARG SVTAV1_DIR=${WORKSPACE}/ivsr/svt-av1
WORKDIR ${SVTAV1_DIR}
RUN git clone --branch ${SVTAV1_VER} --depth 1 ${SVTAV1_REPO} . && \
cd Build && \
cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release && \
make -j$(nproc) && \
make install

# Build and install FFmpeg n8.1 with libivsr support
ARG FFMPEG_REPO=https://github.com/FFmpeg/FFmpeg.git
ARG FFMPEG_VERSION=n8.1
Expand Down Expand Up @@ -125,7 +136,8 @@ RUN ./configure \
--enable-version3 \
--enable-libivsr \
--enable-libx264 \
--enable-libx265 && \
--enable-libx265 \
--enable-libsvtav1 && \
make -j16 && \
make install

Expand Down
Loading