87.2 Setup DVB-T

The dvb-apps, dvb-apps, dvb-apps package provides command line tools to access the functionality of a DVB-T device (as well as other DVB devices). Install the dvb-apps, dvb-apps, dvb-apps package:

$ wajig install dvb-apps

We can scan for our local television stations, following the instructions in http://www.linuxtv.org/wiki/index.php/Testing_your_DVB_device. The folder /usr/share/dvb/dvb-t is provided by dvb-apps, dvb-apps, dvb-apps and contains some known stations.

$ mkdir ~/.tzap
$ scan /usr/share/dvb/dvb-t/au-canberra > ~/.tzap/channels.conf

You should then see something like:

scanning /usr/share/doc/dvb-utils/examples/scan/dvb-t/au-canberra
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
initial transponder 205625000 1 3 3 3 1 1 0
initial transponder 177500000 1 2 9 3 1 2 0
initial transponder 191625000 1 3 9 3 1 1 0
initial transponder 219500000 1 3 1 3 1 1 0
initial transponder 543500000 1 2 9 3 1 2 0
>>> tune to: 205625000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE
Network Name 'ABC Southern NSW'
0x0000 0x0210: pmt_pid 0x0102 ABC -- ABC HDTV (running)
0x0000 0x0211: pmt_pid 0x0100 ABC -- ABC TV Canberra (running)
0x0000 0x0212: pmt_pid 0x0101 ABC -- ABC2 (running)
0x0000 0x0213: pmt_pid 0x0103 ABC -- ABC TV (running)
0x0000 0x0216: pmt_pid 0x0104 ABC -- ABC DiG Radio (running)
0x0000 0x0217: pmt_pid 0x0105 ABC -- ABC DiG Jazz (running)
>>> tune to: 177500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE
0x0000 0x0807: pmt_pid 0x0160 Southern Cross Television -- SC10 Canberra (running)
0x0000 0x0827: pmt_pid 0x06ae Southern Cross Television -- SC10 HD (running)
...
>>> tune to: 536500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE (tuning failed)
WARNING: >>> tuning failed!!!
dumping lists (22 services)
Done.

The channels.conf can also be used by gxine by copying it into /home/kayon/.xine. Then startup gxine and choose DVB from the File option.

The file channels.conf now contains a list of available stations. Pick one to play and tell tzap to stream it:

$ tzap -r "ABC1"

or

$ tzap -r -c ~/.tzap/channels.conf "ABC1"

Then in another terminal:

$ mplayer /dev/dvb/adapter0/dvr0


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0