2011-12-06 18:36:57 +01:00
|
|
|
|
@file README.txt @brief A software HD output device for VDR
|
|
|
|
|
|
2012-01-02 15:27:03 +01:00
|
|
|
|
Copyright (c) 2011, 2012 by Johns. All Rights Reserved.
|
2011-12-06 18:36:57 +01:00
|
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
|
|
|
|
|
|
License: AGPLv3
|
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU Affero General Public License as
|
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
License.
|
|
|
|
|
|
|
|
|
|
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 Affero General Public License for more details.
|
|
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
|
|
|
|
|
|
A software and GPU emulated HD output device plugin for VDR.
|
|
|
|
|
|
2012-01-02 15:27:03 +01:00
|
|
|
|
o Video VA-API/VA-API (with intel, nvidia and amd backend supported)
|
|
|
|
|
o Video CPU/VA-API
|
|
|
|
|
o Video VDPAU/VDPAU
|
|
|
|
|
o Video CPU/VDPAU
|
2012-01-20 15:33:37 +01:00
|
|
|
|
o Audio FFMpeg/Alsa/Analog
|
|
|
|
|
o Audio FFMpeg/Alsa/Digital
|
|
|
|
|
o Audio FFMpeg/OSS/Analog
|
|
|
|
|
o HDMI/SPDIF Passthrough
|
|
|
|
|
o VA-API bob software deinterlace
|
|
|
|
|
o Auto-crop
|
|
|
|
|
|
2011-12-06 18:36:57 +01:00
|
|
|
|
o planned: Video VA-API/Opengl
|
2012-01-02 15:27:03 +01:00
|
|
|
|
o planned: Video VDPAU/Opengl
|
2011-12-06 18:36:57 +01:00
|
|
|
|
o planned: Video CPU/Xv
|
|
|
|
|
o planned: Video CPU/Opengl
|
2012-01-20 15:33:37 +01:00
|
|
|
|
o planned: Improved Software Deinterlacer (yadif or/and ffmpeg filters)
|
2012-01-02 15:27:03 +01:00
|
|
|
|
o planned: Video XvBA/XvBA
|
2012-01-20 15:33:37 +01:00
|
|
|
|
o planned: atmo light support
|
2011-12-06 18:36:57 +01:00
|
|
|
|
|
|
|
|
|
To compile you must have the 'requires' installed.
|
|
|
|
|
|
|
|
|
|
Good luck
|
|
|
|
|
johns
|
|
|
|
|
|
|
|
|
|
Quickstart:
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Just type make and use.
|
|
|
|
|
|
|
|
|
|
Install:
|
|
|
|
|
--------
|
|
|
|
|
1a) git
|
|
|
|
|
|
|
|
|
|
git clone git://projects.vdr-developer.org/vdr-plugin-softhddevice.git
|
|
|
|
|
cd vdr-plugin-softhddevice
|
|
|
|
|
make VDRDIR=<path-to-your-vdr-files> LIBDIR=.
|
|
|
|
|
gentoo: make VDRDIR=/usr/include/vdr LIBDIR=.
|
|
|
|
|
|
|
|
|
|
2a) tarball
|
|
|
|
|
|
|
|
|
|
Download latest version from:
|
|
|
|
|
http://projects.vdr-developer.org/projects/plg-softhddevice/files
|
|
|
|
|
|
|
|
|
|
tar vxf vdr-softhddevice-*.tar.bz2
|
2012-01-19 00:16:15 +01:00
|
|
|
|
cd softhddevice-*
|
2011-12-06 18:36:57 +01:00
|
|
|
|
make VDRDIR=<path-to-your-vdr-files> LIBDIR=.
|
|
|
|
|
|
2012-01-03 21:31:03 +01:00
|
|
|
|
You can edit Makefile to enable/disable VDPAU / VA-API / Alsa / OSS
|
|
|
|
|
support.
|
|
|
|
|
|
2011-12-25 15:36:04 +01:00
|
|
|
|
Setup: environment
|
2012-01-02 15:27:03 +01:00
|
|
|
|
------
|
2011-12-25 15:36:04 +01:00
|
|
|
|
Following is supported:
|
|
|
|
|
|
|
|
|
|
DISPLAY=:0.0
|
|
|
|
|
x11 display name
|
2012-02-13 14:25:38 +01:00
|
|
|
|
NO_HW=1
|
|
|
|
|
if set don't use the hardware decoders
|
|
|
|
|
NO_MPEG_HW=1
|
|
|
|
|
if set don't use the hardware decoder for mpeg1/2
|
|
|
|
|
STUDIO_LEVELS=1
|
|
|
|
|
if set use studio levels with vdpau (deprecated use setup)
|
|
|
|
|
|
2012-01-02 15:27:03 +01:00
|
|
|
|
only if alsa is configured
|
2011-12-25 15:36:04 +01:00
|
|
|
|
ALSA_DEVICE=default
|
|
|
|
|
alsa PCM device name
|
2012-01-22 16:54:22 +01:00
|
|
|
|
ALSA_AC3_DEVICE=
|
|
|
|
|
alsa AC3/pass-though device name
|
2011-12-25 15:36:04 +01:00
|
|
|
|
ALSA_MIXER=default
|
|
|
|
|
alsa control device name
|
|
|
|
|
ALSA_MIXER_CHANNEL=PCM
|
|
|
|
|
alsa control channel name
|
2012-02-13 14:25:38 +01:00
|
|
|
|
|
2012-01-02 15:27:03 +01:00
|
|
|
|
only if oss is configured
|
|
|
|
|
OSS_AUDIODEV=/dev/dsp
|
|
|
|
|
oss dsp device name
|
2012-01-23 20:23:05 +01:00
|
|
|
|
OSS_AC3_AUDIODEV=
|
|
|
|
|
oss AC3/pass-though device name
|
2012-01-02 15:27:03 +01:00
|
|
|
|
OSS_MIXERDEV=/dev/mixer
|
|
|
|
|
oss mixer device name
|
2012-01-04 16:59:48 +01:00
|
|
|
|
OSS_MIXER_CHANNEL=pcm
|
|
|
|
|
oss mixer channel name
|
2011-12-25 15:36:04 +01:00
|
|
|
|
|
2011-12-16 22:34:54 +01:00
|
|
|
|
Setup: /etc/vdr/setup.conf
|
2012-01-02 15:27:03 +01:00
|
|
|
|
------
|
2011-12-16 22:34:54 +01:00
|
|
|
|
Following is supported:
|
|
|
|
|
|
2012-01-05 17:20:44 +01:00
|
|
|
|
softhddevice.MakePrimary = 1
|
|
|
|
|
0 = no change, 1 make softhddevice primary at start
|
|
|
|
|
|
2012-01-10 15:52:07 +01:00
|
|
|
|
softhddevice.HideMainMenuEntry = 0
|
|
|
|
|
0 = show softhddevice main menu entry, 1 = hide entry
|
|
|
|
|
|
2012-02-06 20:54:20 +01:00
|
|
|
|
<res> of the next parameters is 576i, 720p, 1080i_fake or 1080i.
|
2012-01-09 17:03:04 +01:00
|
|
|
|
1080i_fake is 1280x1080 or 1440x1080
|
|
|
|
|
1080i is "real" 1920x1080
|
|
|
|
|
|
|
|
|
|
softhddevice.<res>.Scaling = 0
|
|
|
|
|
0 = normal, 1 = fast, 2 = HQ, 3 = anamorphic
|
|
|
|
|
|
|
|
|
|
softhddevice.<res>.Deinterlace = 0
|
2011-12-16 22:34:54 +01:00
|
|
|
|
0 = bob, 1 = weave, 2 = temporal, 3 = temporal_spatial, 4 = software
|
2012-01-02 15:27:03 +01:00
|
|
|
|
(only 0, 1 supported with vaapi)
|
2011-12-16 22:34:54 +01:00
|
|
|
|
|
2012-01-09 17:03:04 +01:00
|
|
|
|
softhddevice.<res>.SkipChromaDeinterlace = 0
|
2012-01-05 17:20:44 +01:00
|
|
|
|
0 = disabled, 1 = enabled (for slower cards, poor qualit<69>t)
|
|
|
|
|
|
2012-01-09 17:03:04 +01:00
|
|
|
|
softhddevice.<res>.Denoise = 0
|
2012-01-05 17:20:44 +01:00
|
|
|
|
0 .. 1000 noise reduction level (0 off, 1000 max)
|
|
|
|
|
|
2012-01-09 17:03:04 +01:00
|
|
|
|
softhddevice.<res>.Sharpness = 0
|
2012-01-05 17:20:44 +01:00
|
|
|
|
-1000 .. 1000 noise reduction level (0 off, -1000 max blur,
|
|
|
|
|
1000 max sharp)
|
2011-12-16 22:34:54 +01:00
|
|
|
|
|
2011-12-19 17:03:40 +01:00
|
|
|
|
softhddevice.AudioDelay = 0
|
|
|
|
|
+n or -n ms
|
|
|
|
|
|
2012-01-07 03:05:43 +01:00
|
|
|
|
softhddevice.AudioPassthrough = 0
|
|
|
|
|
0 = none, 1 = AC-3
|
|
|
|
|
|
2012-01-22 16:54:22 +01:00
|
|
|
|
for AC-3 the pass-through device is used.
|
|
|
|
|
|
2012-01-20 15:33:37 +01:00
|
|
|
|
softhddevice.AutoCrop.Interval = 0
|
|
|
|
|
0 disables auto-crop
|
|
|
|
|
n each 'n' frames auto-crop is checked.
|
|
|
|
|
|
|
|
|
|
softhddevice.AutoCrop.Delay = 0
|
2012-01-28 01:44:50 +01:00
|
|
|
|
if auto-crop is over 'n' intervals the same, the cropping is
|
2012-01-20 15:33:37 +01:00
|
|
|
|
used.
|
|
|
|
|
|
2012-01-28 01:44:50 +01:00
|
|
|
|
softhddevice.AutoCrop.Tolerance = 0
|
|
|
|
|
if detected crop area is too small, cut max 'n' pixels at top and
|
|
|
|
|
bottom.
|
|
|
|
|
|
2012-01-29 11:28:10 +01:00
|
|
|
|
softhddevice.SkipLines = 0
|
|
|
|
|
skip 'n' lines at top and bottom of the video picture.
|
2012-01-28 01:44:50 +01:00
|
|
|
|
|
2012-02-13 14:25:38 +01:00
|
|
|
|
softhddevice.StudioLevels = 0
|
|
|
|
|
0 use PC levels (0-255) with vdpau.
|
|
|
|
|
1 use studio levels (16-235) with vdpau.
|
|
|
|
|
|
2012-01-22 20:49:43 +01:00
|
|
|
|
softhddevice.Suspend.Close = 0
|
|
|
|
|
1 suspend closes x11 window, connection and audio device.
|
|
|
|
|
(use svdrpsend plug softhddevice RESU to resume, if you have no lirc)
|
|
|
|
|
|
|
|
|
|
softhddevice.Suspend.X11 = 0
|
|
|
|
|
1 suspend stops X11 server (not working yet)
|
|
|
|
|
|
2012-02-11 18:22:48 +01:00
|
|
|
|
VideoDisplayFormat = ?
|
|
|
|
|
0 pan and scan
|
|
|
|
|
1 letter box
|
|
|
|
|
2 center cut-out
|
|
|
|
|
|
2012-01-10 15:52:07 +01:00
|
|
|
|
Setup: /etc/vdr/remote.conf
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
Add "XKeySym." definitions to /etc/vdr/remote.conf to control
|
|
|
|
|
the vdr and plugin with the connected input device.
|
|
|
|
|
|
|
|
|
|
fe.
|
|
|
|
|
XKeySym.Up Up
|
|
|
|
|
XKeySym.Down Down
|
|
|
|
|
...
|
|
|
|
|
|
|
|
|
|
Additional to the x11 input sends the window close button "Close".
|
|
|
|
|
|
|
|
|
|
fe.
|
|
|
|
|
XKeySym.Power Close
|
2012-01-07 03:05:43 +01:00
|
|
|
|
|
2012-01-03 21:31:03 +01:00
|
|
|
|
Commandline:
|
|
|
|
|
------------
|
|
|
|
|
|
2012-01-22 20:49:43 +01:00
|
|
|
|
Use vdr -h to see the command line arguments supported by the plugin.
|
2012-01-03 21:31:03 +01:00
|
|
|
|
|
2012-01-19 00:16:15 +01:00
|
|
|
|
-a audio_device
|
|
|
|
|
|
|
|
|
|
Selects audio output module and device.
|
|
|
|
|
"" to disable audio output
|
|
|
|
|
/... to use oss audio module (if compiled with oss
|
|
|
|
|
support)
|
|
|
|
|
other to use alsa audio module (if compiled with alsa
|
|
|
|
|
support)
|
|
|
|
|
|
2012-01-22 20:49:43 +01:00
|
|
|
|
SVDRP:
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
Use 'svdrpsend.pl plug softhddevice HELP' to see the SVDRP commands
|
|
|
|
|
help and which are supported by the plugin.
|
|
|
|
|
|
2012-01-10 15:52:07 +01:00
|
|
|
|
Running:
|
|
|
|
|
--------
|
|
|
|
|
|
2012-01-13 16:31:29 +01:00
|
|
|
|
Click into video window to toggle fullscreen/window mode, only if you
|
|
|
|
|
have a window manager running.
|
|
|
|
|
|
2012-01-02 15:27:03 +01:00
|
|
|
|
Warning:
|
|
|
|
|
--------
|
|
|
|
|
libav is not supported, expect many bugs with it.
|
|
|
|
|
|
2011-12-06 18:36:57 +01:00
|
|
|
|
Requires:
|
|
|
|
|
---------
|
2012-01-02 15:27:03 +01:00
|
|
|
|
media-video/ffmpeg (version >=0.7)
|
2011-12-06 18:36:57 +01:00
|
|
|
|
Complete solution to record, convert and stream audio and
|
|
|
|
|
video. Includes libavcodec.
|
|
|
|
|
http://ffmpeg.org
|
|
|
|
|
media-libs/alsa-lib
|
|
|
|
|
Advanced Linux Sound Architecture Library
|
|
|
|
|
http://www.alsa-project.org
|
2012-01-03 21:31:03 +01:00
|
|
|
|
or
|
|
|
|
|
kernel support for oss/oss4 or alsa oss emulation
|
|
|
|
|
|
2011-12-06 18:36:57 +01:00
|
|
|
|
x11-libs/libva
|
|
|
|
|
Video Acceleration (VA) API for Linux
|
|
|
|
|
http://www.freedesktop.org/wiki/Software/vaapi
|
|
|
|
|
x11-libs/libva-intel-driver
|
|
|
|
|
HW video decode support for Intel integrated graphics
|
|
|
|
|
http://www.freedesktop.org/wiki/Software/vaapi
|
|
|
|
|
or
|
|
|
|
|
x11-libs/vdpau-video
|
|
|
|
|
VDPAU Backend for Video Acceleration (VA) API
|
|
|
|
|
http://www.freedesktop.org/wiki/Software/vaapi
|
2012-01-02 15:27:03 +01:00
|
|
|
|
or
|
2011-12-06 18:36:57 +01:00
|
|
|
|
x11-libs/xvba-video
|
|
|
|
|
XVBA Backend for Video Acceleration (VA) API
|
|
|
|
|
http://www.freedesktop.org/wiki/Software/vaapi
|
|
|
|
|
x11-libs/libxcb,
|
|
|
|
|
X C-language Bindings library
|
|
|
|
|
http://xcb.freedesktop.org
|
|
|
|
|
x11-libs/xcb-util,
|
|
|
|
|
x11-libs/xcb-util-wm,
|
|
|
|
|
x11-libs/xcb-util-keysyms
|
|
|
|
|
X C-language Bindings library
|
|
|
|
|
http://xcb.freedesktop.org
|
2012-01-02 15:27:03 +01:00
|
|
|
|
Only versions >= 0.3.8 are good supported
|
2011-12-06 18:36:57 +01:00
|
|
|
|
|
|
|
|
|
x11-libs/libX11
|
|
|
|
|
X.Org X11 library
|
|
|
|
|
http://xorg.freedesktop.org
|
|
|
|
|
|
|
|
|
|
GNU Make 3.xx
|
|
|
|
|
http://www.gnu.org/software/make/make.html
|
|
|
|
|
|
|
|
|
|
Optional:
|