@@ -20,10 +20,19 @@ RUN apt-get update -y && \
20
20
openssl \
21
21
libssl-dev \
22
22
cmake \
23
+ automake \
24
+ meson \
23
25
yasm \
24
26
build-essential \
25
27
libtool \
26
28
autoconf \
29
+ xorg \
30
+ xorg-dev \
31
+ openbox \
32
+ libx11-dev \
33
+ libgl1 \
34
+ libglx-mesa0 \
35
+ libdrm-dev \
27
36
libv4l-dev \
28
37
libva-drm2 \
29
38
libva2 \
@@ -53,6 +62,33 @@ RUN apt-get update -y && \
53
62
libxcb-shape0-dev \
54
63
zlib1g-dev
55
64
65
+ # Build the newest libva
66
+ RUN git clone https://github.com/intel/libva.git /tmp/libva && \
67
+ cd /tmp/libva && \
68
+ ./autogen.sh --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu && \
69
+ make -j$(nproc) && \
70
+ make install
71
+
72
+ # Build the newest gmmlib (dependency for media-driver)
73
+ RUN git clone https://github.com/intel/gmmlib.git /tmp/gmmlib && \
74
+ cd /tmp/gmmlib && \
75
+ mkdir build && cd build && \
76
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
77
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu \
78
+ -DCMAKE_BUILD_TYPE=ReleaseInternal .. && \
79
+ make -j$(nproc) && \
80
+ make install
81
+
82
+ # Build the newest media-driver
83
+ RUN git clone https://github.com/intel/media-driver.git /tmp/media-driver && \
84
+ cd /tmp/media-driver && \
85
+ mkdir build_media && cd build_media && \
86
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
87
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu \
88
+ ../ && \
89
+ make -j$(nproc) && \
90
+ make install
91
+
56
92
# install and patch ffmpeg
57
93
RUN mkdir -p /dist && cd /dist && \
58
94
curl -OLk http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.gz && \
@@ -105,8 +141,11 @@ FROM $DEPLOY_IMAGE
105
141
106
142
COPY --from=builder /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
107
143
COPY --from=builder /ffmpeglibs /ffmpeglibs
144
+ COPY --from=builder /usr/lib/x86_64-linux-gnu usr/lib/x86_64-linux-gnu
108
145
109
146
ENV DEBIAN_FRONTEND=noninteractive
147
+ ENV LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
148
+ ENV LD_RUN_PATH=/usr/lib/x86_64-linux-gnu
110
149
111
150
RUN echo "/ffmpeglibs" > /etc/ld.so.conf.d/ffmpeg.conf && \
112
151
ldconfig && \
@@ -118,14 +157,11 @@ RUN echo "/ffmpeglibs" > /etc/ld.so.conf.d/ffmpeg.conf && \
118
157
fbset \
119
158
x265 \
120
159
libssl3 \
121
- libva-drm2 \
122
- libva2 \
123
160
zlib1g \
124
161
i965-va-driver-shaders \
125
- intel-media-va-driver-non-free \
126
162
libasound2-dev && \
127
163
ffmpeg -buildconf
128
164
129
165
WORKDIR /tmp
130
166
ENTRYPOINT ["/usr/local/bin/ffmpeg"]
131
- CMD ["-version"]
167
+ CMD ["-version"]
0 commit comments