dvb-t linux下DVBLAST 组播软件的安装与使用

DVBlast是一个简单而强大的流媒体应用,基于Linux的DVB API开发。它打开一个DVB设备进行调整,放置PID过滤器,配置CAM的模块,组合数据包以输出RTP数据。DVBlast被设计为一个定制IRD或CID的核心,基于支持DVB的Linux核心。DVBlast 并不是对流进行一些基本处理,它不直接从文件中读取数据,只支持DVB设备,目前DVBlast为  VLC 播放器 提供 DVB 设备的支持。

vlc:http://download.videolan.org/pub/videolan/vlc/

主要特点:

  • 轻量级,占用很低的CPU和内存资源
  • 只需要libdvbpsi 的支持
  • 通过外部的程序来支持 CAM menus (MMI)
  • 不会因为重载配置文件而导致丢包
  • PID-based 或 service-based 过滤
  • EIT, SDT and TDT pass-through for EPG 信息
  • 支持 linux-dvb 中心的 S2API



要实现组播。先要安装UBUNTU操作系统。如10.10版本。

安装完后。再进行自己的DVB卡驱动安装。这个步骤请看本坛详细教程。在此跳过。

然后通过更新源安装dvblast,运行以下命令就可以正常安装了。非常方便。
apt-get install dvblast


  1. root@NFVDR-HD:~# apt-get install dvblast
  2. 正在读取软件包列表... 完成
  3. 正在分析软件包的依赖关系树
  4. 正在读取状态信息... 完成
  5. 将会安装下列额外的软件包:
  6.   libdvbpsi5
  7. 下列【新】软件包将被安装:
  8.   dvblast libdvbpsi5
  9. 升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
  10. 需要下载 0B/89.1kB 的软件包。
  11. 解压缩后会消耗掉 299kB 的额外空间。
  12. 您希望继续执行吗?[Y/n]y
  13. 选中了曾被取消选择的软件包 libdvbpsi5。
  14. (正在读取数据库 ... 系统当前共安装有 48512 个文件和目录。)
  15. 正在解压缩 libdvbpsi5 (从 .../libdvbpsi5_0.1.6-1_i386.deb) ...
  16. 选中了曾被取消选择的软件包 dvblast。
  17. 正在解压缩 dvblast (从 .../dvblast_1.2-1_i386.deb) ...
  18. 正在处理用于 man-db 的触发器...
  19. 正在设置 libdvbpsi5 (0.1.6-1) ...
  20. 正在设置 dvblast (1.2-1) ...
  21. 正在处理用于 libc-bin 的触发器...
  22. ldconfig deferred processing now taking place
复制代码


安装完后。输入dvblsast 就可以看到它相关的参数与命令。

  1. root@NFVDR-HD:~# dvblast
  2. DVBlast 1.2.0
  3. Usage: dvblast [-q] [-c <config file>] [-r <remote socket>] [-t <ttl>] [-o <SSRC IP>] [-i <RT priority>] [-a <adapter>] [-n <frontend number>] [-S <diseqc>] [-f <frequency>|-D <src mcast>:<port>|-A <ASI adapter>] [-s <symbol rate>] [-v <0|13|18>] [-p] [-b <bandwidth>] [-m <modulation] [-u] [-W] [-U] [-d <dest IP:port>] [-e] [-T]
  4. Input:
  5.   -a --adapter <adapter>
  6.   -A --asi-adapter      read packets from an ASI adapter (0-n)
  7.   -b --bandwidth        frontend bandwith
  8.   -D --rtp-input        read packets from a multicast address instead of a DVB card
  9.   -e --epg-passthrough  enable EPG pass through (EIT data)
  10.   -f --frequency        frontend frequency
  11.   -m --modulation       Modulation type
  12.     DVB-C  qpsk|qam_16|qam_32|qam_64|qam_128|qam_256 (default qam_auto)
  13.     DVB-T  qam_16|qam_32|qam_64|qam_128|qam_256 (default qam_auto)
  14.     DVB-S2 qpsk|psk_8 (default legacy DVB-S)
  15.   -n --frontend-number <frontend number>
  16.   -p --force-pulse      force 22kHz pulses for high-band selection (DVB-S)
  17.   -s --symbole-rate
  18.   -S --diseqc           satellite number for diseqc (0: no diseqc, 1-4, A or B)
  19.   -T --unique-ts-id     generate unique TS ID for each program
  20.   -u --budget-mode      turn on budget mode (no hardware PID filtering)
  21.   -v --voltage          voltage to apply to the LNB (QPSK)
  22.   -W --slow-cam         add extra delays for slow CAMs
  23. Output:
  24.   -c --config-file <config file>
  25.   -d --duplicate        duplicate all received packets to a given destination
  26.   -o --rtp-output <SSRC IP>
  27.   -t --ttl <ttl>        TTL of the output stream
  28.   -U --udp              use raw UDP rather than RTP (required by some IPTV set top boxes)
  29. Misc:
  30.   -h --help             display this full help
  31.   -i --priority <RT pritority>
  32.   -q                    be quiet (less verbosity, repeat or use number for even quieter)
  33.   -r --remote-socket <remote socket>
  34.   -V --version          only display the version
复制代码


下面讲一下如何使用:

登陆服务器端:

dvblast -i 1 -t 16 -u -f 3840000 -s 27500000 -v 18 -c cctv-free.conf

这样就是指定的一个频率

然后conf里制定N个频道

cctv-free.conf里面的内容为:

  1. 225.1.1.1:8000/udp 1 301
  2. 225.1.1.2:8000/udp 1 302
  3. 225.1.1.3:8000/udp 1 303
  4. 225.1.1.4:8000/udp 1 304
  5. 225.1.1.5:8000/udp 1 305
  6. 225.1.1.6:8000/udp 1 306
  7. 225.1.1.7:8000/udp 1 307
复制代码


这里面301 302就是制定的频道。


客户端用 vlc播放器播放 打开此地址就可以了 udp://@225.1.1.1:8000
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值