Muggle-plugin

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
K (+ {{übersetzen|80}})
K (Hierarchie)
Zeile 6: Zeile 6:
 
Das Plugin bietet eine Datenbankverbindung für den VDR, so dass die Medienauswahl flexibler wird.
 
Das Plugin bietet eine Datenbankverbindung für den VDR, so dass die Medienauswahl flexibler wird.
  
 +
<!-- ===Status=== -->
 
==Bilder==
 
==Bilder==
 
[[Bild:muggle-plugin.jpg|thumb|none|''Einstellungen'']]
 
[[Bild:muggle-plugin.jpg|thumb|none|''Einstellungen'']]
  
 +
<!-- ==Bedienung== -->
 +
<!-- ===[[SVDRP]] Befehle=== -->
 
<!-- ==Hardwareanforderungen== -->
 
<!-- ==Hardwareanforderungen== -->
 
 
==Softwareanforderungen==
 
==Softwareanforderungen==
 
* mySQL
 
* mySQL
Zeile 20: Zeile 22:
  
 
==Installation==
 
==Installation==
 +
===Optionen===
 +
{| class="wikitable
 +
|-
 +
| bgcolor=#efefef | HAVE_VORBISFILE=1
 +
| optionally libvorbis and libvorbisfile to replay OGG Vorbis files
 +
|-
 +
| bgcolor=#efefef | HAVE_FLAC=1
 +
| optionally libFLAC++ to replay FLAC files
 +
|-
 +
| bgcolor=#efefef | HAVE_SNDFILE=1
 +
|
 +
|-
 +
| bgcolor=#efefef | HAVE_ONLY_SERVER=1
 +
| if you do not want to compile in code for embedded mysql
 +
|-
 +
| bgcolor=#efefef | HAVE_SQLITE=1
 +
| define what database you want to use. Default is mysql.
 +
|-
 +
| bgcolor=#efefef | HAVE_MYSQL=1
 +
| define what database you want to use. Default is mysql.
 +
|}
 +
 +
<!-- ===Patches=== -->
 
===Source===
 
===Source===
<pre>
+
* libID3Tag
cd $SOURCEDIR
+
cd $SOURCEDIR
tar xvzf libid3tag-<VERSION>.tar.gz
+
tar xvzf libid3tag-<VERSION>.tar.gz
cd libid3tag-<VERSION>
+
cd libid3tag-<VERSION>
./configure --prefix=/usr/local
+
./configure --prefix=/usr/local
make
+
make
make install
+
make install
cd -
+
  
tar xvzf libmad-<VERSION>.tar.gz
+
* libMAD
cd libmad-<VERSION>
+
cd $SOURCEDIR
./configure --prefix=/usr/local
+
tar xvzf libmad-<VERSION>.tar.gz
make
+
cd libmad-<VERSION>
make install
+
./configure --prefix=/usr/local
cd -
+
make
 +
make install
  
tar xvzf libogg-<VERSION>.tar.gz
+
* libOGG
cd libogg-<VERSION>
+
cd $SOURCEDIR
./configure --prefix=/usr/local
+
tar xvzf libogg-<VERSION>.tar.gz
make
+
cd libogg-<VERSION>
make install
+
./configure --prefix=/usr/local
cd -
+
make
 +
make install
  
tar xvzf libvorbis-<VERSION>.tar.gz
+
* libVorbis
cd libvorbis-<VERSION>
+
cd $SOURCEDIR
./configure --prefix=/usr/local \
+
tar xvzf libvorbis-<VERSION>.tar.gz
            --with-ogg-libraries=/usr/local/lib
+
cd libvorbis-<VERSION>
make
+
./configure --prefix=/usr/local \
make install
+
            --with-ogg-libraries=/usr/local/lib
cd -
+
make
 +
make install
  
tar xvzf flac-<VERSION>.tar.gz
+
* Flac
./configure --prefix=/usr/local \
+
cd $SOURCEDIR
            --with-ogg-libraries=/usr/local/lib
+
tar xvzf flac-<VERSION>.tar.gz
make
+
./configure --prefix=/usr/local \
make install
+
            --with-ogg-libraries=/usr/local/lib
cd -
+
make
 +
make install
  
tar xvzf taglib-<VERSION>.tar.gz
+
* Taglib
cd taglib-<VERSION>
+
cd $SOURCEDIR
./configure --prefix=/usr/local
+
tar xvzf taglib-<VERSION>.tar.gz
make
+
cd taglib-<VERSION>
make install
+
./configure --prefix=/usr/local
</pre>
+
make
 +
make install
  
 
Sofern wir den Server nicht ''Binär'' installieren konnten, installieren wir als nächstes '''mysql'''.
 
Sofern wir den Server nicht ''Binär'' installieren konnten, installieren wir als nächstes '''mysql'''.
  
<pre>
+
*MySQL
cd $SOURCEDIR
+
cd $SOURCEDIR
tar xvzf mysql-<VERSION>.tar.gz
+
tar xvzf mysql-<VERSION>.tar.gz
cd mysql-<VERSION>
+
cd mysql-<VERSION>
./configure --prefix=/usr/local \
+
./configure --prefix=/usr/local \
            --libexecdir=/usr/local/bin \
+
            --libexecdir=/usr/local/bin \
            --without-extra-tools \
+
            --without-extra-tools \
            --without-bench
+
            --without-bench
make
+
make
make install
+
make install
</pre>
+
  
 
Nach der erfolgten Installation von mysql folgen noch ein paar weitere für ''muggle'' wichtige Installationsschritte.
 
Nach der erfolgten Installation von mysql folgen noch ein paar weitere für ''muggle'' wichtige Installationsschritte.
Zeile 148: Zeile 176:
 
  yast -i libid3tag-devel mad-devel flac-devel taglib-devel libvorbis-devel libsndfile-devel mysql-devel
 
  yast -i libid3tag-devel mad-devel flac-devel taglib-devel libvorbis-devel libsndfile-devel mysql-devel
  
==Optionen==
+
==Konfiguration==
{| border=1 cellpadding=2 cellspacing=0
+
<!-- ==Einstellungen== -->
|-
+
===Parameter===
| bgcolor=#efefef|HAVE_VORBISFILE=1
+
====Plugin====
| optionally libvorbis and libvorbisfile to replay OGG Vorbis files
+
{| class="wikitable"
|-
+
| bgcolor=#efefef|HAVE_FLAC=1
+
| optionally libFLAC++ to replay FLAC files
+
|-
+
| bgcolor=#efefef|HAVE_SNDFILE=1
+
|
+
 
|-
 
|-
| bgcolor=#efefef|HAVE_ONLY_SERVER=1
 
| if you do not want to compile in code for embedded mysql
 
|-
 
| bgcolor=#efefef|HAVE_SQLITE=1
 
| define what database you want to use. Default is mysql.
 
|-
 
| bgcolor=#efefef|HAVE_MYSQL=1
 
| define what database you want to use. Default is mysql.
 
|}
 
 
<!-- ==Patches== -->
 
<!-- ==Konfiguration== -->
 
<!-- ==Einstellungen== -->
 
 
==Parameter==
 
===Plugin===
 
{| border=1 cellpadding=2 cellspacing=0
 
|- bgcolor=#efefef
 
 
!Parameter (kurz)
 
!Parameter (kurz)
 
!Parameter (lang)
 
!Parameter (lang)
Zeile 201: Zeile 205:
 
|}
 
|}
  
===Mugglei===
+
====Mugglei====
{| border=1 cellpadding=2 cellspacing=0
+
{| class="wikitable"
|- bgcolor=#efefef
+
|-
 
!Parameter
 
!Parameter
 
!Beschreibung
 
!Beschreibung
Zeile 226: Zeile 230:
 
|}
 
|}
  
<!-- ==Bedienung== -->
+
<!-- ==Sonstiges== -->
<!-- ==[[SVDRP]] Befehle== -->
+
<!-- ===Probleme=== -->
<!-- ==Probleme== -->
+
<!-- ===Tipps=== -->
<!-- ==Tipps== -->
+
<!-- ===Wunschliste=== -->
<!-- ==Wunschliste== -->
+
<!-- ===Snapshot=== -->
<!-- ==Snapshot== -->
+
  
 
==Links==
 
==Links==

Version vom 8. August 2006, 10:52 Uhr


Dieser Artikel wurde noch nicht komplett ins Deutsche übersetzt! (Übersetzung zu ~ 80 % durchgeführt.)
Das könntest auch Du machen, einfach per [bearbeiten]. Danach bitte {{übersetzen|<Zahl>}} aus dem Kopf des Artikels entfernen. DANKE :-)


Inhaltsverzeichnis

Beschreibung

Autoren: Andi Kellner, Lars von Wedel, Ralf Klueber, Wolfgang Rohdewald

Das Plugin bietet eine Datenbankverbindung für den VDR, so dass die Medienauswahl flexibler wird.

Bilder

Einstellungen

Softwareanforderungen

  • mySQL
  • libid3tag
  • libmad
  • taglib
  • libvorbis >= libogg (optional)
  • flac >= libogg >= nasm (optional)

Installation

Optionen

HAVE_VORBISFILE=1 optionally libvorbis and libvorbisfile to replay OGG Vorbis files
HAVE_FLAC=1 optionally libFLAC++ to replay FLAC files
HAVE_SNDFILE=1
HAVE_ONLY_SERVER=1 if you do not want to compile in code for embedded mysql
HAVE_SQLITE=1 define what database you want to use. Default is mysql.
HAVE_MYSQL=1 define what database you want to use. Default is mysql.

Source

  • libID3Tag
cd $SOURCEDIR
tar xvzf libid3tag-<VERSION>.tar.gz
cd libid3tag-<VERSION>
./configure --prefix=/usr/local
make
make install
  • libMAD
cd $SOURCEDIR
tar xvzf libmad-<VERSION>.tar.gz
cd libmad-<VERSION>
./configure --prefix=/usr/local
make
make install
  • libOGG
cd $SOURCEDIR
tar xvzf libogg-<VERSION>.tar.gz
cd libogg-<VERSION>
./configure --prefix=/usr/local
make
make install
  • libVorbis
cd $SOURCEDIR
tar xvzf libvorbis-<VERSION>.tar.gz
cd libvorbis-<VERSION>
./configure --prefix=/usr/local \
            --with-ogg-libraries=/usr/local/lib
make
make install
  • Flac
cd $SOURCEDIR
tar xvzf flac-<VERSION>.tar.gz
./configure --prefix=/usr/local \
            --with-ogg-libraries=/usr/local/lib
make
make install
  • Taglib
cd $SOURCEDIR
tar xvzf taglib-<VERSION>.tar.gz
cd taglib-<VERSION>
./configure --prefix=/usr/local
make
make install

Sofern wir den Server nicht Binär installieren konnten, installieren wir als nächstes mysql.

  • MySQL
cd $SOURCEDIR
tar xvzf mysql-<VERSION>.tar.gz
cd mysql-<VERSION>
./configure --prefix=/usr/local \
            --libexecdir=/usr/local/bin \
            --without-extra-tools \
            --without-bench
make
make install

Nach der erfolgten Installation von mysql folgen noch ein paar weitere für muggle wichtige Installationsschritte.

cd /usr/local/lib
ln -s mysql/libmysqlclient.so* .
groupadd mysql
useradd -g mysql mysql
cd ..
chown -R mysql var
ldconfig
mysql_install_db --user=mysql &

Die Installation des Plugins erfolgt an der allbekannten Stelle $SOURCEDIR/VDR/PLUGINS/src vor:

cd $SOURCEDIR/VDR/PLUGINS/src
tar xvzf vdr-muggle-<VERSION>.tgz
ln -s muggle-<VERSION> muggle

Ansonsten können wir nun das Plugin wie gewohnt übersetzen.

cd $SOURCEDIR/VDR
make plugins

Kopieren von mugglei in den PATH.

cp $SOURCEDIR/VDR/PLUGINS/src/muggle/mugglei /usr/local/bin

mysql-Datenbank befüllen

Als erstes starten wir den mysql-Server mit.

mysqld_safe --user=mysql &

Nun können wir die Datenbank füttern. Dazu starten wir den vdr, gehen in den Setup vom muggle - Plugin und wählen den Befehl "Datenbank synchronisieren".

Normalerweise ist das aber nicht nötig - wenn muggle die Datenbank nicht findet, fragt er, ob er sie anlegen und automatisch füttern soll.

Übergabe für VDR.

vdr -P'muggle -t /mp3'

Für das automatische Starten des Mysql Daemons...

Unterhalb von ../support-files im Sourceverzeichnis, befinden sich Templates.

Ein Eintrag in der /etc/init.d/boot.local (falls vorhanden) sollte auch langen.

# starting mysqld daemon
/usr/local/bin/mysqld_safe --user=mysql &

Arch-Linux

pacman -S libid3tag libmad flac taglib libvorbis libsndfile mysql

Crux

prt-get libid3tag libmad flac taglib libvorbis libsndfile mysql

Dannach...

sed -i "1i/usr/lib/mysql" /etc/ld.so.conf
ldconfig

Debian

apt-get install libid3tag0-dev libmad0-dev libflac++-dev libtag1-dev libvorbis-dev libsndfile1-dev

Gentoo

emerge libid3tag libmad flac taglib libvorbis libsndfile mysql

SuSE

yast -i libid3tag-devel mad-devel flac-devel taglib-devel libvorbis-devel libsndfile-devel mysql-devel

Konfiguration

Parameter

Plugin

Parameter (kurz) Parameter (lang) Beschreibung
-h HHHH --host=HHHH specify database host (default is localhost)
-s SSSS --socket=PATH specify database socket (default is TCP connection)
-n NNNN --name=NNNN specify database name (overridden by -g)
-p PPPP --port=PPPP specify port of database server (default is )
-u UUUU --user=UUUU specify database user (default is )
-w WWWW --password=WWWW specify database password (default is empty)
-t TTTT --toplevel=TTTT specify toplevel directory for music (default is /mnt/music)
-d DIRN --datadir=DIRN specify directory for embedded sql data (default is $HOME/.muggle)
-v --verbose specify debug level. The higher the more (default is 1)

Mugglei

Parameter Beschreibung
-h <hostname> specify host of mySql database server (default is 'localhost')
-s <socket> specify a socket for mySQL communication (default is TCP)
-n <database> specify database name (default is 'GiantDisc')
-u <username> specify user of mySql database (default is empty)
-p <password> specify password of user (default is empty password)
-t <topleveldir> name of music top level directory
-z scan all database entries and delete entries for files not found (is not yet implemented)
-c delete the entire database and recreate a new empty one
-v the wanted log level, the higher the more. Default is 1


Links

  1. mySQL
  2. MAD (M)PEG (A)udio (D)ecoder Homepage
  3. Ogg Vorbis CODEC Project
  4. Taglib - Audio Meta-Data Library
  5. Snd2usb für muggle zum Schreiben auf USB Stick
  6. Flac
  7. Homepage des Plugins
In anderen Sprachen