VDR: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde geleert.)
 
(26 dazwischenliegende Versionen von 6 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
−
=Vorbereitung=
 
−
==Benötigte Pakete==
 
−
apt-get install build-essential libjpeg62-dev libcap-dev libfontconfig1-dev gettext libncursesw5-dev libncurses5-dev
 
  
−
==VDR==
 
−
*Paket ziehen
 
−
cd /usr/src
 
−
wget ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.10.tar.bz2
 
−
*Auspacken
 
−
tar -xvjf  vdr-1.7.10.tar.bz2
 
−
ln -s vdr-1.7.10 VDR
 
−
*Make.config erstellen
 
−
cat make.config
 
−
CC      = gcc
 
−
CFLAGS  = -g -O2 -Wall
 
−
CXX      = g++
 
−
CXXFLAGS = -g -O2 -Wall -Woverloaded-virtual -fPIC
 
−
ifdef PLUGIN
 
−
CFLAGS  += -fPIC
 
−
CXXFLAGS += -fPIC
 
−
endif
 
−
MANDIR  = /usr/local/vdr/man
 
−
BINDIR  = /usr/local/vdr/bin
 
−
PLUGINDIR= ./PLUGINS
 
−
PLUGINLIBDIR= /usr/local/vdr/plugins
 
−
CONFDIR = /usr/local/vdr/etc
 
−
LOCDIR = /usr/src/VDR/locale
 
−
VIDEODIR = /video
 
−
### The remote control:
 
−
#LIRC_DEVICE = /dev/lircd
 
−
#RCU_DEVICE  = /dev/ttyS0
 
−
### You don't need to touch the following:
 
−
ifdef DVBDIR
 
−
INCLUDES += -I$(DVBDIR)/include
 
−
endif
 
−
*Kompilieren und Plugins erstellen
 
−
make all plugins
 
−
 
−
=Plugins installieren=
 
−
==Streamdev==
 
−
cd PLUGINS/src
 
−
cvs -d:pserver:anoncvs@vdr-developer.org:/var/cvsroot login
 
−
cvs -d:pserver:anoncvs@vdr-developer.org:/var/cvsroot co streamdev
 
−
 
−
==xine==
 
−
apt-get install autoconf automake cvs libtool libpng12-dev x-dev libx11-dev libxext-dev libxt-dev ffmpeg libavcodec-dev libpostproc-dev
 
−
 
−
cd /usr/src
 
−
export SOURCEDIR="/usr/src"
 
−
wget http://home.vrweb.de/~rnissl/vdr-xine-0.9.3.tgz
 
−
wget http://home.vrweb.de/~rnissl/xine-lib-cvs-20090617220000.tar.bz2
 
−
wget http://home.vrweb.de/~rnissl/xine-ui-cvs-20090617220000.tar.bz2
 
−
tar xvzf vdr-xine-0.9.3.tgz -C $(pwd)/VDR/PLUGINS/src
 
−
tar -xjvf xine-lib-cvs-20090617220000.tar.bz2
 
−
tar -xjvf xine-ui-cvs-20090617220000.tar.bz2
 
−
cd VDR/PLUGINS/src
 
−
ln -s xine-0.9.3 xine
 
−
 
−
  ## Kopieren der "loops"
 
−
cd xine
 
−
mkdir -p /usr/local/vdr/plugins/xine
 
−
find . -name *.mpg -exec cp -v \{} /usr/local/vdr/plugins/xine \;
 
−
 
−
## link für den Player
 
−
ln -vs $(pwd)/xineplayer /usr/local/bin/xineplayer
 
−
 
−
## uebersetzen der xine-lib
 
−
cd ../../../../xine-lib
 
−
find $SOURCEDIR/VDR/ -name xine-lib.patch -exec patch -p1 -i \{} \;
 
−
./autogen.sh --prefix=/usr/local
 
−
make
 
−
make install
 
−
ldconfig
 
−
 
−
## uebersetzen des frontends
 
−
cd ../xine-ui
 
−
find $SOURCEDIR/VDR/ -name xine-ui.patch -exec patch -p1 -i \{} \;
 
−
./autogen.sh --prefix=/usr/local --enable-vdr-keys
 
−
make
 
−
make install
 
−
 
−
===Xine starten===
 
−
Will man VDR mit Xine-Plugin starten muss man folgendes machen:
 
−
/usr/local/vdr/bin/vdr -P"xine -r"
 
−
Übers Netzwerk mit Option -p
 
−
/usr/local/vdr/bin/vdr -P"xine -r -p"
 
−
Xine startet man dann so (selber rechner über unix socket):
 
−
xine "vdr:/tmp/vdr-xine/stream#demux:mpeg_pes"
 
−
Und übers Netzwerk:
 
−
xine "netvdr://host:port#demux:mpeg_pes"
 
−
Port ist optional (2001 per default)
 
−
 
−
===Xine konfigurieren===
 
−
Tastaturbelegung nach ~/.xine/keymap
 
−
http://www.vdr-wiki.de/wiki/index.php/Keymap
 
−
 
−
===Xine-Lila-Problem===
 
−
Wenn Xine Lila wird (bei ATI-Grafikkarten) folgendes ausführen.
 
−
Start xine
 
−
Click File, then Configure and then Preferences
 
−
In experience_level select "Master Of The Known Universe" so that all available settings are visible.
 
−
Select the tab for video.
 
−
Under Driver select "xshm".
 
−
Restart xine.
 
−
 
−
==softdev==
 
−
apt-get install  xorg-dev libasound2-dev libxv-dev zlib1g-dev g++ subversion cvs
 
−
 
−
==softcam==
 
−
apt-get install libssl-dev libbz2-dev
 
−
cd /usr/src/VDR/PLUGINS/src
 
−
wget http://207.44.152.197/vdr-sc-0.9.3.tar.gz
 
−
tar -xf vdr-sc-0.9.3.tar.gz
 
−
ln -s sc-0.9.3 sc
 
−
cd /usr/src/VDR
 
−
make plugins
 
−
 
−
=LIRC=
 
−
Konfiguration von Lirc mit IR-Empfänger per serielle Schnittstelle und Hauppauge-Fernbedienung
 
−
 
−
==Installation==
 
−
apt-get install lirc
 
−
 
−
==Konfiguriere lirc==
 
−
*Home-Brew (16x50 UART compatible serial port)
 
−
*None
 
−
*ttyS*-Port an dem der Empfänger angeschlossen ist
 
−
 
−
==/etc/lirc/hardware.conf==
 
−
REMOTE_DRIVER="default"
 
−
 
−
==/etc/lirc/lircd.conf==
 
−
Diese Konfiguration ist für Hauppauge-Fernbedienung. Andere Konfigurationen findet man unter http://lirc.sourceforge.net/remotes/
 
−
 
−
#
 
−
# this config file was automatically generated
 
−
# using lirc-0.7.0(any) on Sun Nov 28 20:25:09 2004
 
−
#
 
−
# contributed by
 
−
#
 
−
# brand:  Hauppauge 350
 
−
# Created: G.J. Werler (The Netherlands)
 
−
# Project: Mythtv Fedora Pundit-R www.mythtvportal.com
 
−
# Date:    2004/11/28
 
−
# model no. of remote control: Hauppauge A415-HPG
 
−
# devices being controlled by this remote: PVR-350
 
−
#
 
−
 
−
begin remote
 
−
 
−
  name  Hauppauge_350
 
−
  bits          13
 
−
  flags RC5|CONST_LENGTH
 
−
  eps            30
 
−
  aeps          100
 
−
 
−
  one          969  811
 
−
  zero          969  811
 
−
  plead        1097
 
−
  gap          114605
 
−
  toggle_bit      2
 
−
 
−
 
−
      begin codes
 
−
          Go                      0x00000000000017BB
 
−
          Power                    0x00000000000017BD
 
−
          TV                      0x000000000000179C
 
−
          Videos                  0x0000000000001798
 
−
          Music                    0x0000000000001799
 
−
          Pictures                0x000000000000179A
 
−
          Guide                    0x000000000000179B
 
−
          Radio                    0x000000000000178C
 
−
          Up                      0x0000000000001794
 
−
          Left                    0x0000000000001796
 
−
          Right                    0x0000000000001797
 
−
          Down                    0x0000000000001795
 
−
          OK                      0x00000000000017A5
 
−
          Back/Exit                0x000000000000179F
 
−
          Menu/i                  0x000000000000178D
 
−
          Vol+                    0x0000000000001790
 
−
          Vol-                    0x0000000000001791
 
−
          Prev.Ch                  0x0000000000001792
 
−
          Mute                    0x000000000000178F
 
−
          Ch+                      0x00000000000017A0
 
−
          Ch-                      0x00000000000017A1
 
−
          Record                  0x00000000000017B7
 
−
          Stop                    0x00000000000017B6
 
−
          Rewind                  0x00000000000017B2
 
−
          Play                    0x00000000000017B5
 
−
          Forward                  0x00000000000017B4
 
−
                        Replay/SkipBackward      0x00000000000017A4
 
−
          Pause                    0x00000000000017B0
 
−
          SkipForward              0x000000000000179E
 
−
          1                        0x0000000000001781
 
−
          2                        0x0000000000001782
 
−
          3                        0x0000000000001783
 
−
          4                        0x0000000000001784
 
−
          5                        0x0000000000001785
 
−
          6                        0x0000000000001786
 
−
          7                        0x0000000000001787
 
−
          8                        0x0000000000001788
 
−
          9                        0x0000000000001789
 
−
          Asterix                  0x000000000000178A
 
−
          0                        0x0000000000001780
 
−
          #                        0x000000000000178E
 
−
          Red                      0x000000000000178B
 
−
          Green                    0x00000000000017AE
 
−
          Yellow                  0x00000000000017B8
 
−
          Blue                    0x00000000000017A9
 
−
      end codes
 
−
 
−
end remote
 
−
 
−
==Testen==
 
−
Testen kann man mit dem einfachen Befehl
 
−
irw
 
−
Vorher muss man lircd mit
 
−
/etc/init.d/lircd start
 
−
starten.
 
−
 
−
==xine steuern==
 
−
Um ein Programm zu steuern benötigt man eine lircrc. Diese kann man unter /etc/lirc/lircrc (Systemweit) oder unter ~/.lircrc für einen Benutzer ablegen.
 
−
 
−
begin irexec
 
−
    begin
 
−
        prog  = irexec
 
−
        remote = Hauppauge_350
 
−
        button = Go
 
−
        # Start Xine and play DVD
 
−
        config = xine "vdr:/tmp/vdr-xine/stream#demux:mpeg_pes" &
 
−
        # Enter xine mode
 
−
        mode = xine
 
−
    end
 
−
end irexec
 
−
 
−
begin xine
 
−
    begin
 
−
        prog = xine
 
−
        button = POWER
 
−
        config = Quit
 
−
        # Enter irexec mode
 
−
        mode = irexec
 
−
    end
 
−
end xine
 
−
 
−
[[lircrc | ausführliche lircrc]]
 
−
 
−
==Links==
 
−
*[http://wiki.ubuntuusers.de/Lirc LIRC im Ubuntuusers-Wiki]
 
−
*[http://www.vdr-wiki.de/wiki/index.php/LIRC LIRC im VDR-Wiki]
 

Aktuelle Version vom 5. April 2012, 12:49 Uhr