OpenSuSE DVB-S2 - VDR

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 59: Zeile 59:
 
===VDR installieren===
 
===VDR installieren===
 
  make && make install
 
  make && make install
 +
 +
===VDR mittels runvdr starten===
 +
Das Skript runvdr wird benötigt um die DVB Treiber sowie den VDR zu starten.
 +
 +
====runvdr anpassen====
 +
cd /usr/local/bin
 +
vi runvdr
 +
 +
#!/bin/sh
 +
 +
# runvdr: Loads the DVB driver and runs VDR
 +
#
 +
# If VDR exits abnormally, the driver will be reloaded
 +
# and VDR restarted.
 +
#
 +
# In order to actually use this script you need to implement
 +
# the functions DriverLoaded(), LoadDriver() and UnloadDriver()
 +
# and maybe adjust the VDRPRG and VDRCMD to your particular
 +
# requirements.
 +
#
 +
# Since this script loads the DVB driver, it must be started
 +
# as user 'root'. Add the option "-u username" to run VDR
 +
# under the given user name.
 +
#
 +
# Any command line parameters will be passed on to the
 +
# actual 'vdr' program.
 +
#
 +
# See the main source file 'vdr.c' for copyright information and
 +
# how to reach the author.
 +
#
 +
# $Id: runvdr 1.19 2006/05/14 16:02:05 kls Exp $<br>
 +
 +
export LANG=de_DE
 +
export LC_COLLATE=de_DE
 +
 +
PATH=/usr/local/bin:$PATH
 +
VDRPRG="/usr/local/bin/vdr"
 +
VDRCMD="$VDRPRG -t /dev/tty8 -w 60 -c /etc/vdr -E /var/vdr --vfat --lirc \
 +
        -L /usr/local/src/vdr/PLUGINS/lib \
 +
        -s /usr/local/bin/vdrpoweroff.sh \
 +
        $*"
 +
 +
KILL="/usr/bin/killall -q -TERM"
 +
 +
# Detect whether the DVB driver is already loaded
 +
# and return 0 if it *is* loaded, 1 if not:
 +
function DriverLoaded()
 +
{
 +
  return 1
 +
}<br>
 +
# Load all DVB driver modules needed for your hardware:
 +
function LoadDriver()
 +
{
 +
  modprobe dvb_core
 +
  modprobe dvb_ttpci
 +
  modprobe budget_core
 +
  modprobe budget
 +
  modprobe budget_ci
 +
}<br>
 +
# Unload all DVB driver modules loaded in LoadDriver():
 +
function UnloadDriver()
 +
{
 +
  modprobe -r budget_ci
 +
  modprobe -r budget
 +
  modprobe -r budget_core
 +
  modprobe -r dvb_ttpci
 +
}<br>
 +
# Load driver if it hasn't been loaded already:
 +
if ! DriverLoaded; then
 +
  LoadDriver
 +
  fi<br>
 +
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

Version vom 25. September 2007, 14:24 Uhr

Inhaltsverzeichnis

Installation VDR

Videoverzeichnis vorbereiten

cd /data
mkdir vdrrecords
cd /
ln -s /data/vdrrecords/ video

VDR herunterladen und vorbereiten

cd /data/installfiles/vdr
wget ftp://ftp.cadsoft.de/vdr/Developer/vdr-1.5.9.tar.bz2
cd /usr/local/src
tar -xjf /data/installfiles/vdr/vdr-1.5.9.tar.bz2
mv vdr-1.5.9/ vdr

skincurses.c anpassen

cd /usr/local/src/vdr/PLUGINS/src/skincurses
vi skincurses.c

cCursesOsd::cCursesOsd(int Left, int Top)
:cOsd(Left, Top, 0)

VDR Patches herunterladen

cd /data/installfiles/vdr
wget ../patch1-vdr-1.5.9-h264.patch
wget ../patch2-vdr-1.5.9-h264-cam-fix.patch
wget ../patch3-vdr-1.5.9-framespersec.patch

VDR Patches einspielen

cd /usr/local/src/vdr
patch -p0 -i /data/installfiles/vdr/patch1-vdr-1.5.9-h264.patch
patch -p0 -i /data/installfiles/vdr/patch2-vdr-1.5.9-h264-cam-fix.patch
patch -p0 -i /data/installfiles/vdr/patch3-vdr-1.5.9-framespersec.patch

Skripte und Konfigurationsdateien vorbereiten

cd /usr/local/src/vdr
cp -a svdrpsend.pl /usr/local/bin
mkdir -p /etc/vdr/plugins /var/vdr
mv *.conf /etc/vdr
mv channels.conf.cable /etc/vdr
mv channels.conf.terr /etc/vdr

channels.conf editieren und HDTV Kanäle hinzufügen

cd /etc/vdr
vi channels.conf

Pro7HD:12722:h:0:22000:255:259:10200
Sat1HD:12722:h:0:22000:511:515:10201

Shutdownskript erstellen und ablegen

cd /usr/local/bin
vi vdrpoweroff.sh 

#!/bin/bash
/sbin/poweroff 
cd /usr/local/bin
chmod +x vdrpoweroff.sh

VDR installieren

make && make install

VDR mittels runvdr starten

Das Skript runvdr wird benötigt um die DVB Treiber sowie den VDR zu starten.

runvdr anpassen

cd /usr/local/bin
vi runvdr
#!/bin/sh

# runvdr: Loads the DVB driver and runs VDR
#
# If VDR exits abnormally, the driver will be reloaded
# and VDR restarted.
#
# In order to actually use this script you need to implement
# the functions DriverLoaded(), LoadDriver() and UnloadDriver()
# and maybe adjust the VDRPRG and VDRCMD to your particular
# requirements.
#
# Since this script loads the DVB driver, it must be started
# as user 'root'. Add the option "-u username" to run VDR
# under the given user name.
#
# Any command line parameters will be passed on to the
# actual 'vdr' program.
#
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
# $Id: runvdr 1.19 2006/05/14 16:02:05 kls Exp $
export LANG=de_DE export LC_COLLATE=de_DE PATH=/usr/local/bin:$PATH VDRPRG="/usr/local/bin/vdr" VDRCMD="$VDRPRG -t /dev/tty8 -w 60 -c /etc/vdr -E /var/vdr --vfat --lirc \ -L /usr/local/src/vdr/PLUGINS/lib \ -s /usr/local/bin/vdrpoweroff.sh \ $*" KILL="/usr/bin/killall -q -TERM" # Detect whether the DVB driver is already loaded # and return 0 if it *is* loaded, 1 if not: function DriverLoaded() { return 1 }
# Load all DVB driver modules needed for your hardware: function LoadDriver() { modprobe dvb_core modprobe dvb_ttpci modprobe budget_core modprobe budget modprobe budget_ci }
# Unload all DVB driver modules loaded in LoadDriver(): function UnloadDriver() { modprobe -r budget_ci modprobe -r budget modprobe -r budget_core modprobe -r dvb_ttpci }
# 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