GStreamer 1.22 on Ubuntu 22.04 LTS
bishop-00median at icloud.com
bishop-00median at icloud.com
Mon Jul 3 17:44:50 UTC 2023
Please try the following. The script is a subset of a larger script that included some merges so not all of the packages will be necessary as some of them are for ffmpeg. You will also see the same package a couple of times. Ubuntu will ignore that. I am running Python 3.8.10 for library compatibility.
#basic
sudo apt-get -y update && sudo apt-get -y upgrade
sudo apt-get -y install build-essential openssh-server curl nano wget git net-tools libssl-dev
sudo apt-get update -qq && sudo apt-get -y install autoconf automake build-essential cmake git-core libass-dev libfreetype6-dev libgnutls28-dev libsdl2-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo wget zlib1g-dev yasm libx264-dev libx265-dev libnuma-dev libvpx-dev libfdk-aac-dev libmp3lame-dev libopus-dev
#PYTHON
cd ~/
wget https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz
tar -xvf ./Python-3.8.10.tgz
cd ./Python-3.8.10
./configure --enable-optimizations
make
sudo altinstall
#IGNORE THE FACT THE SOME PACKAGES ARE INSTALLED TWICE
sudo apt-get -y install build-essential
sudo apt-get -y install libsoup2.4-1 libsoup2.4-dev libsrtp2-1 libsrtp2-dev
sudo apt-get -y install autoconf automake build-essential cmake git-core libass-dev
sudo apt-get -y install libfreetype6-dev libgnutls28-dev libsdl2-dev libtool libva-dev
sudo apt-get -y install libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev
sudo apt-get -y install libxcb-xfixes0-dev pkg-config texinfo wget zlib1g-dev
sudo apt-get -y install yasm libx264-dev libx265-dev libnuma-dev libvpx-dev
sudo apt-get -y install libfdk-aac-dev libmp3lame-dev libopus-dev
sudo apt-get -y install python3-pip libssl-dev
sudo apt-get -y install libgdk-pixbuf2.0-0
#RUST
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
cargo install cargo-c
#GSTREAMER
git clone https://gitlab.freedesktop.org/gstreamer/cerbero
cd ./cerbero/
./cerbero-uninstalled bootstrap
pip3 install --user meson
pip3 install tomli
sudo cp ~/.local/bin/meson /usr/local/bin
wget https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip
unzip ninja-linux.zip
sudo cp ./ninja /usr/local/bin/
git clone https://gitlab.freedesktop.org/gstreamer/gstreamer.git
cd ./gstreamer/
mkdir builddir
meson setup builddir -Dgpl=enabled -Drs=enabled
#meson setup --wipe builddir -Dgpl=enabled -Drs=enabled
ninja -C builddir
python3 ./gst-env.py
gst-launch-1.0 --gst-version
You might need to disable some of the gst-plugins-bad. If you run into build issues, send me you output and I’ll assist.
Should you need to rerun the build, you will run the following:
meson setup --wipe builddir -Dgpl=enabled -Drs=enabled
> On Jun 30, 2023, at 9:15 AM, Bruce Weir via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:
>
> Those docker images seem to have a few problems (and do not contain version 1.22)
>
>> docker pull restreamio/gstreamer:latest-dev
>
>> docker run restreamio/gstreamer:latest-dev gst-launch-1.0 --version
>
> 0:00:00.004280056 8 0x561c8a0e6060 ERROR GST_PLUGIN_LOADING gstpluginloader.c:1161:exchange_packets: write fd 0 errored
> 0:00:00.049776151 1 0x55f14ddc1090 ERROR GST_PLUGIN_LOADING gstpluginloader.c:279:plugin_loader_replay_pending: Plugin file /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmsdk.so failed to load. Blacklisting
> gst-launch-1.0 version 1.20.2
> GStreamer 1.20.2 (GIT)
>
>
>
> Is that expected behaviour?
>
> ________________________________________
> From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of Bruce Weir via gstreamer-devel <gstreamer-devel at lists.freedesktop.org>
> Sent: 28 June 2023 09:55
> To: Discussion of the development of and with GStreamer
> Cc: Bruce Weir
> Subject: Re: GStreamer 1.22 on Ubuntu 22.04 LTS
>
> Thanks. I'll check the Docker images.
>
> ________________________________________
> From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of Michael Gruner via gstreamer-devel <gstreamer-devel at lists.freedesktop.org>
> Sent: 27 June 2023 18:07
> To: Discussion of the development of and with GStreamer
> Cc: Michael Gruner; Bruce Weir
> Subject: Re: GStreamer 1.22 on Ubuntu 22.04 LTS
>
> You can build GStreamer yourself from source. The process is well documented in the website:
>
> <https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-meson.html?gi-language=c>
> Building from source using Meson<https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-meson.html?gi-language=c>
> gstreamer.freedesktop.org<https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-meson.html?gi-language=c>
> [favicon.png]<https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-meson.html?gi-language=c>
>
> You can even have multiple GStreamer versions in parallel, using the DevEnv.
>
> There's also docker images you can check:
>
> <https://hub.docker.com/r/restreamio/gstreamer>
> Docker<https://hub.docker.com/r/restreamio/gstreamer>
> hub.docker.com<https://hub.docker.com/r/restreamio/gstreamer>
> [X]<https://hub.docker.com/r/restreamio/gstreamer>
>
> Michael
>
> On 27 Jun 2023, at 10:43, Bruce Weir via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:
>
> Installing gstreamer from the package manager in Ubuntu 22.04 LTS provides version 1.20.3. I would like to be running version 1.22 (for the WHIP integration).
>
> Is there some way to install gstreamer 1.22 manually (or from some other package repo) on Ubuntu?
>
More information about the gstreamer-devel
mailing list