version 1.2, 2011/08/30 18:35:13
|
version 1.3, 2011/08/31 06:56:54
|
Line 12 Here is one basic way to test a [[!templ
|
Line 12 Here is one basic way to test a [[!templ
|
|
|
Scan a basic `channels.conf`: |
Scan a basic `channels.conf`: |
|
|
$ scan -x 0 /usr/pkg/share/dvb/dvb-t/fi-Turku > \ |
$ scan -x 0 /usr/pkg/share/dvb/dvb-t/fi-Turku > ~/.mplayer/channels.conf |
~/.mplayer/channels.conf |
|
|
|
Then you should be able to already use `mplayer`: |
Then you should be able to already use `mplayer`: |
|
|
$ mplayer dvb://"YLE TV1" |
$ mplayer dvb://"YLE TV1" |
|
|
For more involved testing, one can use for instance `tzap` (or equivalently, |
Above "YLE TV1" is a channel present in the configuration file. For more |
`czap` or `szap`). In one terminal set the driver for recording: |
involved testing, one can use for instance `tzap` (or equivalently, `czap` |
|
or `szap`). First prepare again the configuration file: |
|
|
|
$ mkdir ~/.tzap && cd ~/.tzap |
|
$ ln -s ~/.mplayer/channels.conf . |
|
|
|
Then in one terminal set the driver for recording: |
|
|
$ tzap -r "YLE TV1" |
$ tzap -r "YLE TV1" |
|
|
This gives continous information such as the signal strength. Check that the |
This gives continuous information about the signal strength, signal to noise |
FE_HAS_LOCK flag is present. Then pipe in an another terminal: |
ratio (SNR), bit error rate (BER), and the number of uncorrected blocks (UNC), |
|
respectively. The values typically vary across cards and are often somewhat |
|
unreliable. But check for the FE_HAS_LOCK flag; it indicates whether the |
|
card has locked onto a signal. If there is a lock, pipe in an another terminal: |
|
|
$ cat /dev/dvb/adapter0/dvr0 > file.ts |
$ cat /dev/dvb/adapter0/dvr0 > file.ts |
|
|
At some point break and try to play the output file with `mplayer`. |
At some point break the pipe. If the output file is empty, something is wrong. |
|
Otherwise you can try to play it with `mplayer`. |