Hi,
this are some trivial zapping applications explaining how to use the frontend
and demux API. They are also pretty useful to test your hardware.
For DVB-S, Astra Channel config file:
$ ./szap -c channels.conf-dvbs-astra n24
will tune to N24. For DVB-C, Berlin Cable channel config:
$ ./czap -c channels.conf-dvbc-berlin Arte
For DVB-T, Berlin Config:
$ ./czap -c channels.conf-dvbt-berlin phoenix
By default the MPEG stream is routed to a hardware decoder. If you want to
record the stream to disk you will route it to the DVR device by using the
'-r' option:
$ ./czap -c channels.conf-dvbt-berlin phoenix -r
[keep it running in one console]
$ cat /dev/dvr/adapter0/dvr0 > /tmp/recording.ts
[in a second console, will dump the MPEG transport stream to /tmp/recording.ts]
The status messages have the following meaning:
status 0x1f --- The demodulator status bits.
0x1f means all bits set, everything ok.
signal [0x0000...0xffff] --- Signal Strength. Values above 0x8000 should be ok.
snr [0x0000...0xffff] --- Signal/Noise Ratio. Values above 0x8000 are ok.
ber [0...0xffffffff] --- Bit Error Rate. The less the better.
unc [0...0xffffffff] --- Number of Uncorrectable Blocks.
Small numbers are Preferable.
If everything is alright and all frontend circuits are working stable
(are locked) you should see a FE_HAS_LOCK in the rightmost line.
Good luck,
Holger
8932e55800641ab987604'>refslogtreecommitdiffstats
blob: 372df8eb585e09e9e28b856c57bd773e676c9e11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
0x00 KEY_0
0x01 KEY_1
0x02 KEY_2
0x03 KEY_3
0x04 KEY_4
0x05 KEY_5
0x06 KEY_6
0x07 KEY_7
0x08 KEY_8
0x09 KEY_9
0x0c KEY_POWER
0x0a KEY_BACK
0xfe KEY_SCROLLUP
0xff KEY_SCROLLDOWN
0x40 KEY_GOTO
0x86 KEY_KEYBOARD
0x87 KEY_RED
0xda KEY_GREEN
0xf3 KEY_YELLOW
0x88 KEY_BLUE
0x82 KEY_HOME
0x54 KEY_MENU
0x58 KEY_UP
0x59 KEY_DOWN
0x5a KEY_LEFT
0x5b KEY_RIGHT
0x5c KEY_OK
0xf0 KEY_CHANNELUP
0xef KEY_CHANNELDOWN
0x10 KEY_VOLUMEUP
0x11 KEY_VOLUMEDOWN
0x81 KEY_INFO
0x0d KEY_MUTE
0x2f KEY_REWIND
0x2c KEY_PLAYPAUSE
0x2e KEY_FASTFORWARD
0x37 KEY_RECORD
0x21 KEY_PREVIOUS
0x31 KEY_STOP
0x20 KEY_NEXT
0x42 KEY_EJECTCD
|