Annotation of wikisrc/users/jruoho/dvb.mdwn, revision 1.3
1.1 jruoho 1: # Miscellaneous DVB Notes
2:
3: ## How to test that a device is working?
4:
1.2 jruoho 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
1.1 jruoho 6:
7: # cd /usr/pkgsrc/multimedia/dvb-apps
8: # make install package clean
9:
10: # cd /usr/pkgsrc/multimedia/mplayer
11: # make install package clean
12:
13: Scan a basic `channels.conf`:
14:
1.3 ! jruoho 15: $ scan -x 0 /usr/pkg/share/dvb/dvb-t/fi-Turku > ~/.mplayer/channels.conf
1.1 jruoho 16:
17: Then you should be able to already use `mplayer`:
18:
19: $ mplayer dvb://"YLE TV1"
20:
1.3 ! jruoho 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:
! 24:
! 25: $ mkdir ~/.tzap && cd ~/.tzap
! 26: $ ln -s ~/.mplayer/channels.conf .
! 27:
! 28: Then in one terminal set the driver for recording:
1.1 jruoho 29:
30: $ tzap -r "YLE TV1"
31:
1.3 ! jruoho 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:
1.1 jruoho 37:
38: $ cat /dev/dvb/adapter0/dvr0 > file.ts
39:
1.3 ! jruoho 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