Skip to content

Instantly share code, notes, and snippets.

@edorgeville
Last active June 13, 2024 13:37
Show Gist options
  • Save edorgeville/64d01c25f99fa3fd76a3b7b27f27f6e3 to your computer and use it in GitHub Desktop.
Save edorgeville/64d01c25f99fa3fd76a3b7b27f27f6e3 to your computer and use it in GitHub Desktop.
gst-plugin-ndi in Docker
# This Dockerfile installs required dependencies and builds
# the gst-plugin-ndi gstreamer plugin.
# Uncomment lines 9 through 23 if you want to install all
# available gstreamer plugins and CLI tools.
FROM rust
RUN apt-get update && apt-get install -y \
# libgstreamer-plugins-base1.0-dev \
# libgstreamer-plugins-bad1.0-dev \
# gstreamer1.0-plugins-base \
# gstreamer1.0-plugins-base-apps \
# gstreamer1.0-plugins-good \
# gstreamer1.0-plugins-bad \
# gstreamer1.0-plugins-ugly \
# gstreamer1.0-libav \
# gstreamer1.0-tools \
# gstreamer1.0-x \
# gstreamer1.0-alsa \
# gstreamer1.0-gl \
# gstreamer1.0-gtk3 \
# gstreamer1.0-qt5 \
# gstreamer1.0-pulseaudio \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
gstreamer1.0-plugins-base
ADD https://github.com/obs-ndi/obs-ndi/releases/download/4.11.1/libndi5_5.5.3-1_amd64.deb /tmp
RUN apt-get install -y /tmp/libndi5_5.5.3-1_amd64.deb
ADD https://github.com/teltek/gst-plugin-ndi.git#12656afe7d6bf5d7972549b68f9c4d35519b8a8e /tmp/ndi-plugin
RUN cargo build --manifest-path=/tmp/ndi-plugin/Cargo.toml --release
RUN install -o root -g root -m 644 /tmp/ndi-plugin/target/release/libgstndi.so /usr/lib/x86_64-linux-gnu/gstreamer-1.0/
RUN ldconfig
# RUN gst-inspect-1.0 ndi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment