Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Update Ubuntu Gstreamer to the target version:

1 . Enter root user

Code Block
sudo -s 

2 . Connect the internet

Connect the network cable and make sure the network is unobstructed.

image-20240627-031112.png

If no IP, please run dhclient -i eth0.

3 . Check the internet:

image-20240627-031359.png

4 . Setting up compile environment:

Code Block
apt update
apt install -y build-essential meson ninja-build python3-pip bison libglib2.0-dev flex libx264-dev
pip3 install --upgrade meson 

5 . Install GStreamer:

Get the GStreamer package and build:

Code Block
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

image-20240627-031717.png

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

image-20240627-031806.png