| 1 |
.TH "dvb-format-convert" 1 "Fri Oct 3 2014" "DVBv5 Utils @MAN_PACKAGE_VERSION@" "User Commands" |
| 2 |
.SH NAME |
| 3 |
dvb-format-convert \- DVBv5 tool for file format conversions |
| 4 |
.SH SYNOPSIS |
| 5 |
.B dvb-format-convert |
| 6 |
[\fIOPTION\fR]... \fIinput-file\fR \fIoutput-file\fR |
| 7 |
.SH DESCRIPTION |
| 8 |
dvb-format-convert is a tool meant to convert among different file formats. |
| 9 |
It is compliant with version 5 of the DVB API, being capable of representing |
| 10 |
all properties on any standard supported by the Linux digital TV drivers. |
| 11 |
.PP |
| 12 |
There are currently 3 different formats supported for input: |
| 13 |
.IP "\(bu" 2 |
| 14 |
\fBdvbv5\fR \- the standard format at libdvbv5, capable of representing all |
| 15 |
different TV standards; |
| 16 |
.PP |
| 17 |
.IP "\(bu" 2 |
| 18 |
\fBchannel\fR \- the dvb-apps legacy channel format, with supports only |
| 19 |
ATSC, DVB-C, DVB-S and DVB-T standards, extended to also support s2-scan |
| 20 |
format for DVB-S2 files, and to support DVB-T2. |
| 21 |
.IP "\(bu" 2 |
| 22 |
\fBzap\fR \- the dvb-apps legacy format for tuning, with supports only |
| 23 |
ATSC, DVB-C, DVB-S and DVB-T standards. |
| 24 |
.PP |
| 25 |
There is one extra output format: |
| 26 |
.PP |
| 27 |
.IP "\(bu" 2 |
| 28 |
\fBvdr\fR \- the format used by the vdr application. It supports all features |
| 29 |
found up on vdr version 2.1.6. |
| 30 |
.PP |
| 31 |
Unfortunately, the dvb-apps legacy zap format doesn't store the DVB standard, |
| 32 |
so, any conversions to and/or from this format requires an extra parameter, |
| 33 |
to specify the delivery system. |
| 34 |
.PP |
| 35 |
.SH OPTIONS |
| 36 |
.TP |
| 37 |
The following options are valid: |
| 38 |
.TP |
| 39 |
\fB-I\fR, \fB--input-format\fR=\fIformat\fR |
| 40 |
Format of the input file. |
| 41 |
Supported input formats: \fBchannel\fR, \fBzap\fR and \fBdvbv5\fR. |
| 42 |
.TP |
| 43 |
\fB-O\fR, \fB--output-format\fR=\fIformat\fR |
| 44 |
Format of the output file. |
| 45 |
Supported output formats: \fBvdr\fR, \fBchannel\fR, \fBzap\fR and \fBdvbv5\fR. |
| 46 |
.TP |
| 47 |
\fB-s\fR, \fB--delsys\fR=\fIsystem\fR |
| 48 |
Delivery system type. |
| 49 |
Needed if input or output format is ZAP. |
| 50 |
.TP |
| 51 |
\fB-?\fR, \fB--help\fR |
| 52 |
Outputs the usage help. |
| 53 |
.TP |
| 54 |
\fB--usage\fR |
| 55 |
Give a short usage message. |
| 56 |
.TP |
| 57 |
\fB-V\fR, \fB--version\fR |
| 58 |
Print program version. |
| 59 |
.SH EXAMPLES |
| 60 |
.RS |
| 61 |
.SS Converting a channel file from legacy dvb-apps format |
| 62 |
Reads a file at the dvb\-apps channel file and writes it at dvbv5 format. |
| 63 |
.PP |
| 64 |
.nf |
| 65 |
$ \fBdvb\-format\-convert \-I channel \-O dvbv5 dvbc\-channel\-legacy dvbc\-channel\fR |
| 66 |
Reading file dvbc\-channel\-legacy |
| 67 |
Writing file dvbc\-channel |
| 68 |
.fi |
| 69 |
.SS Convert a dvbv5 file with programs on it to the legacy dvb\-apps zap format |
| 70 |
Reads a file generated by dvbv5-scan on dvbv5 format and writes a new file |
| 71 |
at dvb\-apps zap format. |
| 72 |
.PP |
| 73 |
.nf |
| 74 |
$ \fBdvb\-format\-convert \-I dvbv5 \-O zap \-s dvbc/annex_a dvb_channel.conf legacy.conf\fR |
| 75 |
Reading file dvb_channel.conf |
| 76 |
Writing file legacy.conf |
| 77 |
WARNING: missing video PID while parsing entry 6 of legacy.conf |
| 78 |
WARNING: missing video PID while parsing entry 7 of legacy.conf |
| 79 |
WARNING: missing video PID while parsing entry 8 of legacy.conf |
| 80 |
WARNING: missing audio PID while parsing entry 8 of legacy.conf |
| 81 |
.fi |
| 82 |
.PP |
| 83 |
Please notice that the legacy dvb\-apps format assumes that every channel |
| 84 |
will have one (and just one) audio PID and one (and just one) video PID, |
| 85 |
while the dvbv5 format supports multiple PID per service type. |
| 86 |
.PP |
| 87 |
The above warnings happened on pure\-audio channels and on data\-only channels: |
| 88 |
.PP |
| 89 |
Original dvb_channel.conf file: |
| 90 |
.PP |
| 91 |
.nf |
| 92 |
[the] |
| 93 |
SERVICE_ID = 4 |
| 94 |
VIDEO_PID = 42 |
| 95 |
AUDIO_PID = 257 |
| 96 |
PID_f1 = 768 |
| 97 |
FREQUENCY = 573000000 |
| 98 |
MODULATION = QAM/256 |
| 99 |
INVERSION = AUTO |
| 100 |
SYMBOL_RATE = 5217000 |
| 101 |
INNER_FEC = NONE |
| 102 |
DELIVERY_SYSTEM = DVBC/ANNEX_A |
| 103 |
|
| 104 |
|
| 105 |
[quick] |
| 106 |
SERVICE_ID = 5 |
| 107 |
VIDEO_PID = 288 |
| 108 |
AUDIO_PID = 289 |
| 109 |
FREQUENCY = 573000000 |
| 110 |
MODULATION = QAM/256 |
| 111 |
INVERSION = AUTO |
| 112 |
SYMBOL_RATE = 5217000 |
| 113 |
INNER_FEC = NONE |
| 114 |
DELIVERY_SYSTEM = DVBC/ANNEX_A |
| 115 |
|
| 116 |
|
| 117 |
[brown] |
| 118 |
SERVICE_ID = 7 |
| 119 |
VIDEO_PID = 36 |
| 120 |
AUDIO_PID = 305 |
| 121 |
FREQUENCY = 573000000 |
| 122 |
MODULATION = QAM/256 |
| 123 |
INVERSION = AUTO |
| 124 |
SYMBOL_RATE = 5217000 |
| 125 |
INNER_FEC = NONE |
| 126 |
DELIVERY_SYSTEM = DVBC/ANNEX_A |
| 127 |
|
| 128 |
|
| 129 |
[fox] |
| 130 |
SERVICE_ID = 13 |
| 131 |
VIDEO_PID = 272 |
| 132 |
AUDIO_PID = 273 |
| 133 |
FREQUENCY = 573000000 |
| 134 |
MODULATION = QAM/256 |
| 135 |
INVERSION = AUTO |
| 136 |
SYMBOL_RATE = 5217000 |
| 137 |
INNER_FEC = NONE |
| 138 |
DELIVERY_SYSTEM = DVBC/ANNEX_A |
| 139 |
|
| 140 |
|
| 141 |
[jumps] |
| 142 |
SERVICE_ID = 18 |
| 143 |
VIDEO_PID = 368 |
| 144 |
AUDIO_PID = 369 |
| 145 |
FREQUENCY = 573000000 |
| 146 |
MODULATION = QAM/256 |
| 147 |
INVERSION = AUTO |
| 148 |
SYMBOL_RATE = 5217000 |
| 149 |
INNER_FEC = NONE |
| 150 |
DELIVERY_SYSTEM = DVBC/ANNEX_A |
| 151 |
|
| 152 |
|
| 153 |
[over] |
| 154 |
SERVICE_ID = 48 |
| 155 |
VIDEO_PID = 336 |
| 156 |
AUDIO_PID = 337 338 849 |
| 157 |
PID_86 = 816 |
| 158 |
FREQUENCY = 573000000 |
| 159 |
MODULATION = QAM/256 |
| 160 |
INVERSION = AUTO |
| 161 |
SYMBOL_RATE = 5217000 |
| 162 |
INNER_FEC = NONE |
| 163 |
DELIVERY_SYSTEM = DVBC/ANNEX_A |
| 164 |
|
| 165 |
|
| 166 |
[the] |
| 167 |
SERVICE_ID = 57 |
| 168 |
AUDIO_PID = 353 |
| 169 |
FREQUENCY = 573000000 |
| 170 |
MODULATION = QAM/256 |
| 171 |
INVERSION = AUTO |
| 172 |
SYMBOL_RATE = 5217000 |
| 173 |
INNER_FEC = NONE |
| 174 |
DELIVERY_SYSTEM = DVBC/ANNEX_A |
| 175 |
|
| 176 |
|
| 177 |
[lazy] |
| 178 |
SERVICE_ID = 104 |
| 179 |
AUDIO_PID = 321 |
| 180 |
FREQUENCY = 573000000 |
| 181 |
MODULATION = QAM/256 |
| 182 |
INVERSION = AUTO |
| 183 |
SYMBOL_RATE = 5217000 |
| 184 |
INNER_FEC = NONE |
| 185 |
DELIVERY_SYSTEM = DVBC/ANNEX_A |
| 186 |
|
| 187 |
|
| 188 |
[dog] |
| 189 |
SERVICE_ID = 252 |
| 190 |
PID_05 = 3047 3046 3045 3044 3042 |
| 191 |
FREQUENCY = 573000000 |
| 192 |
MODULATION = QAM/256 |
| 193 |
INVERSION = AUTO |
| 194 |
SYMBOL_RATE = 5217000 |
| 195 |
INNER_FEC = NONE |
| 196 |
DELIVERY_SYSTEM = DVBC/ANNEX_A |
| 197 |
|
| 198 |
.fi |
| 199 |
.PP |
| 200 |
So, for the channels with multiple PIDs, the converted legacy.conf file |
| 201 |
will have just the first one. |
| 202 |
.PP |
| 203 |
For the channels without an audio or video PID, it will store PID=0. |
| 204 |
.PP |
| 205 |
This is the output file for the above channel list. |
| 206 |
.PP |
| 207 |
.nf |
| 208 |
the:573000000:INVERSION_AUTO:5217000:FEC_NONE:QAM_256:42:257:4 |
| 209 |
quick:573000000:INVERSION_AUTO:5217000:FEC_NONE:QAM_256:288:289:5 |
| 210 |
brown:573000000:INVERSION_AUTO:5217000:FEC_NONE:QAM_256:36:305:7 |
| 211 |
fox:573000000:INVERSION_AUTO:5217000:FEC_NONE:QAM_256:272:273:13 |
| 212 |
jumps:573000000:INVERSION_AUTO:5217000:FEC_NONE:QAM_256:368:369:18 |
| 213 |
over:573000000:INVERSION_AUTO:5217000:FEC_NONE:QAM_256:336:337:48 |
| 214 |
the:573000000:INVERSION_AUTO:5217000:FEC_NONE:QAM_256:0:353:57 |
| 215 |
lazy:573000000:INVERSION_AUTO:5217000:FEC_NONE:QAM_256:0:321:104 |
| 216 |
dog:573000000:INVERSION_AUTO:5217000:FEC_NONE:QAM_256:0:0:252 |
| 217 |
.fi |
| 218 |
.SH BUGS |
| 219 |
Report bugs to \fBLinux Media Mailing List <[email protected]>\fR |
| 220 |
.SH COPYRIGHT |
| 221 |
Copyright (c) 2011\-2014 by Mauro Carvalho Chehab. |
| 222 |
.PP |
| 223 |
License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl.html>. |
| 224 |
.br |
| 225 |
This is free software: you are free to change and redistribute it. |
| 226 |
There is NO WARRANTY, to the extent permitted by law. |