1: # Miscellaneous DVB Notes
3: ## How to test that a device is working?
5: Here is one basic way to test a [[!template id=man name="dtv" section="4"]] device. The example uses DVB-T. First install the necessary packages
7: # cd /usr/pkgsrc/multimedia/dvb-apps
8: # make install package clean
10: # cd /usr/pkgsrc/multimedia/mplayer
11: # make install package clean
13: Scan a basic `channels.conf`:
15: $ scan -x 0 /usr/pkg/share/dvb/dvb-t/fi-Turku > ~/.mplayer/channels.conf
17: Then you should be able to already use `mplayer`:
19: $ mplayer dvb://"YLE TV1"
21: Above "YLE TV1" is a channel present in the configuration file. For more
22: involved testing, one can use for instance `tzap` (or equivalently, `czap`
23: or `szap`). First prepare again the configuration file:
25: $ mkdir ~/.tzap && cd ~/.tzap
26: $ ln -s ~/.mplayer/channels.conf .
28: Then in one terminal set the driver for recording:
30: $ tzap -r "YLE TV1"
32: This gives continuous information about the signal strength, signal to noise
33: ratio (SNR), bit error rate (BER), and the number of uncorrected blocks (UNC),
34: respectively. The values typically vary across cards and are often somewhat
35: unreliable. But check for the FE_HAS_LOCK flag; it indicates whether the
36: card has locked onto a signal. If there is a lock, pipe in an another terminal:
38: $ cat /dev/dvb/adapter0/dvr0 > file.ts
40: At some point break the pipe. If the output file is empty, something is wrong.
41: Otherwise you can try to play it with `mplayer`.
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb