Mp3-plugin
Aus VDR Wiki
Version vom 21. Februar 2005, 18:10 Uhr von 213.6.77.71 (Diskussion)
Inhaltsverzeichnis |
Beschreibung
Autor: Stefan Huelswitt
Bilder
Hardwareanforderungen
- DVB Karte
- Optional Soundkarte
Softwareanforderungen
- libid3tag
- libmad
- libsndfile
- libogg
- libvorbis
- netpbm (optional fuer hintergrund bilder)
- mjpegtools (optional fuer hintergrund bilder)
Installation
cd $SOURCEDIR
tar xfvz zlib-<VERSION>.tar.gz
cd zlib-<VERSION>.tar.gz
./configure --prefix=/usr/local
make
make install
ldconfig
cd -
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
Es wird davon ausgegangen, das das Plugin bereits entpackt und verlinkt wurde, siehe Plugin Installation.
mkdir -p /var/lib/cddb cd $SOURCEDIR/VDR/PLUGINS/src/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/VDR 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:
vdr -P'mp3 -m /usr/local/bin/mount.sh -B /var/lib/cddb -n /usr/local/bin/network.sh'
Es ist auch möglich Internet-Streams zu empfangen, sicher nur für Standleitungen von Interesse.
Nun sollte auch klar werden, für was die network.sh anzupassen ist.
Ruft man einen Stream auf, kann mit besagten Script die Internetverbindung hergestellt werden.
Einfach ein Verzeichniss erstellen, möglichst unterhalb von den Einträgen der mp3sources.conf.
mkdir -p /mp3/streams
Dazu sind einfache Textfiles zu erstellen.
cd /mp3/streams echo http://205.188.234.65:8030 > Beschreibung
Unter folgenden Adressen, findet man für jeden Geschmack etwas.
Oder per Script.
Probleme
Optionen
| WITHOUT_MP3=1 | Übersetzen ohne MP3-Plugin |
| WITHOUT_MPLAYER=1 | Übersetzen ohne MPlayer-Plugin |
| WITHOUT_LIBSNDFILE=1 | bersetzen ohne Libsndfile |
| WITHOUT_LIBVORBISFILE=1 | Übersetzen ohne libvorbisfile |
| WITH_OSS_OUTPUT=1 | Übersetzen mit "OSS sound Ausgabe". Laut HISTORY kann das DSP device mit angegeben werden: -D [NUM] somit -D 1 |
| BROKEN_PCM=1 | Please note that you need a 261d firmware or you have to compile with... |
Parameter
| Parameter (kurz) | Parameter (lang) | Beschreibung |
|---|---|---|
| -m | --mount=CMD | use CMD to mount/unmount/eject mp3 sources (default: mount.sh) |
| -n | --network=CMD | execute CMD before & after network access (default: none) |
| -C | --cache=DIR | store ID3 cache file in DIR (default: video dir) |
| -V | -cddb=DIR | search CDDB files in DIR (default: /var/lib/cddb) |
| -D | --dsp=DIR | device for OSS output (default: none) |
| -i | --iconv=CMD | use CMD to convert background images (default: image_convert.sh) |
| -c | --icache=DIR | cache converted images in DIR (default: /var/cache/images/mp3) |
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.gzip.org/zlib | Zlib |
| [5] | http://www.muempf.de/index.html | Homepage des Plugins |