Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

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:

apt update
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

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

  • No labels