File:  [NetBSD Developer Wiki] / wikisrc / users / jruoho / dvb.mdwn
Revision 1.3: download - view: text, annotated - select for diffs
Wed Aug 31 06:56:54 2011 UTC (9 years, 10 months ago) by jruoho
Branches: MAIN
CVS tags: HEAD
Update.

    1: # Miscellaneous DVB Notes
    2: 
    3: ## How to test that a device is working?
    4: 
    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
    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: 
   15: 	$ scan -x 0 /usr/pkg/share/dvb/dvb-t/fi-Turku > ~/.mplayer/channels.conf
   16: 
   17: Then you should be able to already use `mplayer`:
   18: 
   19: 	$ mplayer dvb://"YLE TV1"
   20: 
   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:
   29: 
   30: 	$ tzap -r "YLE TV1"
   31: 
   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:
   37: 
   38: 	$ cat /dev/dvb/adapter0/dvr0 > file.ts
   39: 
   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