2002-03-29 14:07:22 +01:00
'\" t
. \" ** The above line should force tbl to be a preprocessor **
. \" Man page for vdr file formats
. \"
2008-02-10 14:25:07 +01:00
. \" Copyright (C) 2008 Klaus Schmidinger
2002-03-29 14:07:22 +01:00
. \"
. \" You may distribute under the terms of the GNU General Public
. \" License as specified in the file COPYING that comes with the
. \" vdr distribution.
. \"
2010-01-17 12:08:03 +01:00
. \" $Id: vdr.5 2.12 2010/01/16 15:45:28 kls Exp $
2002-03-29 14:07:22 +01:00
. \"
2008-02-10 14:25:07 +01:00
.TH vdr 5 "10 Feb 2008" "1.6" "Video Disk Recorder Files"
2002-03-29 14:07:22 +01:00
.SH NAME
2008-03-09 16:07:46 +01:00
vdr_files \- the Video Disk Recorder Files
2002-03-29 14:07:22 +01:00
.SH DESCRIPTION
This page describes the formats of the various files \fB vdr\fR uses to
store configuration data and recordings.
.SH SYNTAX
.SS CHANNELS
The file \fI channels.conf\fR contains the channel configuration.
Each line defines either a \fB group delimiter\fR or a \fB channel\fR .
A \fB group delimiter\fR is a line starting with a ':' as the very first
character, followed by arbitrary text. Example:
\fB :First group\fR
2002-10-19 15:33:37 +02:00
Group delimiters may also be used to specify the number of the next channel.
To do this, the character '@' and a number must immediately follow the ':',
as in
\fB :@201 First group\fR
The given number must be larger than the number of any previous channel
(otherwise it is silently ignored).
2002-11-29 14:19:08 +01:00
A group delimiter can also be used to just set the next channel's number,
without an explicit delimiter text, as in
\fB :@201\fR
Such a delimiter will not appear in the Channels menu.
2002-03-29 14:07:22 +01:00
A \fB channel definition\fR is a line with channel data, where the fields
are separated by ':' characters. Example:
2010-01-02 14:56:03 +01:00
\fB RTL Television,RTL;RTL World:12187:hC34M2O0S0:S19.2E:27500:163=2:104=deu;106=deu:105:0:12003:1:1089:0\fR
2002-03-29 14:07:22 +01:00
2002-10-19 15:33:37 +02:00
The line number of a channel definition (not counting group separators,
and based on a possible previous '@...' parameter)
2002-03-29 14:07:22 +01:00
defines the channel's number in OSD menus and the \fI timers.conf\fR file.
The fields in a channel definition have the following meaning (from left
to right):
.TP
.B Name
The channel's name (if the name originally contains a ':' character
it has to be replaced by '|').
2006-11-19 10:05:58 +01:00
Some TV stations provide a way of deriving a "short name" from the
2004-01-04 12:30:00 +01:00
channel name, which can be used in situations where there is not
much space for displaying a long name. If a short name is available
2004-10-31 12:53:00 +01:00
for this channel, it follows the full name and is delimited by a comma,
2004-01-04 12:30:00 +01:00
as in
2004-10-31 12:53:00 +01:00
\fB RTL Television,RTL:...\fR
2004-07-18 11:17:32 +02:00
2009-12-24 10:49:16 +01:00
If the short name itself would contain a comma, it is replaced with a '.'.
Note that some long channel names may contain a comma, so the delimiting comma
is always the rightmost one.
2004-07-18 11:17:32 +02:00
If present, the name of the service provider or "bouquet" is appended
to the channel name, separated by a semicolon, as in
2004-10-31 12:53:00 +01:00
\fB RTL Television,RTL;RTL World:...\fR
2002-03-29 14:07:22 +01:00
.TP
.B Frequency
2002-10-20 14:15:40 +02:00
The transponder frequency (as an integer). For DVB-S this value is in MHz. For DVB-C
and DVB-T it can be given either in MHz, kHz or Hz (the actual value given will be
multiplied by 1000 until it is larger than 1000000).
2002-03-29 14:07:22 +01:00
.TP
2002-10-06 10:25:42 +02:00
.B Parameters
Various parameters, depending on whether this is a DVB-S, DVB-C or DVB-T channel.
Each parameter consist of a key character, followed by an integer number that
represents the actual setting of that parameter. The valid key characters, their
meaning (and allowed values) are
.TS
tab (@);
l l.
2008-12-13 12:22:36 +01:00
\fB B\fR @Bandwidth (6, 7, 8)
\fB C\fR @Code rate high priority (0, 12, 23, 34, 35, 45, 56, 67, 78, 89, 910)
\fB D\fR @coDe rate low priority (0, 12, 23, 34, 35, 45, 56, 67, 78, 89, 910)
2002-10-06 10:25:42 +02:00
\fB G\fR @Guard interval (4, 8, 16, 32)
\fB H\fR @Horizontal polarization
\fB I\fR @Inversion (0, 1)
2005-01-09 13:18:15 +01:00
\fB L\fR @Left circular polarization
2008-12-13 12:22:36 +01:00
\fB M\fR @Modulation (2, 5, 6, 10, 11, 16, 32, 64, 128, 256, 998)
2008-04-12 13:39:12 +02:00
\fB O\fR @rollOff (0, 20, 25, 35)
2005-01-09 13:18:15 +01:00
\fB R\fR @Right circular polarization
2008-05-02 13:50:34 +02:00
\fB S\fR @delivery System (0, 1)
2008-12-13 12:22:36 +01:00
\fB T\fR @Transmission mode (2, 8)
2002-10-06 10:25:42 +02:00
\fB V\fR @Vertical polarization
2008-12-13 12:22:36 +01:00
\fB Y\fR @hierarchY (0, 1, 2, 4)
2002-10-06 10:25:42 +02:00
.TE
2008-04-12 13:39:12 +02:00
2010-01-02 14:56:03 +01:00
\fB Bandwidth:\fR The bandwidth of the channel in MHz (DVB-T only).
\fB Code rate high priority:\fR Forward Error Correction (FEC) of the high priority stream (DVB-T).
For DVB-S/DVB-S2 this parameter specifies the inner FEC scheme.
12 = 1/2, 23 = 2/3, 34 = 3/4, ...
\fB Code rate low priority:\fR Forward Error Correction (FEC) of the low priority stream (DVB-T only).
If no hierarchy is used, set to 0.
\fB Guard interval:\fR The guard interval value (DVB-T only): 4 = 1/4, 8 = 1/8, 16 = 1/16, 32 = 1/32.
\fB Inversion:\fR Specifes whether the DVB frontend needs spectral inversion (DVB-T and DVB-C only). This is frontend specific, if in doubt, omit.
\fB Modulation:\fR Specifies the modulation/constellation of the channel as follows:
.TS
tab (@);
l l.
\fB 2\fR @QPSK (DVB-S, DVB-S2, DVB-T)
\fB 5\fR @8PSK (DVB-S2)
\fB 6\fR @16APSK (DVB-S2)
\fB 10\fR @VSB8 (ATSC aerial)
\fB 11\fR @VSB16 (ATSC aerial)
\fB 16\fR @QAM16 (DVB-T)
\fB 64\fR @QAM64 (DVB-C, DVB-T)
\fB 128\fR @QAM128 (DVB-C)
\fB 256\fR @QAM256 (DVB-C)
.TE
\fB Rolloff:\fR The Nyquist filter rolloff factor for DVB-S (\fB 35\fR ) and DVB-S2 (\fB 35\fR , 25, 20),
35 = 0.35, 25 = 0.25, 20 = 0.20, DVB-S/DVB-S2 default value is 0.35
\fB Transmission mode:\fR Number of DVB-T OFDM carriers, 8 = 8k, 2 = 2k. If in doubt, try 8k.
\fB Hierarchy:\fR If set to 1, this transponder uses two streams, high priority and low priority.
If in doubt, try 0 (off). (DVB-T only).
\fB Delivery System:\fR The satellite delivery system (0 = DVB-S, 1 = DVB-S2).
\fB Polarization:\fR Satellite antenna polarization.
h = horizontal, v = vertical, r = circular right, l = circular left.
2002-10-06 10:25:42 +02:00
The polarization parameters have no integer numbers following them. This is for
compatibility with files from older versions and also to keep the DVB-S entries
as simple as possible.
The special value \fB 999\fR is used for "automatic", which means the driver
will automatically determine the proper value (if possible).
An example of a parameter field for a DVB-T channel might look like this:
2010-01-02 14:56:03 +01:00
\fB B8C23D12G8M16T8Y0\fR
An example of a parameter field for a DVB-C channel might look like this:
\fB C0M64\fR
An example of a parameter field for a DVB-S channel might look like this:
\fB hC56M2O35S0\fR
An example of a parameter field for a DVB-S2 channel might look like this:
\fB hC910M2O35S1\fR
2002-10-06 10:25:42 +02:00
2002-03-29 14:07:22 +01:00
.TP
2002-10-06 10:25:42 +02:00
.B Source
The signal source of this channel, as defined in the file \fI sources.conf\fR .
For compatibility with files from older versions numeric values will be accepted
and also written back correctly, but they will have no meaning for the \fB DiSEqC\fR
settings. You should replace the numerical values with the proper source identifiers
defined in \fI sources.conf\fR .
2002-03-29 14:07:22 +01:00
.TP
2002-10-06 10:25:42 +02:00
.B Srate
2002-03-29 14:07:22 +01:00
The symbol rate of this channel (DVB-S and DVB-C only).
.TP
.B VPID
2006-04-28 13:02:18 +02:00
The video PID (set to '0' for radio channels).
2003-04-26 11:58:54 +02:00
If this channel uses a separate PCR PID, it follows the VPID, separated by a
plus sign, as in
2008-08-15 14:49:34 +02:00
2003-04-26 11:58:54 +02:00
.B ...:164+17:...
2008-08-15 14:49:34 +02:00
If this channel has a video mode other than 0, the mode
follows the pids, separated by an '=' sign, as in
.B ...:164+17=27:...
2002-03-29 14:07:22 +01:00
.TP
.B APID
2004-01-25 15:32:08 +01:00
The audio PID (either one number, or several, separated by commas).
2002-03-29 14:07:22 +01:00
If this channel also carries Dolby Digital sound, the Dolby PIDs follow
the audio PIDs, separated by a semicolon, as in
2004-01-25 15:32:08 +01:00
2002-03-29 14:07:22 +01:00
.B ...:101,102;103,104:...
2004-01-25 15:32:08 +01:00
If certain audio PIDs broadcast in specific languages, the language
codes for these can be appended to the individual audio or Dolby PID, separated
by an '=' sign, as in
.B ...:101=deu,102=eng;103=deu,104=eng:...
2005-09-04 14:48:39 +02:00
Some channels broadcast two different languages in the two stereo channels, which
can be indicated by adding a second language code, delimited by a '+' sign, as in
.B ...:101=deu,102=eng+spa;103=deu,104=eng:...
2004-01-25 15:32:08 +01:00
2002-03-29 14:07:22 +01:00
.TP
.B TPID
The teletext PID.
.TP
.B Conditional access
2004-01-04 12:30:00 +01:00
A hexadecimal integer defining how this channel can be accessed:
2002-03-29 14:07:22 +01:00
.TS
tab (@);
l l.
2004-01-04 12:30:00 +01:00
\fB 0000\fR @Free To Air
\fB 0001...000F\fR @explicitly requires the device with the given number
2006-01-07 14:10:17 +01:00
\fB 0010...00FF\fR @reserved for user defined assignments
2004-01-04 12:30:00 +01:00
\fB 0100...FFFF\fR @specific decryption methods as broadcast in the data stream\fR
2002-03-29 14:07:22 +01:00
.TE
2004-01-04 12:30:00 +01:00
Values in the range 0001...00FF will not be overwritten, all other values
will be automatically replaced by the actual CA system identifiers received
from the data stream. If there is more than one CA system id broadcast, they
will be separated by commas, as in
.B ...:1702,1722,1801:...
The values are in hex because that's the way they are defined in the "ETR 162"
document. Leading zeros may be omitted.
2002-03-29 14:07:22 +01:00
.TP
2002-10-06 10:25:42 +02:00
.B SID
2002-11-24 14:48:38 +01:00
The Service ID of this channel.
.TP
.B NID
2004-01-04 12:30:00 +01:00
The Network ID of this channel.
2002-11-24 14:48:38 +01:00
.TP
.B TID
2004-01-04 12:30:00 +01:00
The Transport stream ID of this channel.
2002-11-24 14:48:38 +01:00
.TP
.B RID
The Radio ID of this channel (typically 0, may be used to distinguish channels where
NID, TID and SID are all equal).
2002-11-10 15:50:21 +01:00
.PP
A particular channel can be uniquely identified by its \fB channel\ ID\fR ,
which is a string that looks like this:
2004-12-18 12:42:41 +01:00
\fB S19.2E\- 1\- 1089\- 12003\- 0\fR
2002-11-10 15:50:21 +01:00
2004-01-04 12:30:00 +01:00
The components of this string are the \fB Source\fR (S19.2E), \fB NID\fR
(1), \fB TID\fR (1089), \fB SID\fR (12003) and \fB RID\fR (0) as defined above.
The last part can be omitted if it is \fB 0\fR ,
2004-12-18 12:42:41 +01:00
so the above example could also be written as S19.2E\- 1\- 1089\- 12003).
2002-11-10 15:50:21 +01:00
.br
The \fB channel\ ID\fR is used in the \fI timers.conf\fR and \fI epg.data\fR
files to properly identify the channels.
2004-02-13 15:50:26 +01:00
If a channel has both \fB NID\fR and \fB TID\fR set to 0, the \fB channel\ ID\fR
will use the \fB Frequency\fR instead of the \fB TID\fR . For satellite channels
an additional offset of 100000, 200000, 300000 or 400000 is added to that
number, depending on the \fB Polarization\fR (\fB H\fR , \fB V\fR , \fB L\fR or \fB R\fR ,
respectively). This is necessary because on some satellites the same frequency is
used for two different transponders, with opposite polarization.
2002-03-29 14:07:22 +01:00
.SS TIMERS
The file \fI timers.conf\fR contains the timer setup.
Each line contains one timer definition, with individual fields
separated by ':' characters. Example:
2004-12-18 12:42:41 +01:00
\fB 1:10:\- T\- \- \- \- \- :2058:2150:50:5:Quarks & Co:\fR
2002-03-29 14:07:22 +01:00
The fields in a timer definition have the following meaning (from left
to right):
.TP
2006-01-06 14:31:57 +01:00
.B Flags
2004-02-29 14:21:22 +01:00
The individual bits in this field have the following meaning:
.TS
tab (@);
l l.
\fB 1\fR @the timer is active (and will record if it hits)
\fB 2\fR @this is an instant recording timer
\fB 4\fR @this timer uses VPS
2005-05-07 11:10:56 +02:00
\fB 8\fR @this timer is currently recording (may only be up-to-date with SVDRP)
2004-02-29 14:21:22 +01:00
.TE
2002-03-29 14:07:22 +01:00
2006-02-25 12:22:02 +01:00
All other bits are reserved for future use.
2002-03-29 14:07:22 +01:00
.TP
.B Channel
2002-11-10 15:50:21 +01:00
The channel to record from. This is either the channel number as shown in the
2006-01-08 11:44:37 +01:00
on-screen menus, or a complete channel ID. When reading \fI timers.conf\fR
2002-11-10 15:50:21 +01:00
any channel numbers will be mapped to the respective channel ids and when
the file is written again, there will only be channel ids. Channel numbers
are accepted as input in order to allow easier creation of timers when
manually editing \fI timers.conf\fR . Also, when timers are listed via SVDRP
commands, the channels are given as numbers.
2002-03-29 14:07:22 +01:00
.TP
.B Day
The day when this timer shall record.
2005-03-19 15:38:43 +01:00
If this is a `single-shot' timer, this is the date on which this
timer shall record, given in ISO notation (\fB YYYY-MM-DD\fR ), as in:
.B 2005 -03-19
For compatibility with earlier versions of VDR this may also be just the day of month
on which this timer shall record (must be in the range \fB 1...31\fR ).
2002-03-29 14:07:22 +01:00
In case of a `repeating' timer this is a string consisting of exactly seven
characters, where each character position corresponds to one day of the week
2004-12-18 12:42:41 +01:00
(with Monday being the first day). The character '\- ' at a certain position
2002-03-29 14:07:22 +01:00
means that the timer shall not record on that day. Any other character will
cause the timer to record on that day. Example:
2004-12-18 12:42:41 +01:00
.B MTWTF\-\-
2002-03-29 14:07:22 +01:00
2006-11-19 10:05:58 +01:00
will define a timer that records on Monday through Friday and does not record
2007-06-10 13:02:43 +02:00
on weekends.
2005-03-19 15:38:43 +01:00
Note that only letters may be used here, no digits.
2007-06-10 13:02:43 +02:00
For compatibility with timers created with earlier versions of VDR,
the same result could be achieved with \fB ABCDE\- \- \fR (which was
used to allow setting the days with language specific characters).
Since version 1.5.3 VDR can use UTF-8 characters to present data to
the user, but the weekday encoding in the \fI timers.conf\fR file
always uses single byte characters.
2002-03-29 14:07:22 +01:00
The day definition of a `repeating' timer may be followed by the date when that
2004-12-18 12:42:41 +01:00
timer shall hit for the first time. The format for this is \fB @YYYY\- MM\- DD\fR ,
2002-03-29 14:07:22 +01:00
so a complete definition could look like this:
2004-12-18 12:42:41 +01:00
\fB MTWTF\- \- @2002\- 02\- 18\fR
2002-03-29 14:07:22 +01:00
2006-11-19 10:05:58 +01:00
which would implement a timer that records Monday through Friday, and will hit
2002-03-29 14:07:22 +01:00
for the first time on or after February 18, 2002.
This \fB first day\fR feature can be used to disable a repeating timer for a couple
2006-04-21 15:15:18 +02:00
of days, or for instance to define a new Mon...Fri timer on Wednesday, which
actually starts "Monday next week". The \fB first day\fR date given need not be
2002-03-29 14:07:22 +01:00
that of a day when the timer would actually hit.
.TP
.B Start
A four digit integer defining when this timer shall \fB start\fR recording.
The format is \fB hhmm\fR , so \fB 1430\fR would mean "half past two" in the
afternoon.
.TP
.B Stop
A four digit integer defining when this timer shall \fB stop\fR recording.
The format is the same as for the \fB start\fR time.
.TP
.B Priority
An integer in the range \fB 0...99\fR , defining the \fB priority\fR
of this timer and of recordings created by this timer.
\fB 0\fR represents the lowest value, \fB 99\fR the highest.
The priority is used to decide which timer shall be
started in case there are two or more timers with the exact same
\fB start\fR time. The first timer in the list with the highest priority
will be used.
This value is also stored with the recording and is
later used to decide which recording to remove from disk in order
to free space for a new recording. If the disk runs full and a new
recording needs more space, an existing recording with the lowest
priority (and which has exceeded its guaranteed \fB lifetime\fR ) will be
removed.
If all available DVB cards are currently occupied, a
timer with a higher priority will interrupt the timer with the
lowest priority in order to start recording.
.TP
.B Lifetime
The \fB guaranteed lifetime\fR (in days) of a recording created by this timer.
\fB 0\fR means that this recording may be automatically deleted at any time
by a new recording with higher priority. \fB 99\fR means that this recording
will never be automatically deleted. Any number in the range \fB 1...98\fR
means that this recording may not be automatically deleted in favour of a
new recording, until the given number of days since the \fB start\fR time of
the recording has passed by.
.TP
.B File
The \fB file name\fR this timer will give to a recording.
If the name contains any ':' characters, these have to be replaced by '|'.
If the name shall contain subdirectories, these have to be delimited by '~'
(since the '/' character may be part of a regular programme name).
The special keywords \fB TITLE\fR and \fB EPISODE\fR , if present, will be replaced
by the title and episode information from the EPG data at the time of
recording (if that data is available). If at the time of recording either
of these cannot be determined, \fB TITLE\fR will default to the channel name, and
\fB EPISODE\fR will default to a blank.
.TP
2006-02-25 12:09:22 +01:00
.B Auxiliary data
An arbitrary string that can be used by external applications to store any
kind of data related to this timer. The string must not contain any newline
characters. If this field is not empty, its contents will be written into the
2009-01-06 14:41:11 +01:00
\fI info\fR file of the recording with the '@' tag.
2002-10-06 10:25:42 +02:00
.SS SOURCES
The file \fI sources.conf\fR defines the codes to be used in the \fB Source\fR field
of channels in \fI channels.conf\fR and assigns descriptive texts to them.
Example:
\fB S19.2E Astra 1\fR
Anything after (and including) a '#' character is comment.
The first character of the \fB code\fR must be one of
.TS
tab (@);
l l.
\fB S\fR @Satellite
\fB C\fR @Cable
\fB T\fR @Terrestrial
.TE
and is followed by further data pertaining to that particular source. In case of
\fB S\fR atellite this is the orbital position in degrees, followed by \fB E\fR for
east or \fB W\fR for west.
.SS DISEQC
The file \fI diseqc.conf\fR defines the \fB DiSEqC\fR control sequences to be sent
to the DVB-S card in order to access a given satellite position and/or band.
Example:
\fB S19.2E 11700 V 9750 t v W15 [E0 10 38 F0] W15 A W15 t\fR
Anything after (and including) a '#' character is comment.
The first word in a parameter line must be one of the codes defined in the
file \fI sources.conf\fR and tells which satellite this line applies to.
Following is the "switch frequency" of the LNB (slof), which is the transponder
frequency up to which this entry shall be used; the first entry with an slof greater
than the actual transponder frequency will be used. Typically there is only one slof
per LNB, but the syntax allows any number of frequency ranges to be defined.
Note that there should be a last entry with the value \fB 99999\fR for each satellite,
which covers the upper frequency range.
The third parameter defines the polarization to which this entry applies. It can
be either \fB H\fR for horizontal or \fB V\fR for vertical.
The fourth parameter specifies the "local oscillator frequency" (lof) of the LNB
to use for the given frequency range. This number will be subtracted from the
actual transponder frequency when tuning to the channel.
The rest of the line holds the actual sequence of DiSEqC actions to be taken.
The code letters used here are
.TS
tab (@);
l l.
\fB t\fR @22kHz tone off
\fB T\fR @22kHz tone on
\fB v\fR @voltage low (13V)
\fB V\fR @voltage high (18V)
\fB A\fR @mini A
\fB B\fR @mini B
\fB Wnn\fR @wait nn milliseconds (nn may be any positive integer number)
\fB [xx ...]\fR @hex code sequence (max. 6)
.TE
There can be any number of actions in a line, including none at all - in which case
the entry would be used only to set the LOF to use for the given frequency range
and polarization.
2002-09-29 13:40:45 +02:00
.SS REMOTE CONTROL KEYS
The file \fI remote.conf\fR contains the key assignments for all remote control
units. Each line consists of one key assignment in the following format:
\fB name.key code\fR
where \fB name\fR is the name of the remote control (for instance KBD for the
PC keyboard, RCU for the home-built "Remote Control Unit", or LIRC for the
"Linux Infrared Remote Control"), \fB key\fR is the name of the key that is
defined (like Up, Down, Menu etc.), and \fB code\fR is a character string that
this remote control delivers when the given key is pressed.
2002-10-27 15:46:30 +01:00
.SS KEY MACROS
The file \fI keymacros.conf\fR contains user defined macros that will be executed
whenever the given key is pressed. The format is
2002-12-01 10:48:08 +01:00
\fB macrokey [@plugin] key1 key2 key3...\fR
2002-10-27 15:46:30 +01:00
where \fB macrokey\fR is the key that shall initiate execution of this macro
2006-01-14 10:54:13 +01:00
and can be one of \fI Up\fR , \fI Down\fR , \fI Ok\fR , \fI Back\fR , \fI Left\fR ,
\fI Right\fR , \fI Red\fR , \fI Green\fR , \fI Yellow\fR , \fI Blue\fR , \fI 0\fR ...\fI 9\fR
or \fI User1\fR ...\fI User9\fR . The rest of the line consists of a set of
2002-10-27 15:46:30 +01:00
keys, which will be executed just as if they had been pressed in the given
2002-12-01 10:48:08 +01:00
sequence. The optional \fB @plugin\fR can be used to automatically select
2006-01-14 11:04:37 +01:00
the given plugin.
\fB plugin\fR is the name of the plugin, exactly as given in the \- P
option when starting VDR. There can be only one \fB @plugin\fR per key macro.
For instance
2002-12-01 10:48:08 +01:00
\fB User1 @abc Down Down Ok\fR
would call the main menu function of the "abc" plugin and execute two "Down"
key presses, followed by "Ok".
.br
Note that the color keys will only execute their macro function
2002-10-27 15:46:30 +01:00
in "normal viewing" mode (i.e. when no other menu or player is active). The
\fI User1\fR ...\fI User9\fR keys will always execute their macro function.
There may be up to 15 keys in such a key sequence.
2010-01-17 12:08:03 +01:00
.SS FOLDERS
The file \fI folders.conf\fR contains the definitions of folders that can be used
in the "Edit timer" menu. Each line contains one folder definition. Leading whitespace
and everything after and including a '#' is ignored. A line ending with '{'
defines a sub folder (i.e. a folder that contains other folders), and a line
consisting of only '}' ends the definition of a sub folder.
Example:
Daily {
.br
News
.br
Soaps
.br
}
.br
Archive {
.br
Movies
.br
Sports
.br
Sci-Fi {
.br
Star Trek
.br
U.F.O.
.br
}
.br
}
.br
Comedy
.br
Science
Note that these folder definitions are only used to set the file name under which
a timer will store its recording. Changing these definitions in any way has no
effect on existing timers or recordings.
2002-03-29 14:07:22 +01:00
.SS COMMANDS
The file \fI commands.conf\fR contains the definitions of commands that can
be executed from the \fB vdr\fR main menu's "Commands" option.
Each line contains one command definition in the following format:
\fB title : command\fR
where \fB title\fR is the string that will be displayed in the "Commands" menu,
and \fB command\fR is the actual command string that will be executed when this
option is selected. The delimiting ':' may be surrounded by any number of
2002-10-13 09:03:53 +02:00
white space characters. If \fB title\fR ends with the character '?', there will
be a confirmation prompt before actually executing the command. This can be
used for commands that might have serious results (like deleting files etc)
to make sure they are not executed inadvertently.
2002-03-29 14:07:22 +01:00
2002-10-13 12:14:49 +02:00
Everything following (and including) a '#' character is considered to be comment.
2002-03-29 16:45:36 +01:00
By default the menu entries in the "Commands" menu will be numbered '1'...'9'
to make them selectable by pressing the corresponding number key. If you want
to use your own numbering scheme (maybe to skip certain numbers), just precede
the \fB title\fR s with the numbers of your choice. \fB vdr\fR will suppress its
automatic numbering if the first entry in \fI commands.conf\fR starts with a
digit in the range '1'...'9', followed by a blank.
2002-03-29 14:07:22 +01:00
In order to avoid error messages to the console, every command should have
\fI stderr\fR redirected to \fI stdout\fR . Everything the command prints to
\fI stdout\fR will be displayed in a result window, with \fB title\fR as its title.
Examples:
2002-10-13 09:03:53 +02:00
Check for new mail?: /usr/local/bin/checkmail 2>&1
2002-03-29 14:07:22 +01:00
.br
2002-10-13 09:03:53 +02:00
CPU status: /usr/local/bin/cpustatus 2>&1
2002-03-29 14:07:22 +01:00
.br
2004-12-18 12:42:41 +01:00
Disk space: df \- h | grep '/video' | awk '{ print 100 \- $5 "% free"; }'
2002-03-29 16:45:36 +01:00
.br
2002-10-13 09:03:53 +02:00
Calendar: date;echo;cal
2002-03-29 14:07:22 +01:00
Note that the commands 'checkmail' and 'cpustatus' are only \fB examples\fR !
2004-12-18 12:42:41 +01:00
Don't send emails to the author asking where to find these ;\- )
2002-10-13 09:03:53 +02:00
.br
The '?' at the end of the "Check for new mail?" entry will prompt the user
whether this command shall really be executed.
2002-10-13 12:14:49 +02:00
.SS RECORDING COMMANDS
The file \fI reccmds.conf\fR can be used to define commands that can be applied
to the currently highlighted recording in the "Recordings" menu. The syntax is
exactly the same as described for the file \fI commands.conf\fR . When executing
a command, the directory name of the recording will be appended to the command
string, separated by a blank and enclosed in single quotes.
2002-03-29 14:07:22 +01:00
.SS SVDRP HOSTS
The file \fI svdrphosts.conf\fR contains the IP numbers of all hosts that are
allowed to access the SVDRP port.
Each line contains one IP number in the format
\fB IP-Address[/Netmask]\fR
where \fB IP-Address\fR is the address of a host or a network in the usual dot
separated notation (as in 192.168.100.1). If the optional \fB Netmask\fR is given
only the given number of bits of \fB IP-Address\fR are taken into account. This
allows you to grant SVDRP access to all hosts of an entire network. \fB Netmask\fR
can be any integer from 1 to 32. The special value of 0 is only accepted if
the \fB IP-Address\fR is 0.0.0.0, because this will give access to any host
(\fB USE THIS WITH CARE!\fR ).
Everything following (and including) a '#' character is considered to be comment.
Examples:
127.0.0.1 # always accept localhost
.br
192.168.100.0/24 # any host on the local net
.br
204.152.189.113 # a specific host
.br
0.0.0.0/0 # any host on any net (\fB USE WITH CARE!\fR )
.SS SETUP
The file \fI setup.conf\fR contains the basic configuration options for \fB vdr\fR .
Each line contains one option in the format "Name = Value".
See the MANUAL file for a description of the available options.
2004-05-16 10:35:36 +02:00
.SS THEMES
2004-12-18 12:42:41 +01:00
The files \fI themes/<skin>\- <theme>.theme\fR in the config directory contain the
2004-05-16 10:35:36 +02:00
color theme definitions for the various skins. In the actual file names \fI <skin>\fR
will be replaced by the name if the skin this theme belongs to, and \fI <theme>\fR
will be the name of this theme.
Each line in a theme file contains one option in the format "Name = Value".
Anything after (and including) a '#' character is comment.
The definitions in a theme file are either \fB colors\fR or a \fB description\fR .
.br
\fB Colors\fR are in the form
\fB clrTitle = FF123456\fR
where the name (clrTitle) is one of the names defined in the source code of
the \fB skin\fR that uses this theme, through the \fB THEME_CLR()\fR macro.
The value (FF123456) is an eight digit hex number that consist of four bytes,
representing alpha (transparency), red, green and blue component of the color.
An alpha value of 00 means the color will be completely transparent, while FF
means it will be opaque. An RGB value of 000000 results in black, while FFFFFF
is white.
A \fB description\fR can be given as
\fB Description = Shades of blue\fR
and will be used in the Setup/OSD menu to select a theme for a given skin.
The description should give the user an idea what this theme will be like
(for instance, in the given example it would use various shades of blue),
and shouldn't be too long to make sure it fits on the Setup screen.
The default description always should be given in English. If you want,
you can provide language specific descriptions as
\fB Description.eng = Shades of blue\fR
.br
2004-12-18 12:42:41 +01:00
\fB Description.ger = Blaut\(:o ne\fR
2004-05-16 10:35:36 +02:00
2007-08-11 12:39:06 +02:00
where the language code is added to the keyword
2004-05-16 10:35:36 +02:00
"Description", separated by a dot. You can enter as many language specific
2007-08-11 12:39:06 +02:00
descriptions as you like, but only those that have a corresponding locale
messages file will be actually used.
2004-05-16 10:35:36 +02:00
If a theme file doesn't contain a Description, the name of the theme (as
given in the theme's file name) will be used.
2002-03-29 14:07:22 +01:00
.SS AUDIO/VIDEO DATA
2009-01-06 14:41:11 +01:00
The files \fI 00001.ts\fR ...\fI 65535.ts\fR are the actual recorded data
2002-03-29 14:07:22 +01:00
files. In order to keep the size of an individual file below a given limit,
2009-01-06 14:41:11 +01:00
a recording may be split into several files. The contents of these files is
\fB Transport Stream\fR (TS) and contains data packets that are each 188 byte
long and start with 0x47. Data is stored exactly as it is broadcast, with
a generated PAT/PMT inserted right before every independent frame.
2002-03-29 14:07:22 +01:00
.SS INDEX
2009-01-06 14:41:11 +01:00
The file \fI index\fR (if present in a recording directory) contains
2002-03-29 14:07:22 +01:00
the (binary) index data into each of the the recording files
2009-01-06 14:41:11 +01:00
\fI 00001.ts\fR ...\fI 65535.ts\fR . It is used during replay to determine
2002-03-29 14:07:22 +01:00
the current position within the recording, and to implement skipping
and fast forward/back functions.
See the definition of the \fB cIndexFile\fR class for details about the
actual contents of this file.
2005-05-16 14:45:11 +02:00
.SS INFO
2009-01-06 14:41:11 +01:00
The file \fI info\fR (if present in a recording directory) contains
2002-03-29 14:07:22 +01:00
a description of the recording, derived from the EPG data at recording time
2006-02-25 12:09:22 +01:00
(if such data was available). The \fB Aux\fR field of the corresponding
timer (if given) is copied into this file, using the '@' tag.
This is a plain ASCII file and contains tagged lines like the \fB EPG DATA\fR
2006-02-25 12:39:23 +01:00
file (see the description of the \fI epg.data\fR file). Note that the lowercase
2009-01-06 14:41:11 +01:00
tags ('c' and 'e') will not appear in an \fI info\fR file.
2006-02-26 12:03:28 +01:00
Lines tagged with '#' are ignored and can be used by external tools to
store arbitrary information.
2009-01-06 14:41:11 +01:00
In addition to the tags used in the \fI epg.data\fR file, the following tag
characters are defined:
.TS
tab (|);
l l.
\fB F\fR |<frame duration>
\fB L\fR |<lifetime>
\fB P\fR |<priority>
\fB @\fR |<auxiliary data>
.TE
2002-03-29 14:07:22 +01:00
.SS RESUME
2009-01-06 14:41:11 +01:00
The file \fI resume\fR (if present in a recording directory) contains
2002-03-29 14:07:22 +01:00
the position within the recording where the last replay session left off.
2009-01-06 14:41:11 +01:00
The file consists of tagged lines that describe the various parameters
necessary to pick up replay where it left off.
The following tag characters are defined:
.TS
tab (@);
l l.
\fB I\fR @<offset into the file \fI index\fR >
.TE
2002-03-29 14:07:22 +01:00
.SS MARKS
2009-01-06 14:41:11 +01:00
The file \fI marks\fR (if present in a recording directory) contains
2002-03-29 14:07:22 +01:00
the editing marks defined for this recording.
Each line contains the definition of one mark in the following format:
\fB hh:mm:ss.ff comment\fR
where \fB hh:mm:ss.ff\fR is a frame position within the recording, given as
"hours, minutes, seconds and (optional) frame number".
\fB comment\fR can be any string and may be used to describe this mark.
If present, \fB comment\fR must be separated from the frame position by at
least one blank.
The lines in this file need not necessarily appear in the correct temporal
sequence, they will be automatically sorted by time index.
\fB CURRENT RESTRICTIONS:\fR
-\ the comment is currently not used by VDR
.br
-\ marks must have a frame number, and that frame MUST be an I-frame (this
means that only marks generated by VDR itself can be used, since they
will always be guaranteed to mark I-frames).
.SS EPG DATA
The file \fI epg.data\fR contains the EPG data in an easily parsable format.
The first character of each line defines what kind of data this line contains.
The following tag characters are defined:
.TS
tab (@);
l l.
2002-11-10 15:50:21 +01:00
\fB C\fR @<channel id> <channel name>
2005-12-25 11:13:33 +01:00
\fB E\fR @<event id> <start time> <duration> <table id> <version>
2002-03-29 14:07:22 +01:00
\fB T\fR @<title>
2004-01-05 15:26:33 +01:00
\fB S\fR @<short text>
2002-03-29 14:07:22 +01:00
\fB D\fR @<description>
2010-01-03 12:20:37 +01:00
\fB G\fR @<genre> <genre>...
2010-01-03 14:28:33 +01:00
\fB R\fR @<parental rating>
2005-01-02 15:11:44 +01:00
\fB X\fR @<stream> <type> <language> <descr>
2004-02-22 13:33:20 +01:00
\fB V\fR @<vps time>
2002-03-29 14:07:22 +01:00
\fB e\fR @
\fB c\fR @
.TE
Lowercase characters mark the end of a sequence that was started by the
corresponding uppercase character. The outer frame consists of a sequence
of one or more \fB C\fR ...\fB c\fR (Channel) entries. Inside these any number of
\fB E\fR ...\fB e\fR (Event) entries are allowed.
2005-01-02 15:11:44 +01:00
All other tags are optional (although every event
2002-03-29 14:07:22 +01:00
should at least have a \fB T\fR entry).
2010-01-03 12:20:37 +01:00
2005-01-02 15:11:44 +01:00
There may be several \fB X\fR tags, depending on the number of tracks (video, audio etc.)
the event provides.
2002-03-29 14:07:22 +01:00
.TS
tab (@);
l l.
2002-11-10 15:50:21 +01:00
<channel id> @is the "channel ID", made up from the parameters defined in 'channels.conf'
<channel name> @is the "name" as in 'channels.conf' (for information only, may be left out)
2006-02-26 14:13:30 +01:00
<event id> @is a 32 bit unsigned int, uniquely identifying this event
2002-03-29 14:07:22 +01:00
<start time> @is the time (as a time_t integer) in UTC when this event starts
<duration> @is the time (in seconds) that this event will take
2003-05-29 11:06:07 +02:00
<table id> @is a hex number that indicates the table this event is contained in (if this is left empty or 0 this event will not be overwritten or modified by data that comes from the DVB stream)
2006-03-26 13:45:17 +02:00
<version> @is a hex number that indicates the event's version number inside its table (optional, ignored when reading EPG data)
2002-03-29 14:07:22 +01:00
<title> @is the title of the event
2004-01-05 15:26:33 +01:00
<short text> @is the short text of the event (typically the name of the episode etc.)
2002-12-06 14:21:00 +01:00
<description> @is the description of the event (any '|' characters will be interpreted as newlines)
2010-01-03 12:20:37 +01:00
<genre> @is a two digit hex code, as defined in ETSI EN 300 468, table 28 (up to 4 genre codes are supported)
2010-01-03 14:28:33 +01:00
<parental rating>@is the minimum age of the intended audience
2008-05-01 15:41:04 +02:00
<stream> @is the stream content (1 = video, 2 = audio, 3 = subtitles, 4 = AC3)
2005-01-02 15:11:44 +01:00
<type> @is the stream type according to ETSI EN 300 468
2006-02-18 15:59:43 +01:00
<language> @is the three letter language code (optionally two codes, separated by '+')
2005-01-02 15:11:44 +01:00
<descr> @is the description of this stream component
2004-02-22 13:33:20 +01:00
<vps time> @is the Video Programming Service time of this event
2002-03-29 14:07:22 +01:00
.TE
This file will be read at program startup in order to restore the results of
previous EPG scans.
2006-02-26 14:13:30 +01:00
Note that the \fB event id\fR that comes from the DVB data stream is actually
just 16 bit wide. The internal representation in VDR allows for 32 bit to
be used, so that external tools can generate EPG data that is guaranteed
not to collide with the ids of existing data.
2002-03-29 14:07:22 +01:00
.SH SEE ALSO
.BR vdr (1)
.SH AUTHOR
Written by Klaus Schmidinger.
.SH REPORTING BUGS
2009-10-18 14:18:22 +02:00
Report bugs to <vdr\- bugs@tvdr.de>.
2002-03-29 14:07:22 +01:00
.SH COPYRIGHT
2008-02-10 14:25:07 +01:00
Copyright \(co 2008 Klaus Schmidinger.
2002-03-29 14:07:22 +01:00
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.