2022-12-16 08:18:02 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
2020-07-28 06:45:11 +00:00
|
|
|
set -e
|
|
|
|
|
2024-04-28 07:29:37 +00:00
|
|
|
DEFAULT_BRANCH="$GST_UPSTREAM_BRANCH"
|
|
|
|
|
2024-08-05 08:21:50 +00:00
|
|
|
pip3 install meson==1.5.1 --break-system-packages
|
2020-04-15 13:12:22 +00:00
|
|
|
|
2021-09-29 07:31:22 +00:00
|
|
|
# gstreamer-rs already has a 'gstreamer' directory so don't clone there
|
|
|
|
pushd .
|
|
|
|
cd ..
|
2022-12-16 08:13:43 +00:00
|
|
|
git clone https://gitlab.freedesktop.org/gstreamer/gstreamer.git \
|
|
|
|
--depth 1 \
|
2024-04-28 07:29:37 +00:00
|
|
|
--branch "$DEFAULT_BRANCH"
|
2022-12-16 08:13:43 +00:00
|
|
|
|
2021-09-29 07:31:22 +00:00
|
|
|
cd gstreamer
|
2020-04-15 13:12:22 +00:00
|
|
|
|
2021-10-21 09:37:27 +00:00
|
|
|
# plugins required by tests
|
2024-08-19 07:22:03 +00:00
|
|
|
PLUGINS=(
|
|
|
|
-Dgst-plugins-base:ogg=enabled
|
|
|
|
-Dgst-plugins-base:vorbis=enabled
|
|
|
|
-Dgst-plugins-base:theora=enabled
|
|
|
|
-Dgst-plugins-good:matroska=enabled
|
|
|
|
-Dgst-plugins-good:vpx=enabled
|
|
|
|
-Dgst-plugins-bad:opus=enabled
|
|
|
|
-Dgst-plugins-ugly:x264=enabled
|
|
|
|
)
|
2021-10-21 09:37:27 +00:00
|
|
|
|
2022-12-16 08:19:28 +00:00
|
|
|
meson setup build \
|
2024-08-19 07:22:03 +00:00
|
|
|
-Dprefix=/usr/local \
|
|
|
|
-Dgpl=enabled \
|
|
|
|
-Dugly=enabled \
|
|
|
|
-Dexamples=disabled \
|
|
|
|
-Dgtk_doc=disabled \
|
|
|
|
-Dintrospection=disabled \
|
|
|
|
-Dlibav=disabled \
|
|
|
|
-Dpython=disabled \
|
|
|
|
-Dvaapi=disabled \
|
|
|
|
"${PLUGINS[@]}" "$@"
|
2022-12-16 08:19:28 +00:00
|
|
|
meson compile -C build
|
|
|
|
meson install -C build
|
2022-12-16 08:47:19 +00:00
|
|
|
ldconfig
|
2021-09-29 07:31:22 +00:00
|
|
|
|
2022-05-10 07:11:04 +00:00
|
|
|
cd ..
|
|
|
|
rm -rf gstreamer/
|
|
|
|
|
2022-12-16 07:59:11 +00:00
|
|
|
# Check what plugins we installed
|
|
|
|
gst-inspect-1.0
|
|
|
|
|
2021-10-21 09:37:27 +00:00
|
|
|
popd
|