-
Notifications
You must be signed in to change notification settings - Fork 0
/
MANUAL
471 lines (338 loc) · 18.3 KB
/
MANUAL
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
Please read the file "INSTALL" for getting the stuff working a first time :-)
SETUP-MENU
==========
Live-TV SD video buffer [frames]: 4
Live-TV HD video buffer [frames]: 4
Live-TV audio buffer [frames]: 4
Playing live-TV requires a buffer for having data ready when xine needs it for
decoding. Without such a buffer or when it is not large enough, replaying live
TV may not be fluently and may degrade into a slide show without sound. On the
other hand, as buffering takes place before replaying, a too large buffer
slows down zapping as it takes longer before replaying is started. So one may
need to play with this value to find a suitable setting. The buffer size is
specified in video frames, where 25 video frames make up a buffer which can
hold one second of audio and video. Please note that this buffer is provided
by VDR and xine so a too large setting may cause an overflow (check VDR's
logfile for buffer usage). It is therefore recommended to increase xine's
input buffer settings in ~/.xine/config. See engine.buffers.video_num_buffers
and maybe engine.buffers.audio_num_buffers. A simple but stupid rule is to
increase buffers by multipling the default numbers by 10 -- some HD channels
require at least 1500 video buffers. As mentioned earlier, choosing a suitable
Live-TV buffer is a compromise, which is easier to achieve when there can be
separate values for different services like SD / HD video or radio (audio).
Buffer hysteresis [frames]: 4
Buffer monitoring is a feature of vdr-xine which tries to dynamically increase
the buffer for certain channels on demand, i. e. whenever the buffer size
drops below the configured value of "Live-TV buffer" frames. As a result, a
new buffer will be established which is of size "Live-TV buffer + hysteresis"
frames, and in the case, where this buffer is still not large enough, vdr-xine
will internally increase hysteresis each time by one frame so that finally a
buffer is established which perfectly fits for the current channel.
Buffer monitoring duration [s]: 10
Typically, the above mentioned buffer monitoring is only necessary for a
certain amount of time after switching the channel, because once the buffer
is established, it should stay constant as the amount of data put into the
buffer by VDR and the amout of data taken from the buffer by xine should be
equal. A value of 0 disables buffer monitoring.
Buffer monitoring mode: Once
Lets you choose how buffer monitoring is applied.
* Once
After the above mentioned time, buffer monitoring will be bypassed (which
reduces CPU and memory load) until a channel switch or audio track selection
occurs.
* Continuous
Buffer monitoring will never be bypassed. After the above mentioned time the
internal hysteresis value will be reset to the configured one, to be ready
for the next buffering cycle which starts when the buffer size falls below
the above mentioned "Live-TV buffer" value. This mode is useful for channels
which degrade into a slide show after a certain amout of time.
OSD display mode: Blend scaled AUTO
Lets you choose among several processing options for VDR's OSD.
* X11 overlay
Tells xine to use a method for displaying the OSD that is independent of the
stream's video resolution. In this so called "unscaled" mode, xine uses a
X11 window to overlay the OSD on the video window. The advantage of mapping
a single OSD pixel to a single pixel on screen has the disadvantage of not
being able to support semi-transparent areas which appear totally opaque in
this mode.
NOTE: You won't see any OSD in this mode if X11 is not available!
* Blend clipped
* Blend scaled LQ
* Blend scaled HQ
* Blend scaled SHQ
* Blend scaled AUTO
For these modes xine uses the CPU to blend the OSD into each video frame. As
the result depends on the stream's video resolution you may choose among
several modes which require a different amount of CPU time.
The first mode simply cuts off all parts of the OSD that do not fit into the
video frame. If for example an OSD of size 720x576 is to be blended into a
frame of size 480x576 (e. g. VIVA broadcasts at this resolution) then almost
one halve of the OSD will be dropped at the right and the OSD will be quite
stretched in horizontal direction.
All other modes scale the OSD to fit into the video frame. The difference
among them is the scaling quality (Low, High and Super High) which also
leads to increasing CPU load and slows down e. g. navigation in the channels
list, etc.
The last mode automatically chooses between HQ and SHQ depending on the
stream's video resolution. SHQ will be chosen if either width or height
are below 360x288.
NOTE: Blend scaled is only implemented for VDR 1.3.x (1.3.7 and higher).
OSD gamma correction [ 123 => 1.23 ]: 123
When OSD scaling is performed then multiple pixels (or parts of them for SHQ)
have to be combined into a single one. During this process a so called gamma
correction is applied in order to give the resulting pixels the correct visual
representation of the original ones.
You may adjust this correction within the range 1.00 to 2.50 (by entering 100
to 250 respectively) to get the best visual representation on your monitor.
Changing this value is most noticeable in SHQ scaling mode so you need to
watch a channel that doesn't broadcast at 720x576 in order to activate OSD
scaling and to be able to see any change concerning gamma correction.
OSD extent X: 720 ***** REQUIRES VDR >= 1.7.7 *****
OSD extent Y: 576 ***** REQUIRES VDR >= 1.7.7 *****
For a crisp OSD on HD displays increase these values to match your displays
resolution.
Valid extents are in the range from 320 x 240 up to 1920 x 1080.
4:3 image zoom X [%]: 100
4:3 image zoom Y [%]: 100
16:9 image zoom X [%]: 100
16:9 image zoom Y [%]: 100
These options may be useful to stretch the video image to fill the screen.
A value of 133 for example will remove the black borders when showing a 4:3
image on a 16:9 screen. The drawback is that a part of the images is cut
away on top and bottom for example. So it may be useful to have different
values for X and Y (e. g. 133 and 115).
Audio mode: Dolby on ***** OBSOLETE FOR VDR >= 1.3.18 *****
With this option you can control feeding dolby audio data to xine. You may
want to use this option if you don't have the necessary replay equipment
connected to your computer. In that way you can force xine to use a
differently coded audio source among the supplied e. g. mp2 or pcm.
Control xine's volume: Yes (by hardware)
Allows you to control whether xine shall honor VDR's set volume requests. You
might need this if you have a special setup (e. g. external audio decoder or
amplifier) where changing the volume in xine might mute external audio:
* No
xine isn't instructed to change the volume.
* Yes (by hardware)
xine will change the volume by changing the hardware mixer (won't work
when using a digital audio output).
* Yes (by software)
xine will change the volume by using it's internal software mixer (should
work even when using a digital audio output).
Muting: Simulate
Lets you choose among several options how xine shall process VDR's muting
requests:
* Ignore
Muting respectively unmuting requests will be ignored.
* Execute
Muting respectively unmuting requests will be executed.
* Simulate
Muting is simulated by setting volume to 0. Unmuting is simulated by
restoring the previous volume.
NOTE: This happens even if "Control xine's volume" is set to "No"!
Get primary device when xine connects: Yes ***** REQUIRES VDR >= 1.3.32 *****
This option is especially useful for owners of full featured DVB cards which
usually run the OSD on a full featured card (i. e. the full featured card is
the primary device).
With this option set to Yes, vdr-xine automatically makes itself the primary
device while xine is connected to it. In that way the OSD and live TV are
automatically available via vdr-xine without the need to manually switch the
primary device via remote control nor SVDRP interface.
Support semi transparent colors: Yes
Depending on the currently broadcast image the displayed OSD might be hardly
readable when the OSD is blended semi transparently into the TV image.
If this option is set to No, vdr-xine simply ignores the semi-transparent
component of the color and therefore makes such colors opaque which typically
makes the OSD easier to read.
Connection interacts with EIT scanner: No
This option may be useful for users of single card systems. When xine connects
to vdr-xine, a currently running EPG scan will be interrupted to get into live
TV mode immediately. On the other hand, when VDR starts an EPG scan, vdr-xine
will shutdown the connection to xine.
COMMAND LINE ARGS
=================
There are currently two optional arguments.
-r Enable remote control.
This argument enables Simon Truss' patch which allows controlling VDR by
pressing buttons in xine. It will also allow control from any other suitably
patched front end.
-iN Instance number for FIFO directory
If you want to run two instances of vdr-xine (in different VDR processes) on
the same computer then you have to use a unique FIFO dir for each instance.
For example "-i3" will append "3" to the FIFO_DIR given in Makefile. The MRL
will then have to be like that: "vdr://tmp/vdr-xine3/stream#demux:mpeg_pes".
-q Suppress debug messages on console
This option is useful if VDR's console is to be used for other output e. g.
for the OSD implementation of VDR's skin 'curses'.
-s Switch to curses skin while xine is not connected
Use this switch if it is useful to control VDR via it's controlling terminal
while xine is not connected to vdr-xine. Requires VDR >= 1.3.20.
-XN default 'SizeX' for GRAB command (720, 1..4096)
-YN default 'SizeY' for GRAB command (576, 1..4096)
With these switches you may change the default image size for the grabbing
the current video frame (see VDR's SVDRP command GRAB for details).
-p[N] use socket connections on port N (18701)
-bIP ip address to bind for socket connections (see -p)
These options control whether vdr-xine shall use sockets instead of fifos,
which allows you to run xine on a different computer than vdr-xine. To enable
socket connections, supply the option -p. This will use the default TCP ports
18701, 18702, 18703 and 18704. You may optionally provide a different base
port number and vdr-xine will use the next three ports too.
By default, vdr-xine will listen on all network interfaces. If you want to
limit connections to a certain inferface, specify option -b with the IP
address this interface.
The MRL for xine looks then like that (:port is optional):
netvdr://host:port
XINE KEYBINDINGS
================
To make use of the remote control feature, you'll have to assign keys in xine
to VDR's commands. Therefore, you'll find 36 keybindings in xine's key binding
editor, named 'VDR ...', which control the specified action in VDR. Besides
those, the following entries are also used for VDR:
'enter the number 0' .. 'enter the number 9'
'jump to media menu'
'menu navigate up'
'menu navigate down'
'menu navigate left'
'menu navigate right'
'menu select'
'jump to next chapter'
'jump to previous chapter'
GXINE KEYBINDINGS
=================
And similarly for gxine...
You'll find several VDR-specific keybindings in gxine's key binding editor:
Used for VDR VDR-specific
"Play" Menu bindings "Red"
"Pause" Number key bindings "Green"
"Stop" "Volume +" "Yellow"
"Up" "Volume -" "Blue"
"Down" "Mute" "Record"
"Left" "Power"
"Right" "Select/OK" "Back"
"Rewind / Back 1 min" "Audio"
"Fast forward / Forward 1 min"
You'll notice that the menu bindings have their VDR functions in [brackets].
If not all of these bindings are present, try "Add new default bindings"
from the Reload menu; if they still aren't, you're running an older version
of gxine.
The volume control bindings assume that VDR is passing volume control events
back to gxine - in the xine plugin's configuration, you need
Control xine's volume Yes
Muting Execute
for these bindings to work.
XINE-LIB CONFIG
===============
This applies whether you're using xine, gxine or some other xine-lib front
end.
xine uses large buffers to gain smooth playback. The drawback is that VDR puts
a lot of data into xine's buffers and therefore VDR's progress indicator is
way ahead of the position at which xine is currently playing. For a recording
of a radio channel, xine's default buffers will cause an offset of about 16
seconds. But this can easily be improved (with almost no noticeable effects)
to less than 2 seconds by adjusting xine's number of audio buffers. Just edit
your xine config "~/.xine/config" and add or change the following entry:
engine.buffers.audio_num_buffers:4
The value '4' is the smallest possible value. You may increase it, in case that
you experience noticeable distortions in audio playback. Another interesting
option might be the following:
audio.synchronization.av_sync_method:resample
It should totally avoid distortions by adjusting audio data to fill any gaps.
But it's only usable if your amplifier is not connected via SPDIF.
Another useful option on less powerful machines is the following:
video.output.disable_exact_alphablend:1
The result will be that a less exact algorithm is used for blending the OSD
into each video frame and thus CPU time is saved.
XINE COMMAND LINE OPTIONS
=========================
This section is not intended as a replacement for xine's documentation, but it
may be useful to have a starting point for further reading. So, some useful
command line options are listed below.
Options for xine (X11 required):
-V vdpau (use hardware mpeg2/h264 video decoding acceleration)
-V xxmc (use hardware mpeg2 video decoding acceleration)
-V xv (use video overlay -- the usual case)
-V xshm (should always provide a picture)
-V vidix (for normal TV on my Matrox G550)
-A alsa (use alsa sound system)
--post vdr_video (highly recommended for correct and immediate OSD
scaling especially when using "xineplayer". It
further enables video scaling and positioning as
used within yaepg as well as applying the preconfigured
zoom values for 16:9 and 4:3 content)
--post vdr_audio (highly recommended for selecting left / right stereo
channel)
-D (enable selected deinterlacer)
-Dtvtime:method=Greedy2Frame,cheap_mode=0,pulldown=0,use_progressive_frame_flag=1
(use specified deinterlacer)
-L (disable LIRC support)
Options for gxine (X11 required):
-V vdpau (use hardware mpeg2/h264 video decoding acceleration)
-V xxmc (use hardware mpeg2 video decoding acceleration)
-V xv (use video overlay -- the usual case)
-V xshm (should always provide a picture)
-V vidix (for normal TV on my Matrox G550)
-A alsa (use alsa sound system)
Other options must (as of 0.4.4) be configured from within gxine.
Options for fbxine (no X11 required):
-V vidixfb (for normal TV on my Matrox G550)
-V fb (for watching HDTV)
-V dxr3 (to use a DXR3/Hollywood+ hardware MPEG decoder)
-A alsa (use alsa sound system)
--post vdr_video (highly recommended for correct and immediate OSD
scaling especially when using "xineplayer". It
further enables video scaling and positioning as
used within yaepg as well as applying the preconfigured
zoom values for 16:9 and 4:3 content)
--post vdr_audio (highly recommended for selecting left / right stereo
channel)
-D (enable selected deinterlacer)
-Dtvtime:method=Greedy2Frame,cheap_mode=0,pulldown=0,use_progressive_frame_flag=1
(use specified deinterlacer)
-L (disable LIRC support)
The default deinterlacer doesn't take too much CPU time, but on the other hand
it doesn't deinterlace in all situations (e. g. when there is only a small area
with significant movement on the screen).
The specified deinterlacer does a good job, but requires much CPU time.
If you don't like VDR's OSD to be stretched when playing 16:9 material you
might also use xine's "expand" post processing plugin. It simply puts the
16:9 images into an 4:3 image (adding a black bar on top and bottom) and
therefore the OSD will keep it's aspect ratio. To make use of the plugin
add the following options in this order on (fb)xine's command line:
xine ... --post expand --post vdr_video ...
The expand plugin now also supports a feature called "centre cut out" which
crops away the black bars around the image when 4:3 material is broadcast in
a 16:9 stream and displayed on a 4:3 monitor. The command line looks then like
the following:
xine ... --post expand:centre_cut_out_mode=1 --post vdr_video ...
If you want to listen to mono audio streams in stereo, I'd suggest to use
the xine's upmix_mono audio post plugin like that:
xine ... --post vdr_audio --post upmix_mono ...
XINEPLAYER
==========
xineplayer is a companion of vdr-xine and is used to get the beloved mplayer
plugin working with vdr-xine. I. e. you'll be able to replay DivX movies
directly through xine without the need for CPU expensive recoding. And you'll
still be able to continue using VDR's OSD while the external file is playing.
To get it working just install the mplayer plugin. Then edit it's "mplayer.sh"
and replace
# where to find mplayer
MPLAYER="mplayer"
with
# where to find mplayer
MPLAYER="xineplayer"
and now you'll only have to make sure that xineplayer is found by your shell.
xineplayer was built in vdr-xine's source directory so you'll either have to
copy it to a directory which is contained in your environment variable PATH or
just enter the absolute path to xineplayer into mplayer.sh as mentioned above.
That's it.
NOTE: xineplayer is still under development and currently only supports
mplayer plugin's TRADITIONAL mode. Furthermore it ignores any parameter
given on the command line besides the last one and expects this to be a
MRL recognizable by xine (e. g. a filename). If xine doesn't know how
to play the given MRL you'll only see an error message on xine's console.
As vdr-xine supports an instance number to create an unique FIFO directory it
will also necessary to tell this number to xineplayer to have it control the
right instance of vdr-xine. xineplayer's command line looks like that:
xineplayer [ --vdr-xine-instance=N ] [ options ] mrl
NOTE: "--vdr-xine-instance" must be given as the first argument as it might
otherwise collide with further options originally intended for mplayer.