0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu24 で GStreamerを使ったAV1ストリーミング

Last updated at Posted at 2024-08-25

Windowsのchocoインストールではrtpav1pay/rtpav1depayがありますが、Ubuntuでは見つかりませんでした

Rustで書かれたgst-plugins-rsにあるようですがUbuntu24のaptインストールで見つからなかったのでビルドしてインストールしました

# ビルドツールをインストール
$ sudo apt install build-essential cmake meson ninja-build libgstreamer1.0-dev libglib2.0-dev libsodium-dev libdav1d-dev nasm libgtk-4-dev libssl-dev
# Fedora
# sudo dnf install meson ninja-build gcc clang libtool autoconf automake nasm cmake gtk4-devel nasm pango-devel  cairo-gobject-devel libwebp-devel libsodium-devel rust-dav1d-sys-devel

$ cargo install cargo-c
$ rustc --version

# コードを取得
$ git clone https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs
$ cd gst-plugins-rs

# ビルド
$ meson setup builddir
# meson setup --reconfigure builddir

$ meson compile -C builddir

# インストール
$ cd builddir
$ sudo ninja install

# 確認
$ export GST_PLUGIN_PATH=/usr/local/lib/x86_64-linux-gnu/gstreamer-1.0
# Fedora
# export GST_PLUGIN_PATH=/usr/local/lib64/gstreamer-1.0

$ gst-inspect-1.0 | grep av1
rsrtp:  rtpav1depay: RTP AV1 Depayloader
rsrtp:  rtpav1pay: RTP AV1 payloader

$ gst-inspect-1.0 rtpav1pay
Factory Details:
  Rank                     marginal (64)
  Long-name                RTP AV1 payloader
  Klass                    Codec/Payloader/Network/RTP
  Description              Payload AV1 as RTP packets
  Author                   Vivienne Watermeier <vwatermeier@igalia.com>
  Documentation            https://gstreamer.freedesktop.org/documentation/rsrtp/rtpav1pay.html

Plugin Details:
  Name                     rsrtp
  Description              GStreamer Rust RTP Plugin
  Filename                 /usr/local/lib/x86_64-linux-gnu/gstreamer-1.0/libgstrsrtp.so
  Version                  0.14.0-alpha.1-7e912b0d
  License                  MPL-2.0
  Source module            gst-plugin-rtp
  Documentation            https://gstreamer.freedesktop.org/documentation/rsrtp/
  Source release date      2024-08-23
  Binary package           gst-plugin-rtp
  Origin URL               https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?