| 1 |
.TH "dvbv5-zap" 1 "Fri Oct 3 2014" "DVBv5 Utils @MAN_PACKAGE_VERSION@" "User Commands" |
| 2 |
.SH NAME |
| 3 |
dvbv5\-zap \- DVBv5 tool for service tuning |
| 4 |
.SH SYNOPSIS |
| 5 |
.B dvbv5\-zap |
| 6 |
[\fIOPTION\fR]... \fBchannel-name\fR |
| 7 |
.PP |
| 8 |
.B dvbv5\-zap |
| 9 |
[\fIOPTION\fR]... \fBfrequency-name\fR (for monitor or all PIDs mode) |
| 10 |
.SH DESCRIPTION |
| 11 |
dvbv5\-zap is a command line tuning tool for digital TV services that is |
| 12 |
compliant with version 5 of the DVB API, and backward compatible with the |
| 13 |
older v3 DVB API. |
| 14 |
.PP |
| 15 |
dvbv5\-zap uses by default a new channel/service file format that it is |
| 16 |
capable of supporting all types of Digital TV standards. It can also support |
| 17 |
the legacy format used by the legacy dvb\-apps. |
| 18 |
.PP |
| 19 |
The dvbv5\-zap tool can be used on several different modes, depending |
| 20 |
on the parameters used. |
| 21 |
.PP |
| 22 |
Please note that, in order to be able to use it in record mode, where both |
| 23 |
the audio and video Packet IDs (PIDs) are output to a dvr record node, |
| 24 |
the input file should contain the PIDs, e. g. they should have been produced |
| 25 |
by a digital TV zap application like dvbv5-zap. |
| 26 |
.SH "OPTIONS" |
| 27 |
.TP |
| 28 |
\fB\-c\fR, \fB\-\-channels\fR= \fBchannel-name-file\fR |
| 29 |
Read channels list from 'file'. |
| 30 |
Defaults to \fB~/.tzap/channels.conf\fR. |
| 31 |
.TP |
| 32 |
\fB\-3\fR, \fB\-\-dvbv3\fR |
| 33 |
Force dvbv5\-zap to use DVBv3 only. |
| 34 |
Useful to test if the legacy API support is working. |
| 35 |
.TP |
| 36 |
\fB\-a\fR, \fB\-\-adapter\fR=\fIadapter#\fR |
| 37 |
Use the given adapter. Default value: 0. |
| 38 |
.TP |
| 39 |
\fB\-A\fR, \fB\-\-audio_pid\fR=\fIaudio_pid#\fR |
| 40 |
Select a different audio Packet ID (PID). |
| 41 |
The default is to use the first audio PID found at the \fBchannel-name-file\fR. |
| 42 |
.TP |
| 43 |
\fB\-C\fR, \fB\-\-cc\fR=\fIcountry_code\fR |
| 44 |
Set the default country to be used by the MPEG-TS parsers, in ISO 3166-1 two |
| 45 |
letter code. If not specified, the default charset is guessed from the |
| 46 |
locale environment variables. |
| 47 |
.TP |
| 48 |
\fB\-d\fR, \fB\-\-demux\fR=\fIdemux#\fR |
| 49 |
Use the given demux. Default value: 0. |
| 50 |
.TP |
| 51 |
\fB\-f\fR, \fB\-\-frontend\fR=\fIfrontend#\fR |
| 52 |
Use the given frontend. Default value: 0. |
| 53 |
.TP |
| 54 |
\fB\-I\fR, \fB\-\-input\-format\fR=\fIformat\fR |
| 55 |
Format of the input file. Please notice that caps is ignored. It can be: |
| 56 |
.RS |
| 57 |
.TP |
| 58 |
\fIchannel\fR \- for dvb-apps compatible channel file; |
| 59 |
.PP |
| 60 |
\fIzap\fR \- for dvb-apps compatible zap file; |
| 61 |
.PP |
| 62 |
\fIdvbv5\fR (default) \- for the dvbv5 apps format. |
| 63 |
.RE |
| 64 |
.TP |
| 65 |
\fB\-l\fR, \fB\-\-lnbf\fR=\fILNBf_type\fR |
| 66 |
Type of LNBf to use 'help' lists the available ones. |
| 67 |
.TP |
| 68 |
\fB\-L\fR, \fB\-\-search\fR=\fIstring\fR |
| 69 |
Search/look for a string inside the traffic. |
| 70 |
Used only on monitor mode. |
| 71 |
.TP |
| 72 |
\fB\-m\fR, \fB\-\-monitor\fR |
| 73 |
Enable monitor mode. On this mode, it will monitor de DVB traffic for all |
| 74 |
Packet IDs (PIDs) received by the device, showing the Packet IDs (optionally |
| 75 |
filtered by a \fIstring\fR), and presenting some traffic statistics: |
| 76 |
number of packets per second, number of Kbytes per second and total traffic. |
| 77 |
Those statistics are shown per PID and the total per MPEG-TS. |
| 78 |
.TP |
| 79 |
\fB\-o\fR, \fB\-\-output\fR=\fIfile\fR |
| 80 |
Output filename. If specified, it will output the content of the MPEG-TS into |
| 81 |
the file with the first video PID and the first audio PID (or the one specified |
| 82 |
by \fIaudio_pid#\fR). |
| 83 |
Use \fB\-o\fR \- for directing the output to \fBstdout\fR. |
| 84 |
.TP |
| 85 |
\fB\-p\fR, \fB\-\-pat\fR |
| 86 |
Add PAT and PMT MPEG-TS tables to TS recording (implies \fB\-r)\fR. |
| 87 |
.TP |
| 88 |
\fB\-P\fR, \fB\-\-all\-pids\fR |
| 89 |
Don't filter any pids. Instead, outputs all of them. |
| 90 |
.TP |
| 91 |
\fB\-r\fR, \fB\-\-record\fR |
| 92 |
Sets up the /dev/dvb/adapter\fIadapter#\fR/dvr0 for MPEG-TS record. |
| 93 |
.TP |
| 94 |
\fB\-s\fR, \fB\-\-silence\fR |
| 95 |
Increases silence (can be used more than once). |
| 96 |
.TP |
| 97 |
\fB\-S\fR, \fB\-\-sat_number\fR=\fIsatellite_number\fR |
| 98 |
Satellite number. |
| 99 |
Used only on satellite delivery systems. |
| 100 |
If not specified, disable DISEqC satellite switch. |
| 101 |
.TP |
| 102 |
\fB\-t\fR, \fB\-\-timeout\fR=\fIseconds\fR |
| 103 |
Amount of seconds to keep the tool running for zapping and for recording. |
| 104 |
Useful if you want to record a program that you know its duration. |
| 105 |
.TP |
| 106 |
\fB\-U\fR, \fB\-\-freq_bpf\fR=\fIfrequency\fR |
| 107 |
SCR/Unicable band-pass filter frequency to use, in kHz. |
| 108 |
Used only on satellite delivery systems. |
| 109 |
.TP |
| 110 |
\fB\-v\fR, \fB\-\-verbose\fR |
| 111 |
Be verbose. Useful to check if the MPEG-TS is happenning fine. |
| 112 |
This option can be used multiple times to increase verbosity. |
| 113 |
.TP |
| 114 |
\fB\-V\fR, \fB\-\-video_pid\fR=\fIvideo_pid#\fR |
| 115 |
video pid program to use (default 0) |
| 116 |
.TP |
| 117 |
\fB\-w\fR, \fB\-\-lna\fR=\fILNA\fR |
| 118 |
Enable, disable or put LNA power in auto mode. Not all frontends support it. |
| 119 |
Valid values are: |
| 120 |
.RS |
| 121 |
.TP |
| 122 |
0 \- disable |
| 123 |
.TP |
| 124 |
1 \- enable |
| 125 |
.TP |
| 126 |
\-1 \- auto |
| 127 |
.RE |
| 128 |
.TP |
| 129 |
\fB\-W\fR, \fB\-\-wait\fR=\fItime\fR |
| 130 |
Adds additional wait time for DISEqC command completion. |
| 131 |
.TP |
| 132 |
\fB\-x\fR, \fB\-\-exit\fR |
| 133 |
Exit after tuning. |
| 134 |
.TP |
| 135 |
\fB\-X\fR, \fB\-\-low_traffic\fR |
| 136 |
Also shows DVB traffic with less than 1 packet per second. |
| 137 |
Used only in monitor mode. |
| 138 |
.TP |
| 139 |
\fB\-?\fR, \fB\-\-help\fR |
| 140 |
Outputs the usage help. |
| 141 |
.TP |
| 142 |
\fB\-\-usage\fR |
| 143 |
Gives a short usage message. |
| 144 |
.TP |
| 145 |
\fB\-\-version\fR |
| 146 |
Prints program version. |
| 147 |
.SH EXIT STATUS |
| 148 |
On success, it returns 0. |
| 149 |
.SH EXAMPLES |
| 150 |
.RS |
| 151 |
.SS Recording a channel |
| 152 |
.PP |
| 153 |
The typical use is to tune into a channel and put it into record mode: |
| 154 |
.PP |
| 155 |
.nf |
| 156 |
$ \fBdvbv5\-zap \-c dvb_channel.conf 'music' \-r\fR |
| 157 |
using demux '/dev/dvb/adapter0/demux0' |
| 158 |
reading channels from file 'dvb_channel.conf' |
| 159 |
service has pid type 05: 204 |
| 160 |
tuning to 573000000 Hz |
| 161 |
audio pid 104 |
| 162 |
dvb_set_pesfilter 104 |
| 163 |
Lock (0x1f) Quality= Good Signal= 100.00% C/N= \-13.80dB UCB= 70 postBER= 3.14x10^\-3 PER= 0 |
| 164 |
DVR interface '/dev/dvb/adapter0/dvr0' can now be opened |
| 165 |
.fi |
| 166 |
.PP |
| 167 |
The channel can be watched by playing the contents of the DVR interface, |
| 168 |
with some player that recognizes the MPEG\-TS format. |
| 169 |
.PP |
| 170 |
For example, this audio-only channel can be played with mplayer: |
| 171 |
.PP |
| 172 |
.nf |
| 173 |
$ \fBmplayer \-cache 800 /dev/dvb/adapter0/dvr0\fR |
| 174 |
MPlayer SVN\-r37077\-4.8.2 (C) 2000\-2014 MPlayer Team |
| 175 |
TS file format detected. |
| 176 |
NO VIDEO! AUDIO MPA(pid=104) NO SUBS (yet)! PROGRAM N. 0 |
| 177 |
================================================================== |
| 178 |
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III |
| 179 |
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000\->192000) |
| 180 |
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III) |
| 181 |
================================================================== |
| 182 |
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) |
| 183 |
Video: no video |
| 184 |
Starting playback... |
| 185 |
.fi |
| 186 |
.SS Monitoring a channel |
| 187 |
.PP |
| 188 |
The dvbv5\-zap tool can also be used to monitor a DVB channel: |
| 189 |
.PP |
| 190 |
.nf |
| 191 |
$ \fBdvbv5\-zap \-c dvb_channel.conf 573000000 \-m\fR |
| 192 |
using demux '/dev/dvb/adapter0/demux0' |
| 193 |
reading channels from file 'dvb_channel.conf' |
| 194 |
service has pid type 05: 204 |
| 195 |
tuning to 573000000 Hz |
| 196 |
Lock (0x1f) Quality= Good Signal= 100.00% C/N= \-13.90dB UCB= 384 postBER= 96.8x10^\-6 PER= 0 |
| 197 |
dvb_set_pesfilter to 0x2000 |
| 198 |
|
| 199 |
PID FREQ SPEED TOTAL |
| 200 |
0000 9.88 p/s 14.5 Kbps 1 KB |
| 201 |
0001 1.98 p/s 2.9 Kbps 376 B |
| 202 |
0010 18.77 p/s 27.6 Kbps 3 KB |
| 203 |
0011 48.42 p/s 71.1 Kbps 8 KB |
| 204 |
0012 1455.53 p/s 2137.8 Kbps 270 KB |
| 205 |
.schar \[u2026] ... |
| 206 |
\[u2026] |
| 207 |
1fff 1033.60 p/s 1518.1 Kbps 192 KB |
| 208 |
TOT 25296.44 p/s 37154.2 Kbps 4700 KB |
| 209 |
|
| 210 |
Lock (0x1f) Quality= Good Signal= 100.00% C/N= \-13.90dB UCB= 384 postBER= 96.8x10^\-6 PER= 0 |
| 211 |
.fi |
| 212 |
.RE |
| 213 |
.SH BUGS |
| 214 |
Report bugs to \fBLinux Media Mailing List <[email protected]>\fR |
| 215 |
.SH COPYRIGHT |
| 216 |
Copyright (c) 2011\-2014 by Mauro Carvalho Chehab. |
| 217 |
.PP |
| 218 |
License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl.html>. |
| 219 |
.br |
| 220 |
This is free software: you are free to change and redistribute it. |
| 221 |
There is NO WARRANTY, to the extent permitted by law. |