• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..07-May-2022-

Makefile.amH A D23-Mar-20093.4 KiB201151

Makefile.inH A D03-May-202259.3 KiB1,3081,197

READMEH A D19-Feb-20085.9 KiB168142

caption.cH A D28-Aug-201321.1 KiB1,029739

capture.cH A D19-Aug-200819 KiB831650

cpptest.ccH A D01-Mar-20081 KiB368

ctest.cH A D01-Mar-20081 KiB368

date.cH A D03-May-20226.9 KiB328239

decode.cH A D14-Dec-200920.7 KiB969751

exoptestH A D19-Jan-200563 51

explist.cH A D01-Mar-200813.8 KiB555451

export.cH A D28-Aug-201329.2 KiB1,3831,072

glyph.cH A D01-Mar-20085.3 KiB277183

osc.cH A D01-Mar-200818.4 KiB828611

proxy-test.cH A D26-Jul-200833.3 KiB1,029806

sliced.cH A D28-Aug-201334.1 KiB1,8361,437

sliced.hH A D01-Mar-20084.8 KiB195150

sliced2pes.cH A D01-Mar-20087.8 KiB316234

test-common.ccH A D04-Mar-20092.9 KiB172110

test-common.hH A D04-Mar-20091.5 KiB6025

test-dvb_demux.ccH A D01-Mar-20082.1 KiB10353

test-dvb_mux.ccH A D01-Mar-200884.8 KiB3,9323,032

test-hamm.ccH A D01-Mar-20087.3 KiB335229

test-packet-830.ccH A D04-Mar-200912.5 KiB468340

test-pdc.ccH A D23-Mar-200932 KiB1,139938

test-pdc.hH A D04-Mar-20093.8 KiB156106

test-raw_decoder.ccH A D01-Mar-200818.3 KiB854634

test-unicodeH A D14-Feb-2008183 62

test-vps.ccH A D04-Mar-20098.3 KiB331241

ttxfilter.cH A D01-Mar-20089.2 KiB443322

uclistH A D01-Sep-2007652 1910

unicode.cH A D11-Sep-20086.9 KiB299212

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