Document FFMpeg compilation with libsrt on Ubuntu 20.04 and Debian Buster
This is a draft of instructions that may end up in the README:
Because of dependency licence clash, FFMpeg is not compiled with libsrt on Ubuntu 20.04 and Debian Buster. See https://salsa.debian.org/multimedia-team/ffmpeg/-/commit/4305ce13d5906224bbe5ef78e63a27fcf982cece for more informations. To fix this, you might upgrade to Ubuntu 20.10 or Debian Bullseye which include the fix, or recompile FFMpeg:
sudo apt install build-essential fakeroot devscripts openssl libsrt-dev
sudo apt build-dep ffmpeg # Install build dependencies
mkdir src && cd src
apt source ffmpeg # Download sources
cd ffmpeg-4.2.4
--- a/debian/control
+++ b/debian/control
@@ -118,6 +118,8 @@ Build-Depends:
libsoxr-dev,
# --enable-libspeex
libspeex-dev,
+# --enable-libsrt
+ libsrt-dev,
# --enable-libssh
libssh-gcrypt-dev,
# --enable-libtesseract (used only in -extra flavor)
--- a/debian/rules
+++ b/debian/rules
@@ -86,6 +85,7 @@ CONFIG := --prefix=/usr \
--enable-libsnappy \
--enable-libsoxr \
--enable-libspeex \
+ --enable-libsrt \
--enable-libssh \
--enable-libtheora \
--enable-libtwolame \
debuild -us -uc -i -I
sudo dpkg --force overwrite -i \
../libavcodec58_4.2.4-1ubuntu0.1_amd64.deb
../ffmpeg_4.2.4-1ubuntu0.1_amd64.deb
../libavutil56_4.2.4-1ubuntu0.1_amd64.deb
../libswresample3_4.2.4-1ubuntu0.1_amd64.deb
../libavfilter-extra7_4.2.4-1ubuntu0.1_amd64.deb
Edited by me5na7qbjqbrp