# Miscellaneous DVB Notes
## How to test that a device is working?
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
# cd /usr/pkgsrc/multimedia/dvb-apps
# make install package clean
# cd /usr/pkgsrc/multimedia/mplayer
# make install package clean
Scan a basic `channels.conf`:
$ scan -x 0 /usr/pkg/share/dvb/dvb-t/fi-Turku > \
~/.mplayer/channels.conf
Then you should be able to already use `mplayer`:
$ mplayer dvb://"YLE TV1"
For more involved testing, one can use for instance `tzap` (or equivalently,
`czap` or `szap`). In one terminal set the driver for recording:
$ tzap -r "YLE TV1"
This gives continous information such as the signal strength. Check that the
FE_HAS_LOCK flag is present. Then pipe in an another terminal:
$ cat /dev/dvb/adapter0/dvr0 > file.ts
At some point break and try to play the output file with `mplayer`.
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb