关于Tvheadend

Tvheadend 是适用于 Linux的电视流媒体服务器和录像机,支持 DVB-S、DVB-S2、DVB-C、DVB-T、DVB-T2、ATSC、ISDB-T、IPTV、SAT>IP 和 HDHomeRun 作为输入来源。

Tvheadend 提供 HTTP、HTSP和 SAT>IP 流媒体。支持多种 EPG 源(over-the-air DVB and ATSC including OpenTV DVB extensions, XMLTV, PyXML)。官方源码地址

利用Tvheadend和相应的硬件设备可以非常方便的将有线、卫星、地面数字电视信号融合为IPTV流,进而方便的在各种电视盒子、手机端观看。
之前买有一款Astrometa DVB-T2/DVB-C的电视棒,USB接口,松下芯片,网上查了一下芯片正好适用Linux系统,并且Tvheadend也支持它,于是就打算在树莓派上安装Tvheadend来使用它。
Astrometa_2014版外观
Astrometa_2014版PCB顶层
Astrometa_2014版PCB底层
因为它支持DVB-C,尝试用Tvheadend转换为ip流信号用手机与盒子来播放。
地面数字电视与有线接收系统

MN88473原理框图

安装Tvheadend

1、安装必需的包并添加 Repository PGP 密钥

sudo apt-get -y install coreutils wget apt-transport-https lsb-release ca-certificates
sudo wget -qO- https://doozer.io/keys/tvheadend/tvheadend/pgp | sudo apt-key add -

注意:某些较新发行版上的apt-key可能会失败,因为它不再可用,在这种情况下,请改为运行以下命令。

wget -qO- https://doozer.io/keys/tvheadend/tvheadend/pgp | sudo tee /etc/apt/trusted.gpg.d/tvheadend.asc

2、创建并添加源列表
以开发版本(即unstable版)为例,运行下面的命令即可。

sudo sh -c 'echo "deb https://apt.tvheadend.org/unstable $(lsb_release -sc) main" | tee -a /etc/apt/sources.list.d/tvheadend.list'

而针对Raspbian系统,不能使用上述命令,需要将“$(lsb_release -sc)”替换为“raspbian-buster”、“raspbian-stretch”,目前只有raspbian-stretch版本,没有raspbian-buster。所以使用以下命令即可。

echo "deb http://apt.tvheadend.org/unstable raspbian-stretch main" | sudo tee -a /etc/apt/sources.list.d/tvheadend.list

3、更新源并安装

sudo apt-get update
sudo apt-get install tvheadend

4、第一次安装过程最后,可能会被要求输入一些详细信息,例如管理帐号与密码。如果您想稍后重新配置这些详细信息,可以运行以下命令来配置。

sudo dpkg-reconfigure tvheadend

5、配置完成后,记得重启Tvheadend服务

sudo service tvheadend restart

参考资料:官方APT Repositories页面

最后修改:2021 年 08 月 25 日
如果觉得我的文章对你有用,请随意赞赏