-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
139 lines (106 loc) · 5.74 KB
/
README
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
ZVBI library interface module for Perl
--------------------------------------
Name: Video-ZVBI
Version: 1.1.1
Date: May 2020
DLSIP-code: RcdOg
- stable release
- C compiler required for installation
- support by developer
- object oriented using blessed references
- licensed under GPL (GNU General Public License)
Supported OS: Linux, FreeBSD, NetBSD, OpenBSD
Author: TOMZO (T. Zoerner <tomzo AT users.sourceforge.net>)
URL: https://github.com/tomzox/Perl-Video-ZVBI
Description
-----------
This Perl module provides an object-oriented interface to the ZVBI
library. The ZVBI library allows accessing broadcast data services such
as teletext and closed caption via analog video or DVB capture devices.
Official ZVBI library description:
"The ZVBI library provides routines to access raw VBI sampling devices
(currently the Linux DVB & V4L2 APIs and the FreeBSD, OpenBSD,
NetBSD and BSDi bktr driver API are supported), a versatile raw VBI
bit slicer, decoders for various data services and basic search, render
and export functions for text pages. The library was written for the
Zapping TV viewer and Zapzilla Teletext browser."
The ZVBI module for Perl covers all exported libzvbi functions.
The Perl interface is largely based on blessed references to binary
pointers. Internally the module uses the native C structures of libzvbi
as far as possible. Only in the last step, when a Perl script wants
to manipulate captured data directly (i.e. not via library functions),
the structures' data is converted into Perl data types. This approach
allows for a pretty snappy performance.
Best starting point to get familiar with the module is having a look at
the "Class Hierarchy", description of the main classes in the API
documentation and the example scripts provided in the "examples/"
sub-directory, which demonstrate use of all the main classes. (The
examples are a more or less direct C to Perl ports of the respective
programs in the "test/" sub-directory of the libzvbi source tree, plus a
few additions, such as a teletext level 2.5 browser implemented in apx.
300 lines of Perl::Tk.) A description of all example scripts can be found
in the API documentation in section "Examples". Additionally you can look
at the ZVBI home at <http://zapping.sourceforge.net/ZVBI/index.html> and
the ZVBI library documentation (unfortunately not available online; built
via doxygen when compiling the library).
Finally note there is an equivalent module called "Zvbi" for Python at
<https://pypi.org/project/Zvbi/>.
Comparison with the Video-Capture-VBI module
---------------------------------------------
You may have noticed there already is a Perl module which provides similar
functionality. The approach is completely different though: The older VBI
module contains an actual implementation of a teletext and VPS slicers and
databases, while ZVBI is an interface layer to an external C library.
Besides that, the reason for not just contributing code to the
existing module was that libzvbi alone can almost entirely replace
the older VBI module (i.e. it covers the same functionality, except
currently for the high-level "nexTView" EPG decoding.) So there would
not much to be gained by merging the code. On the other hand, libzvbi
supports much more platforms, drivers (e.g. V4L2, DVB, BSD) and services,
so that it seems warranted to make that available to the Perl universe.
Installation
------------
Pre-requisite to the installation is a C compiler and the libzvbi
library (oldest supported version is 0.2.16, or 0.2.4 when disabling
USE_DL_SYM in Makefile.PL) which in turn requires the pthreads and
PNG libraries. Once you have these, installation is done in the
usual steps:
perl Makefile.PL
make
make install
However cleaner than installing directly is generating a package and
installing that, as this will ensure dependencies are available and
allow for easy removal of installed files. The repository at the
homepage listed above contains a script called create_deb.sh that
automatically creates such a package for Debian (or Ubuntu).
Note there are no dependencies on other Perl modules by the module
itself. Some of provided example scripts however depend on Perl::Tk.
Trouble-shooting note: By default the module compiles against an
internal copy of libzvbi.h and loads symbols added in recent library
versions during module start from the shared library. If your compiled
module doesn't load, try disabling compile switches USE_DL_SYM and
USE_LIBZVBI_INT in Makefile.PL
Bug Reports
-----------
Please submit bug reports relating to the interface module via
CPAN <https://metacpan.org/pod/Video::ZVBI>.
If your bug report or request relates to libzvbi rather than the
interface module, please contact the libzvbi authors, preferably
via the zapping mailing list (<http://zapping.sourceforge.net/>)
In case of capture problems, please make sure to specify which
operating system and hardware you are using, and of course which
version of libzvbi and which version of Perl and the ZVBI module
respectively.
Copyright
---------
Copyright (C) 2006-2020 T. Zoerner.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.