Skip to content

Commit 6a7fef5

Browse files
committed
build: build libaom in the docker image
1 parent 2fcca58 commit 6a7fef5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docker/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,29 @@ RUN if [ "${FFMPEG_INSTALL_METHOD}" = "source" ]; then \
203203
libavformat-dev \
204204
libavutil-dev \
205205
libswscale-dev \
206+
libaom-dev \
207+
libaom3 \
206208
&& rm -rf /var/lib/apt/lists/*; \
207209
fi
208210

211+
# Install AV1 reference decoder (libaom)
212+
RUN apt-get update && apt-get install -y --no-install-recommends \
213+
git \
214+
cmake \
215+
build-essential \
216+
&& mkdir /tmp/aom-tools \
217+
&& cd /tmp/aom-tools \
218+
&& git clone --depth 1 https://aomedia.googlesource.com/aom \
219+
&& mkdir -p aom/build \
220+
&& cd aom/build \
221+
&& cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_TESTS=OFF -DENABLE_DOCS=OFF -DENABLE_EXAMPLES=ON .. \
222+
&& make -j$(nproc) \
223+
&& make install \
224+
&& cd / && rm -rf /tmp/aom-tools \
225+
&& apt-get remove -y git cmake build-essential \
226+
&& apt-get autoremove -y \
227+
&& rm -rf /var/lib/apt/lists/*
228+
209229
# GStreamer installation (2 methods: system, source)
210230
# Method "source": Build GStreamer from source (needed for new versions on old distros)
211231
# Note: gst-libav is disabled when building from source to avoid FFmpeg API incompatibilities

0 commit comments

Comments
 (0)