From 305722e5d69ef7ea5f8df7a8cbf1a284370b55ca Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Mon, 18 Jul 2022 16:54:38 +0800 Subject: [PATCH] =?UTF-8?q?docker=E5=BC=80=E5=90=AFffmpeg=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index 4a9160c5..af7368c9 100644 --- a/dockerfile +++ b/dockerfile @@ -29,6 +29,7 @@ RUN apt-get update && \ libfaac-dev \ gcc \ g++ \ + libavcodec-dev libavutil-dev libswscale-dev libresample-dev \ gdb && \ apt-get autoremove -y && \ apt-get clean -y && \ @@ -43,7 +44,7 @@ WORKDIR /opt/media/ZLMediaKit RUN mkdir -p build release/linux/${MODEL}/ WORKDIR /opt/media/ZLMediaKit/build -RUN cmake -DCMAKE_BUILD_TYPE=${MODEL} -DENABLE_WEBRTC=true -DENABLE_TESTS=false -DENABLE_API=false .. && \ +RUN cmake -DCMAKE_BUILD_TYPE=${MODEL} -DENABLE_WEBRTC=true -DENABLE_FFMPEG=true -DENABLE_TESTS=false -DENABLE_API=false .. && \ make -j $(nproc) FROM ubuntu:18.04 @@ -65,6 +66,7 @@ RUN apt-get update && \ ffmpeg \ gcc \ g++ \ + libavcodec-dev libavutil-dev libswscale-dev libresample-dev \ gdb && \ apt-get autoremove -y && \ apt-get clean -y && \