Mp3-plugin

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 41: Zeile 41:
 
==Installation==
 
==Installation==
 
<pre>cd $SOURCEDIR
 
<pre>cd $SOURCEDIR
tar xvzf libid3tag-0.15.0b.tar.gz
+
tar xvzf libid3tag-<VERSION>.tar.gz
cd libid3tag-0.15.0b
+
cd libid3tag-<VERSION>
 
./configure --prefix=/usr/local
 
./configure --prefix=/usr/local
 
make
 
make
Zeile 49: Zeile 49:
 
cd -
 
cd -
  
tar xvzf libmad-0.15.0b.tar.gz
+
tar xvzf libmad-<VERSION>.tar.gz
cd libmad-0.15.0b
+
cd libmad-<VERSION>
 
./configure --prefix=/usr/local
 
./configure --prefix=/usr/local
 
make
 
make
Zeile 57: Zeile 57:
 
cd -
 
cd -
  
tar xvzf libsndfile-1.0.5.tar.gz
+
tar xvzf libsndfile-<VERSION>.tar.gz
cd libsndfile-1.0.5
+
cd libsndfile-<VERSION>
 
./configure --prefix=/usr/local
 
./configure --prefix=/usr/local
 
make
 
make
Zeile 64: Zeile 64:
 
ldconfig
 
ldconfig
  
tar xvzf libogg-1.1.tar.gz
+
tar xvzf libogg-<VERSION>.tar.gz
cd libogg-1.1
+
cd libogg-<VERSION>
 
./configure --prefix=/usr/local
 
./configure --prefix=/usr/local
 
make
 
make
Zeile 72: Zeile 72:
 
cd -
 
cd -
  
tar xvzf libvorbis-1.0.1.tar.gz
+
tar xvzf libvorbis-<VERSION>.tar.gz
cd libvorbis-1.0.1
+
cd libvorbis-<VERSION>
 
./configure --prefix=/usr/local --with-ogg-libraries=/usr/local/lib
 
./configure --prefix=/usr/local --with-ogg-libraries=/usr/local/lib
 
make
 
make
Zeile 81: Zeile 81:
 
  mkdir -p /var/lib/cddb
 
  mkdir -p /var/lib/cddb
 
  cd $SOURCEDIR/VDR/PLUGINS/src
 
  cd $SOURCEDIR/VDR/PLUGINS/src
  tar xzvf vdr-mp3-0.9.3.tar.gz
+
  tar xzvf vdr-mp3-<VERSION>.tar.gz
  ln -s mp3-0.9.3 mp3
+
  ln -s mp3-<VERSION> mp3
 
  cd mp3/examples
 
  cd mp3/examples
 
  # Die [[network.sh]] ist an die Bedürfnisse anzupassen.
 
  # Die [[network.sh]] ist an die Bedürfnisse anzupassen.

Version vom 29. September 2004, 15:13 Uhr

Inhaltsverzeichnis

Beschreibung

Setup

Hardwareanforderungen

  • DVB Karte
  • Optional Soundkarte

Softwareanforderungen

  • libid3tag
  • libmad
  • libsndfile
  • libogg
  • libvorbis

Optionen

Das Plugin selbst hat einige "Schalter" inside:

### uncomment one of these lines, if you don't want one of the plugins
#WITHOUT_MP3=1           // Übersetzen ohne MP3-Plugin
#WITHOUT_MPLAYER=1       // Übersetzen ohne MPlayer-Plugin

### uncomment the following line, if you don't have libsndfile installed
#WITHOUT_LIBSNDFILE=1    // Übersetzen ohne Libsndfile

### uncomment the following line, if you don't have libvorbisfile installed
#WITHOUT_LIBVORBISFILE=1 // Übersetzen ohne libvorbisfile

### uncomment the following line, if you want OSS sound output
#WITH_OSS_OUTPUT=1       // Übersetzen mit "OSS sound Ausgabe"
                         // Laut HISTORY kann das DSP device
                         // mit angegeben werden:
                         // -D [NUM] somit -D 1

### uncomment the following line, if you want to include debug symbols
#DBG=1                   // Übersetzen im Debug Modus

Soviel zu den Optionen, für die "Übergabe" gibt es eigentlich nur 2 Wege.

  • Das direkte "auskommentieren" im Makefile vor dem übersetzen.
  • Oder per Kommandozeile, zbs:
make WITH_OSS_OUTPUT=1 all plugins

Ihr seht schon, einige Plugins sind in der Funktion zwar selbsterklärend, dennoch kann es nicht schaden mal einen Blick in die Makefiles zu werfen.

In den meisten finden sich Optionen, oft muß hier und da ein PATH angepasst werden, das sich ein Plugin zum übersetzen bewegen läßt :-))

Installation

cd $SOURCEDIR
tar xvzf libid3tag-<VERSION>.tar.gz
cd libid3tag-<VERSION>
./configure --prefix=/usr/local
make
make install
ldconfig
cd -

tar xvzf libmad-<VERSION>.tar.gz
cd libmad-<VERSION>
./configure --prefix=/usr/local
make
make install
ldconfig
cd -

tar xvzf libsndfile-<VERSION>.tar.gz
cd libsndfile-<VERSION>
./configure --prefix=/usr/local
make
make install
ldconfig

tar xvzf libogg-<VERSION>.tar.gz
cd libogg-<VERSION>
./configure --prefix=/usr/local
make
make install
ldconfig
cd -

tar xvzf libvorbis-<VERSION>.tar.gz
cd libvorbis-<VERSION>
./configure --prefix=/usr/local --with-ogg-libraries=/usr/local/lib
make
make install
ldconfig

Konfiguration

mkdir -p /var/lib/cddb
cd $SOURCEDIR/VDR/PLUGINS/src
tar xzvf vdr-mp3-<VERSION>.tar.gz
ln -s mp3-<VERSION> mp3
cd mp3/examples
# Die network.sh ist an die Bedürfnisse anzupassen.
mv network.sh.example network.sh
mv mount.sh.example mount.sh
chmod 777 *.sh
cd /usr/local/bin
ln -vs $SOURCEDIR/VDR/PLUGINS/src/mp3/scripts/*.sh .
cp mp3sources.conf.example /etc/vdr/plugins/mp3sources.conf
cp mp3sources.conf.example /etc/vdr/plugins/mplayersources.conf
cd $SOURCEDIR
make all plugins

Tip: Folgender "Einzeiler" löscht "dead-links" unter /usr/local/bin

find /usr/local/bin -type l -not -exec test -e \{} \; -exec rm \{} \;
                          ^
                          kleines L

Übergabe:

-P'mp3 -m /usr/local/bin/mount.sh -B /var/lib/cddb -n /usr/local/bin/network.sh'

Probleme

Links

[1] http://www.underbit.com/products/mad (M)PEG (A)udio (D)ecoder Homepage
[2] http://www.zip.com.au/~erikd/libsndfile Homepage -> libsndfile
[3] http://www.xiph.org/ogg/vorbis Ogg Vorbis CODEC Project
[4] http://www.muempf.de/index.html Homepage des Plugins