forked from radiokit/docker-gstreamer
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
179 lines (166 loc) · 4.67 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
FROM ubuntu
ARG GST_VERSION=1.18.5
RUN apt-get -y update
# Install dependencies
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
autoconf \
automake \
autopoint \
bison \
flex \
libtool \
yasm \
nasm \
git-core \
build-essential \
gettext \
meson \
libegl1-mesa-dev \
libgl1-mesa-dev \
libgles2-mesa-dev \
libavfilter-dev \
libglib2.0-dev \
libgirepository1.0-dev \
libpthread-stubs0-dev \
libssl-dev \
liborc-dev \
libmpg123-dev \
libmp3lame-dev \
libsoup2.4-dev \
libshout3-dev \
libpulse-dev \
libva-dev \
libxv-dev \
libalsa-ocaml-dev \
libcdparanoia-dev \
libopus-dev \
libpango1.0-dev \
libvisual-0.4-dev \
libvorbisidec-dev \
libaa1-dev \
libcaca-dev \
libdv4-dev \
libflac-dev \
libjack-dev \
libtag1-dev \
libdrm-dev \
libvpx-dev \
libwavpack-dev \
libass-dev \
libzbar-dev \
libx265-dev \
libx264-dev \
libwildmidi-dev \
libvulkan-dev \
libx11-dev \
libxrandr-dev \
libwayland-dev \
wayland-protocols \
libwebp-dev \
libwebrtc-audio-processing-dev \
libvdpau-dev \
libsrtp2-dev \
libvo-aacenc-dev \
libvo-amrwbenc-dev \
libbs2b-dev \
libdc1394-22-dev \
libdts-dev \
libfaac-dev \
libfaad-dev \
libfdk-aac-dev \
libfluidsynth-dev \
libcurl-ocaml-dev \
libgme-dev \
libgsm1-dev \
librtmp-dev \
libcurl-ocaml-dev \
libjpeg-turbo8-dev \
liba52-0.7.4-dev \
libcdio-dev \
libtwolame-dev \
libx264-dev \
libmpeg2-4-dev \
libsidplay1-dev \
gobject-introspection \
libudev-dev \
python3-pip \
python3-gi \
python-gi-dev \
graphviz \
libopencv-dev
# Fetch and build GStreamer
RUN git clone -b $GST_VERSION --depth 1 git://anongit.freedesktop.org/git/gstreamer/gstreamer && \
cd gstreamer && \
git checkout $GST_VERSION && \
meson build --prefix=/usr --libdir=/usr/lib --buildtype=release && \
ninja -C build -j `nproc` && \
ninja -C build install && \
cd .. && \
rm -rvf /gstreamer
# Fetch and build gst-plugins-base
RUN git clone -b $GST_VERSION --depth 1 git://anongit.freedesktop.org/git/gstreamer/gst-plugins-base && \
cd gst-plugins-base && \
meson build --prefix=/usr --libdir=/usr/lib --buildtype=release && \
ninja -C build -j `nproc` && \
ninja -C build install && \
cd .. && \
rm -rvf /gst-plugins-base
# Fetch and build gst-plugins-good
RUN git clone -b $GST_VERSION --depth 1 git://anongit.freedesktop.org/git/gstreamer/gst-plugins-good && \
cd gst-plugins-good && \
meson build --prefix=/usr --libdir=/usr/lib --buildtype=release && \
ninja -C build -j `nproc` && \
ninja -C build install && \
cd .. && \
rm -rvf /gst-plugins-good
# Fetch and build gst-plugins-bad
RUN git clone -b $GST_VERSION --depth 1 git://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad && \
cd gst-plugins-bad && \
meson build --prefix=/usr --libdir=/usr/lib --buildtype=release && \
ninja -C build -j `nproc` && \
ninja -C build install && \
cd .. && \
rm -rvf /gst-plugins-bad
# Fetch and build gst-plugins-ugly
RUN git clone -b $GST_VERSION --depth 1 git://anongit.freedesktop.org/git/gstreamer/gst-plugins-ugly && \
cd gst-plugins-ugly && \
meson build --prefix=/usr --libdir=/usr/lib --buildtype=release && \
ninja -C build -j `nproc` && \
ninja -C build install && \
cd .. && \
rm -rvf /gst-plugins-ugly
# Fetch and build gst-libav
RUN git clone -b $GST_VERSION --depth 1 git://anongit.freedesktop.org/git/gstreamer/gst-libav && \
cd gst-libav && \
meson build --prefix=/usr --libdir=/usr/lib --buildtype=release && \
ninja -C build -j `nproc` && \
ninja -C build install && \
cd .. && \
rm -rvf /gst-libav
# Fetch and build gst-rtsp-server
RUN git clone -b $GST_VERSION --depth 1 git://anongit.freedesktop.org/git/gstreamer/gst-rtsp-server && \
cd gst-rtsp-server && \
meson build --prefix=/usr --libdir=/usr/lib --buildtype=release && \
ninja -C build -j `nproc` && \
ninja -C build install && \
cd .. && \
rm -rvf /gst-rtsp-server
# Fetch and build gstreamer-vaapi
#RUN git clone -b $GST_VERSION --depth 1 git://anongit.freedesktop.org/git/gstreamer/gstreamer-vaapi && \
# cd gstreamer-vaapi && \
# meson build --prefix=/usr --libdir=/usr/lib --buildtype=release && \
# ninja -C build -j `nproc` && \
# ninja -C build install && \
# cd .. && \
# rm -rvf /gstreamer-vaapi
# Fetch and build gst-python
RUN git clone -b $GST_VERSION --depth 1 git://anongit.freedesktop.org/git/gstreamer/gst-python && \
cd gst-python && \
meson build --prefix=/usr --libdir=/usr/lib --buildtype=release && \
ninja -C build -j `nproc` && \
ninja -C build install && \
cd .. && \
rm -rvf /gst-python
# Do some cleanup
RUN DEBIAN_FRONTEND=noninteractive apt-get clean && \
apt-get autoremove -y