TUTORIAL UPDATE: Installing TVHeadend on Ubuntu 22.04

TUTORIAL UPDATE: Installing TVHeadend on Ubuntu 22.04

Based on the previous post TUTORIAL: Installing TVHeadend on Ubuntu 20.04 LTSR

The TVHeadend needed an update, so I updated the entire system to Ubuntu 22.04. I found help for this in a forum. To save you the trouble of reading through it, I’ll summarize the solution briefly.

For this, we need the file libdvbcsa.patch.

Now, enter the following in the CLI:

sudo apt-get -y install automake cmake libtool git build-essential pkg-config gettext libavahi-client-dev zlib1g-dev wget bzip2 git-core liburiparser-dev debhelper ccache dvb-apps libssl-dev libpcre2-dev python3 python3-requests libtheora-dev libiconv-hook-dev libiconv-hook1 libhdhomerun-dev libavfilter-dev libswscale-dev libavcodec-dev libavutil-dev libavformat-dev libx264-dev libx265-dev libvpx-dev libopus-dev libvorbis-dev libva-dev

git clone https://github.com/glenvt18/libdvbcsa.git

Now, the patch file needs to be placed in the “libdvbcsa” folder, and then you can proceed from here:

cd libdvbcsa
git config apply.whitespace nowarn
git apply libdvbcsa.patch
./bootstrap
./configure
make
sudo make install
cd

sudo apt-get install libdvbcsa-dev #otherwise tvheadend won't be build#

git clone https://github.com/tvheadend/tvheadend.git
cd tvheadend

#building#

AUTOBUILD_CONFIGURE_EXTRA="\
  --python=python3 \
  --disable-ffmpeg_static \
  --enable-bundle \
  --enable-ccache \
  --disable-libfdkaac_static \
  --disable-libopus_static \
  --disable-libtheora_static \
  --disable-libvorbis_static \
  --disable-libvpx_static \
  --disable-libx264_static \
  --disable-libx265_static \
  --disable-hdhomerun_static \
  --enable-hdhomerun_client \
  --enable-dvbcsa \
  --enable-libtheora \
  --enable-libav \
  --enable-libopus \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libx264 \
  --enable-libx265 \
  --disable-libfdkaac \
  --disable-pngquant \
  --disable-dvben50221 \
  --disable-dvbscan \
  --release" ./Autobuild.sh -t raspiosbookworm-aarch64

cd

sudo apt-get remove libdvbcsa-dev 
#don't know if this is nessesary, works also without removing#

sudo cp /usr/local/lib/libdvbcsa.so.1.0.1 /usr/lib/aarch64-linux-gnu

#finally installing tvheadend#

sudo dpkg -i *.deb


Done, after that, the TVHeadend server will be ready in the latest version.

2 Comments

Avatar photo
Eric Wendels Posted on19:15 - 10. April 2025

do you have a pdf file how to install ubuntu with oscam and with tv headend

Leave a Reply


This site uses Akismet to reduce spam. Learn how your comment data is processed.