Skip to content

Instantly share code, notes, and snippets.

@j1elo
Created October 12, 2022 20:20
Show Gist options
  • Save j1elo/dd2cbd2886e861d070895c6f894034b6 to your computer and use it in GitHub Desktop.
Save j1elo/dd2cbd2886e861d070895c6f894034b6 to your computer and use it in GitHub Desktop.
How to build Kurento packages with openh264 and openh264-gst-plugin
# Run as root or add `sudo` where needed.
# General tools.
apt-get update
apt-get install --no-install-recommends git ca-certificates build-essential devscripts dpkg-dev
# openh264
{
git clone --branch 7.0.0 https://github.com/Kurento/openh264.git
cd openh264
# Install dependencies.
mk-build-deps --install --remove \
--tool="apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --no-remove --yes" \
./debian/control
# Build and install.
dpkg-buildpackage -uc -us
cd ..
dpkg -i openh264_2.3.0-0kurento1_amd64.deb || apt-get install --fix-broken
}
# openh264-gst-plugin
{
git clone https://github.com/Kurento/openh264-gst-plugin.git
cd openh264-gst-plugin
# Install dependencies.
mk-build-deps --install --remove \
--tool="apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --no-remove --yes" \
./debian/control
# Build and install.
dpkg-buildpackage -uc -us
cd ..
dpkg -i openh264-gst-plugin_1.0.0-0kurento1_amd64.deb
}
# Verify.
gst-inspect-1.0 | grep openh264
> openh264: openh264dec: OpenH264 video decoder
> openh264: openh264enc: OpenH264 video encoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment