Update Ubuntu Gstreamer to the target version:
1 . Enter root user
sudo -s
2 . Connect the internet
Connect the network cable and make sure the network is unobstructed.
If no IP, please run dhclient -i eth0
.
3 . Check the internet:
4 . Setting up compile environment:
apt install -y build-essential meson ninja-build python3-pip bison libglib2.0-dev flex pip3 install --upgrade meson
5 . Install GStreamer:
Insert an SD card or disk as a build directory, for example:
mount /dev/sda1 /mnt cd /mnt/
Get the GStreamer package and build:
wget https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.20.1.tar.xz tar -xf gstreamer-1.20.1.tar.xz cd gstreamer-1.20.1 meson build --prefix=/usr ninja -C build ninja -C build install
6 . Check
gst-inspect-1.0 --version
7 . Install other package as step 5, path:
https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.20.1.tar.xz
https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.20.1.tar.xz
https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.20.1.tar.xz
https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-1.20.1.tar.xz
8 . Running test cmd:
gst-launch-1.0 -v videotestsrc ! timeoverlay ! x264enc ! mp4mux ! filesink location=test.mp4