Hallo zusammen
Ich mache hier ein Howto für Ubuntu 8.10 / 9.04 mit VDPAU
Letzte Änderung: 16. August 2009
HD Sender laufen mit dem P5N7A-VM jetzt sehr gut und flüssig ohne Ruckler. Umschalten der Sender macht kein Problem mehr. Eventuell noch kleinere Anpassunge im Xinelbout Plugin machen und in der Xorg.conf Option "Composite" "Disable" noch einfügen (Siehe unten)
Startscripts eingestellt (siehe unten in rot)
Firmware
Treiber : s2-liplianin
Nvidia: NVIDIA-Linux-x86-185.18.31-pkg1.run
xine-vdapu
remote.conf zum downloaden
Bitte AMD CPU Speed beobachte, ob da noch Einstellungen gemacht werden müssen (je nach Typ verschieden)
Eigene verwendete Hardware:
Hauppauge WinTV NOVA-HD-S2
Mainboard ASUS P5N7A-VM
Bios 512MB eingestellt
4 GB Ram
Installieren Sie Ubuntu 9.04 Workstation
Putty tauglich machen
Ubuntu Upgrade
Nvidia Treiber installieren:
apt-get install build-essential
/etc/init.d/gdm stop
cd /home/deinkonto
wget ftp://download.nvidia.com/XFree86/Linux-x86/185.18.31/NVIDIA-Linux-x86-185.18.31-pkg1.run (oder neuer)
sh *run
Alles mit OK und Ja durchklicken
Libs die benötigt werden installieren:
apt-get install mercurial cvs subversion libncurses-dev zlib1g-dev
apt-get install autoconf libtool automake pkg-config gettext
apt-get install liba52-0.7.4-dev libmp3lame-dev libvorbis-dev libpng12-dev libx11-dev libxv-dev libasound2-dev
Frimware für die Novas S2 installieren:
cd /usr/local/src
apt-get install unrar -y
rm /lib/firmware/dvb-fe-c*
cd /usr/local/src
wget http://www.hauppauge.de/software/mce/88x_2_122_26109_WHQL.zip
unzip -jo 88x_2_122_26109_WHQL.zip Driver88/hcw88bda.sys
dd if=hcw88bda.sys of=dvb-fe-cx26109.fw skip=75504 bs=1 count=32501
cp dvb-fe-cx26109.fw /lib/firmware/
ln -s /lib/firmware/dvb-fe-cx26109.fw /lib/firmware/dvb-fe-cx24116.fw
Treiber installieren:
apt-get install build-essential
apt-get install mercurial cvs subversion libncurses-dev
cd /usr/local/src
hg clone http://mercurial.intuxication.org/hg/s2-liplianin/
cd s2-liplianin
cd linux/include/linux
ln -s /usr/src/linux-headers-`uname -r`/include/linux/compiler.h ./
cd ../../../
make
make install
depmod -a
reboot
Display More
überprüfen kannst du die Treiberinstallation mit
Xine-VDPAU:
cd /usr/local/src
apt-get install libpostproc-dev
svn co svn://jusst.de/xine-vdpau
cd xine-vdpau
./autogen.sh
./configure --prefix=/usr
make
make install
ldconfig -v
Xine-UI
cd /usr/local/src
apt-get install libxt-dev
wget http://home.vrweb.de/~rnissl/xine-ui-cvs-20090412200000.tar.bz2
tar xivf xine-ui-cvs-20090412200000.tar.bz2
cd xine-ui
./autogen.sh --prefix=/usr --enable-vdr-keys
make
make install
VDR 1.7.0
cd /usr/local/src
apt-get install libfreetype6-dev libfontconfig1-dev libjpeg62-dev libcap-dev libncurses5-dev libncursesw5-dev
wget ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.0.tar.bz2
wget http://www.zulu-entertainment.de/page/klick.php?d=VDR+Extensions+Patch
tar xivf VDR-Extensions-Patch-72.tar.bz2
cd vdr-1.7.0
patch -p1 < ../VDR-Extensions-Patch-72/vdr-1.7.0_extensions.diff
patch -p1 < ../VDR-Extensions-Patch-72/extras/vdr-1.7.0-ext_h264-s2ng-speedup.diff
mv Make.config.template Make.config
nano Make.config
#
# User defined Makefile options for the Video Disk Recorder
#
# Copy this file to 'Make.config' and change the parameters as necessary.
#
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
# $Id: Make.config.template 2.0 2008/01/13 12:54:09 kls Exp $
### The C compiler and options:
CC = gcc
CFLAGS = -g -O2 -Wall
CXX = g++
CXXFLAGS = -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses
ifdef PLUGIN
CFLAGS += -fPIC
CXXFLAGS += -fPIC
endif
### The directory environment:
DVBDIR = /usr/local/src/s2-liplianin/linux
MANDIR = /usr/man
BINDIR = /usr/bin
LOCDIR = /usr/share/locale
PLUGINDIR= ./PLUGINS
PLUGINLIBDIR= /usr/lib/vdr/plugins
VDRSCRIPTDIR= /usr/lib/vdr/scripts
VIDEODIR = /media/video
CONFDIR = /etc/vdr/
### The remote control:
LIRC_DEVICE = /dev/lircd
RCU_DEVICE = /dev/ttyS1
## Define if you want vdr to not run as root
#VDR_USER = vdr
### VDR-Extensions:
# Comment the patches you don't need
# DVDCHAPJUMP needs DVDARCHIVE enabled
# DVDARCHIVE needs LIEMIEXT enabled
# SORTRECORDS needs LIEMIEXT enabled
# you can only enable MENUORG or SETUP
#ANALOGTV = 1
#ATSC = 1
#CHANNELSCAN = 1
#CMDRECCMDI18N = 1
#CMDSUBMENU = 1
#CUTTERLIMIT = 1
#CUTTERQUEUE = 1
#CUTTIME = 1
#DDEPGENTRY = 1
#DELTIMESHIFTREC = 1
#DOLBYINREC = 1
#DVBSETUP = 1
#DVDARCHIVE = 1
#DVDCHAPJUMP = 1
#DVLFRIENDLYFNAMES = 1
#DVLRECSCRIPTADDON = 1
#DVLVIDPREFER = 1
#EM84XX = 1
#GRAPHTFT = 1
#HARDLINKCUTTER = 1
#JUMPPLAY = 1
#LIEMIEXT = 1
#LIRCSETTINGS = 1
#LIVEBUFFER = 1
#LNBSHARE = 1
#MAINMENUHOOKS = 1
#MENUORG = 1
#NOEPG = 1
#OSDMAXITEMS = 1
#PARENTALRATING = 1
#PINPLUGIN = 1
#PLUGINAPI = 1
#PLUGINMISSING = 1
#PLUGINPARAM = 1
#ROTOR = 1
#SETTIME = 1
#SETUP = 1
#SOFTOSD = 1
#SOURCECAPS = 1
#SORTRECORDS = 1
#STREAMDEVEXT = 1
#TIMERCMD = 1
#TIMERINFO = 1
#TTXTSUBS = 1
#VALIDINPUT = 1
#VOLCTRL = 1
#WAREAGLEICON = 1
#YAEPG = 1
### You don't need to touch the following:
ifdef DVBDIR
INCLUDES += -I$(DVBDIR)/include
endif
ifdef ANALOGTV
DEFINES += -DUSE_ANALOGTV
endif
ifdef ATSC
DEFINES += -DUSE_ATSC
endif
ifdef CHANNELSCAN
DEFINES += -DUSE_CHANNELSCAN
endif
ifdef CMDRECCMDI18N
DEFINES += -DUSE_CMDRECCMDI18N
endif
ifdef CMDSUBMENU
DEFINES += -DUSE_CMDSUBMENU
endif
ifdef CUTTERLIMIT
DEFINES += -DUSE_CUTTERLIMIT
endif
ifdef CUTTERQUEUE
DEFINES += -DUSE_CUTTERQUEUE
endif
ifdef CUTTIME
DEFINES += -DUSE_CUTTIME
endif
ifdef DDEPGENTRY
DEFINES += -DUSE_DDEPGENTRY
endif
ifdef DELTIMESHIFTREC
DEFINES += -DUSE_DELTIMESHIFTREC
endif
ifdef DOLBYINREC
DEFINES += -DUSE_DOLBYINREC
endif
ifdef DVBSETUP
DEFINES += -DUSE_DVBSETUP
endif
ifdef DVDARCHIVE
ifdef LIEMIEXT
DEFINES += -DUSE_DVDARCHIVE
endif
endif
ifdef DVLRECSCRIPTADDON
DEFINES += -DUSE_DVLRECSCRIPTADDON
endif
ifdef DVLVIDPREFER
DEFINES += -DUSE_DVLVIDPREFER
endif
ifdef DVLFRIENDLYFNAMES
DEFINES += -DUSE_DVLFRIENDLYFNAMES
endif
ifdef EM84XX
DEFINES += -DUSE_EM84XX
endif
ifdef GRAPHTFT
DEFINES += -DUSE_GRAPHTFT
endif
ifdef HARDLINKCUTTER
DEFINES += -DUSE_HARDLINKCUTTER
endif
ifdef JUMPPLAY
DEFINES += -DUSE_JUMPPLAY
endif
ifdef LIEMIEXT
DEFINES += -DUSE_LIEMIEXT
endif
ifdef LIRCSETTINGS
DEFINES += -DUSE_LIRCSETTINGS
endif
ifdef LIVEBUFFER
DEFINES += -DUSE_LIVEBUFFER
endif
ifdef LNBSHARE
DEFINES += -DUSE_LNBSHARE
endif
ifdef MAINMENUHOOKS
DEFINES += -DUSE_MAINMENUHOOKS
endif
ifdef MENUORG
DEFINES += -DUSE_MENUORG
else
ifdef SETUP
DEFINES += -DUSE_SETUP
endif
endif
ifdef NOEPG
DEFINES += -DUSE_NOEPG
endif
ifdef OSDMAXITEMS
DEFINES += -DUSE_OSDMAXITEMS
endif
ifdef PARENTALRATING
DEFINES += -DUSE_PARENTALRATING
endif
ifdef PINPLUGIN
DEFINES += -DUSE_PINPLUGIN
endif
ifdef PLUGINMISSING
DEFINES += -DUSE_PLUGINMISSING
endif
ifdef PLUGINPARAM
DEFINES += -DUSE_PLUGINPARAM
endif
ifdef ROTOR
DEFINES += -DUSE_ROTOR
endif
ifdef SETTIME
DEFINES += -DUSE_SETTIME
endif
ifdef SOFTOSD
DEFINES += -DUSE_SOFTOSD
endif
ifdef SOURCECAPS
DEFINES += -DUSE_SOURCECAPS
endif
ifdef SORTRECORDS
ifdef LIEMIEXT
DEFINES += -DUSE_SORTRECORDS
endif
endif
ifdef STREAMDEVEXT
DEFINES += -DUSE_STREAMDEVEXT
endif
ifdef TIMERCMD
DEFINES += -DUSE_TIMERCMD
endif
ifdef TIMERINFO
DEFINES += -DUSE_TIMERINFO
endif
ifdef TTXTSUBS
DEFINES += -DUSE_TTXTSUBS
endif
ifdef VALIDINPUT
DEFINES += -DUSE_VALIDINPUT
endif
ifdef VOLCTRL
DEFINES += -DUSE_VOLCTRL
endif
ifdef WAREAGLEICON
DEFINES += -DUSE_WAREAGLEICON
endif
ifdef YAEPG
DEFINES += -DUSE_YAEPG
endif
Display More
mkdir /media/video
mkdir -p /usr/lib/vdr/plugins
mkdir -p /usr/lib/vdr/scripts
mkdir -p /etc/vdr/plugins
make
make plugins
make install
cp -a svdrpsend.pl /usr/bin
cp *.conf /etc/vdr/
Xineliboutput 1.0.4 - software output plugin
cd /usr/local/src/vdr-1.7.0/PLUGINS/src
apt-get install libextractor-dev
wget http://heanet.dl.sourceforge.net/sourceforge/xineliboutput/vdr-xineliboutput-1.0.4.tar.bz2
tar xivf vdr-xineliboutput-1.0.4.tar.bz2
mv xineliboutput-1.0.4 xineliboutput
cd xineliboutput
make
make install
mkdir -p /etc/vdr/plugins/xineliboutput
cp *.mpg /etc/vdr/plugins/xineliboutput/
cd ../../../
make plugins
make install
Display More
Skin Reel - VDR Skin
cd /usr/local/src/vdr-1.7.0/PLUGINS/src
wget http://rsync16.de.gentoo.org/files/vdr-skinreel/vdr-skinreel-0.0.1.tgz
tar xzvf vdr-skinreel-0.0.1.tgz
mv skinreel-0.0.1 skinreel
cd skinreel
sed -i Makefile -e 's/VDRVERSION/APIVERSION/g'
cp -r skinreel /etc/vdr/plugins/
cd ../../../
make plugins
make install
Start Script
cd /wget http://privatweb.dyndns.org/vdrscript.tar.bz2tar xivf vdrscript.tar.bz2cd /etc/vdrwget http://privatweb.dyndns.org/remote.conf
nano /var/bin/runvdr
export LANG=de_DE
export LC_COLLATE=de_DE
PATH=/usr/local/bin:$PATH
VDRPRG="/usr/bin/vdr"
VDRCMD="/usr/bin/vdr -c /etc/vdr -E /var/vdr -l 3 \
-s /var/bin/vdrpoweroff.sh \
-P skinreel \
-P'xineliboutput -l none -r 37890 -p' \
-u root \
$*"
KILL="/usr/bin/killall -q -TERM"
# Detect whether the DVB driver is already loaded
# and return 0 if it *is* loaded, 1 if not:
DriverLoaded()
{
return 1
}
# Load all DVB driver modules needed for your hardware:
LoadDriver ()
{
return 0
}
# Unload all DVB driver modules loaded in LoadDriver():
UnloadDriver ()
{
return 0
}
# Load driver if it hasn't been loaded already:
if ! DriverLoaded; then
LoadDriver
fi
while (true) do
eval "$VDRCMD"
if test $? -eq 0 -o $? -eq 2; then exit; fi
echo "`date` reloading DVB driver"
$KILL $VDRPRG
sleep 10
UnloadDriver
LoadDriver
echo "`date` restarting VDR"
done
Display More
VDR starten mit root rechten:
Bild soweit IO
HD Sender ruckeln noch mit AMD K7 Prozessoren mit Intel funktioniert es schon sehr stabil
Wer lust hat, kann sein angeschlossener TV mit folgendem Befehl auslesen.
Datei wegkopieren
Mit den entsprechenden werten in der Log Datei kann eine optimale Xorg.conf datei erstellt werden (Übung macht den Meister)
In der xorg.conf zu unterst noch das einfügen. Für das Board P5N7A-VM ist es wichtig: