1.安装依赖库
sudo build-essential autotools-dev automake autoconf libtool autopoint libxml2-dev zlib1g-dev libglib2.0-dev pkg-config bison flex python3 git gtk-doc-tools libasound2-dev libgudev-1.0-dev libxt-dev libvorbis-dev libcdparanoia-dev libpango1.0-dev libtheora-dev libvisual-0.4-dev iso-codes libgtk-3-dev libraw1394-dev libiec61883-dev libavc1394-dev libv4l-dev libcairo2-dev libcaca-dev libspeex-dev libpng-dev libshout3-dev libjpeg-dev libaa1-dev libflac-dev libdv4-dev libtag1-dev libwavpack-dev libpulse-dev libsoup2.4-dev libbz2-dev libcdaudio-dev libdc1394-22-dev ladspa-sdk libass-dev libcurl4-gnutls-dev libdca-dev libdvdnav-dev
sudo libexempi-dev libexif-dev libfaad-dev libgme-dev libgsm1-dev libiptcdata0-dev libkate-dev libmimic-dev libmms-dev libmodplug-dev libmpcdec-dev libofa0-dev libopus-dev librsvg2-dev librtmp-dev libsndfile1-dev libsoundtouch-dev libspandsp-dev libx11-dev libxvidcore-dev libzbar-dev libzvbi-dev liba52-0.7.4-dev libcdio-dev libdvdread-dev libmad0-dev libmp3lame-dev libmpeg2-4-dev libopencore-amrnb-dev libopencore-amrwb-dev
sudo apt install libsidplay1-dev libtwolame-dev libx264-dev python-gi-dev yasm python3-dev libgirepository1.0-dev libx265-dev
sudo apt install libusb-dev libva-dev libbs2b-dev libchromaprint-dev libssh2-1-dev libdirectfb-dev libfaac-dev libopencv-dev libvulkan-dev libxkbcommon-x11-dev libwayland-client0 libltc-dev bluez libfdk-aac-dev libgsm1-dev liblrdf0-dev libde265-dev liblilv-0-0 libmjpegtools-dev libmpeg2encpp-2.1-0
2.下载最新的gstreamer代码:
git clone https://gitlab.freedesktop.org/gstreamer/gst-build.git
3. 编译安装:
git clone https://github.com/mesonbuild/meson.git
pip3 install ninja
meson.py build
ninja -C build
meson.py install -C build #安装
ninja -C build uninstalled #卸载