|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 07-May-2022 | - |
| Makefile.am | H A D | 23-Mar-2009 | 3.4 KiB | 201 | 151 |
| Makefile.in | H A D | 03-May-2022 | 59.3 KiB | 1,308 | 1,197 |
| README | H A D | 19-Feb-2008 | 5.9 KiB | 168 | 142 |
| caption.c | H A D | 28-Aug-2013 | 21.1 KiB | 1,029 | 739 |
| capture.c | H A D | 19-Aug-2008 | 19 KiB | 831 | 650 |
| cpptest.cc | H A D | 01-Mar-2008 | 1 KiB | 36 | 8 |
| ctest.c | H A D | 01-Mar-2008 | 1 KiB | 36 | 8 |
| date.c | H A D | 03-May-2022 | 6.9 KiB | 328 | 239 |
| decode.c | H A D | 14-Dec-2009 | 20.7 KiB | 969 | 751 |
| exoptest | H A D | 19-Jan-2005 | 63 | 5 | 1 |
| explist.c | H A D | 01-Mar-2008 | 13.8 KiB | 555 | 451 |
| export.c | H A D | 28-Aug-2013 | 29.2 KiB | 1,383 | 1,072 |
| glyph.c | H A D | 01-Mar-2008 | 5.3 KiB | 277 | 183 |
| osc.c | H A D | 01-Mar-2008 | 18.4 KiB | 828 | 611 |
| proxy-test.c | H A D | 26-Jul-2008 | 33.3 KiB | 1,029 | 806 |
| sliced.c | H A D | 28-Aug-2013 | 34.1 KiB | 1,836 | 1,437 |
| sliced.h | H A D | 01-Mar-2008 | 4.8 KiB | 195 | 150 |
| sliced2pes.c | H A D | 01-Mar-2008 | 7.8 KiB | 316 | 234 |
| test-common.cc | H A D | 04-Mar-2009 | 2.9 KiB | 172 | 110 |
| test-common.h | H A D | 04-Mar-2009 | 1.5 KiB | 60 | 25 |
| test-dvb_demux.cc | H A D | 01-Mar-2008 | 2.1 KiB | 103 | 53 |
| test-dvb_mux.cc | H A D | 01-Mar-2008 | 84.8 KiB | 3,932 | 3,032 |
| test-hamm.cc | H A D | 01-Mar-2008 | 7.3 KiB | 335 | 229 |
| test-packet-830.cc | H A D | 04-Mar-2009 | 12.5 KiB | 468 | 340 |
| test-pdc.cc | H A D | 23-Mar-2009 | 32 KiB | 1,139 | 938 |
| test-pdc.h | H A D | 04-Mar-2009 | 3.8 KiB | 156 | 106 |
| test-raw_decoder.cc | H A D | 01-Mar-2008 | 18.3 KiB | 854 | 634 |
| test-unicode | H A D | 14-Feb-2008 | 183 | 6 | 2 |
| test-vps.cc | H A D | 04-Mar-2009 | 8.3 KiB | 331 | 241 |
| ttxfilter.c | H A D | 01-Mar-2008 | 9.2 KiB | 443 | 322 |
| uclist | H A D | 01-Sep-2007 | 652 | 19 | 10 |
| unicode.c | H A D | 11-Sep-2008 | 6.9 KiB | 299 | 212 |
README
1Test programs
2
3unicode
4 Prints all Teletext and Closed Caption character sets used
5 by libzvbi in UTF-8 format. Purpose: compare against specifications
6 to verify libzvbi character code to Unicode conversions.
7
8uclist
9 Lists all Unicode characters used in a UTF-8 coded text on
10 stdin. NB this script needs access to <http://www.unicode.org/
11 Public/UNIDATA/NamesList.txt>. Purpose: verify the libzvbi built-in
12 fonts contain all required glyphs.
13
14glyph
15 Prints all Teletext and Closed Caption character sets used
16 by libzvbi as PPM images. Purpose: compare against specifications
17 to verify libzvbi exp-gfx.c Unicode to glyph conversions.
18
19explist
20 Lists all export modules and their respective options. If option
21 -c/--check given, tests the export [module] api. Use this to test
22 new modules.
23
24export
25 Exports a Teletext page from a TTX sample stream on stdin, eg.
26 ./export "text;charset=ISO-8859-1,control=1" 100 \
27 <samples/s1-swr >foo.txt
28 ./capture --sim --pal --sliced | ./export "png" 100 >foo.png
29 ./capture --pes | ./export "html" 300 >foo.html
30 Purpose: test teletext decoder and export modules. (Sample streams
31 are in CVS zapping/libvbi/samples, versions before 2003-11.)
32
33caption
34 Closed Caption test displaying a hello world message or the
35 CC sample stream on stdin, to debug the CC decoder.
36 Note this works only on a X11 5:6:5 LE display. The keys
37 F1-F8 switch between the Closed Caption channels 1-4
38 and Text channels 1-4.
39
40osc
41 Raw vbi data visualization. Purpose: test vbi device interface,
42 raw vbi decoder. Works only on X11 5:6:5 LE display.
43
44 Options:
45 -d | --device name
46 Default is /dev/vbi.
47 -s | --sim Create artificial raw vbi data instead of
48 opening a vbi device, to test decoding in
49 absence of a real source.
50 -v | --verbose Trace device access on stderr, may reveal
51 why opening a device failed.
52 -p | --pal,
53 -n | --ntsc Video standard hint for simulation and v4l.
54 When not given libzvbi may have to guess
55 which can fail. Default is PAL.
56 -1 | --v4l On Linux, use the bttv / V4L interface if
57 supported by the driver.
58 -2 | --v4l2-read
59 Use V4L2 interface in read mode.
60 -3 | --v4l2-mmap
61 Use V4L2 interface in mmap mode (default).
62 -e | --ignore-error
63 Ignore read errors.
64
65 (--long options are only available on GNU systems.)
66
67capture
68 Capture sliced vbi data. Purpose: test vbi device interface,
69 raw vbi decoder. Options:
70 -d | --device name
71 Default is /dev/vbi.
72 -s | --sim Create artificial raw vbi data instead of
73 opening a vbi device, to test decoding in
74 absence of a real source.
75 -v | --verbose Trace device access on stderr, may reveal
76 why opening a device failed. -vv enables
77 ioctl logging.
78 -p | --pal,
79 -n | --ntsc Video standard hint for simulation and v4l.
80 When not given libzvbi may have to guess
81 which can fail. Default is PAL.
82 -1 | --v4l On Linux, use the bttv / V4L interface if
83 supported by the driver.
84 -2 | --v4l2-read
85 Use V4L2 interface in read mode.
86 -3 | --v4l2-mmap
87 Use V4L2 interface in mmap mode (default).
88 -i | --pid n Use Linux DVB interface instead and filter out
89 VBI packets with this PID.
90 -e | --ignore-error
91 Ignore read errors.
92 -r | --strict n How strictly shall the raw VBI decoder match
93 VBI services against driver capabilities?
94 0 - loose, let's try anyway (default)
95 1 - medium, usually no problems with the
96 accepted services (see --verbose)
97 2 - pedantic, when the signal is good all
98 accepted services will work
99 --read Use libzvbi capture read interface (default).
100 --pull Use libzvbi capture pull interface, to test
101 if it works.
102
103 Options to write sliced vbi data _as_ASCII_ to standard output
104 (these are moving to test/decode, see there for more options):
105
106 --dump-wss Wide Screen Signalling (PAL & NTSC-Japan).
107 --dump-vps Video Programming System (PAL in DE/AT/CH).
108 --dump-sliced Everything.
109
110 Options to write sliced vbi data _in_binary_format_ to standard
111 output. This can be piped
112 "./capture <options> --pes | ./export <options>" or
113 "./capture <options> --sliced | ./decode <options>" or
114 "./capture <options> --sliced | ./caption".
115 -l | --sliced Write sliced vbi data (an old ad-hoc format).
116 -P | --pes Write DVB PES packets. Note when the source is a
117 DVB device this will not pass through but de- and
118 remultiplex PES packets. PES output is experimental,
119 use at your own risk.
120 -T | --ts Write TS packets with PID 999 (experimental)
121
122 The caption, decode and export tools all support --sliced and
123 --pes format (may require a --pes option to recognize the format).
124
125 --long options are only available on GNU & compatible systems.
126
127
128 Note you will need another application to tune in a channel,
129 for example v4lctl from the xawtv package or czap/szap/tzap from
130 the dvbutils package:
131
132 v4lctl setstation BBC
133 ./capture --device /dev/vbi --sliced | ./export text 100
134
135 tzap BBC # keep it running in another terminal window
136 ./capture --device /dev/dvb/adapter0/demux0 --pid 1234 --sliced | \
137 ./export text 100
138
139 The capture tool cannot automatically determine the PID of the
140 DVB VBI stream. To find it you will need another tool evaluating
141 the service information tables transmitted by the network, or you
142 can look for the PID of the video stream in the tzap config file
143 and try a slightly higher number.
144
145decode
146 Decodes sliced VBI data on stdin, e. g.
147 ./capture --sliced | ./decode --ttx
148 Also a test of the libzvbi low-level decoders.
149 Type ./decode -h for options.
150
151sliced2pes
152 Converts ./capture --sliced format to DVB PES. For example
153 "./capture --sliced | ./sliced2pes >file" is equivalent to
154 "./capture --pes >file".
155 Type ./sliced2pes -h for options.
156
157ttxfilter
158 Filters Teletext pages out of a VBI stream. Useful mostly
159 to extract subtitles, for example
160 "./capture --sliced | ./ttxfilter 150 777 300-400 >file".
161 Type ./ttxfilter -h for options.
162
163test-*.cc
164 Unit tests (make check).
165
166The ultimate test is http://zapping.sourceforge.net, the TV viewer this
167library was written for.
168