Powered by Invision Power Board


  
 
Reply to this topicStart new topicStart Poll

> Playlist für FreeVo
champpain
Geschrieben am: Mittwoch, 25.Februar 2009, 08:57 Uhr
Quote Post


Professional
****

Gruppe: Active Members
Beiträge: 1086
Mitgliedsnummer.: 1287
Mitglied seit: 2006-02-25



[mod edit]
Hier ein Howto von champpain.
Danke. :)
[/mod edit]

Ziel: Playlistenerstellung

LÖSUNG A (the cheap way)
http://doc.freevo.org/AudioPlugins?highlig...f43d2465f70e66d

nur den folgenden schnipsel ans Ende der local_conf.py (in /etc/freevo) kopieren
CODE

plugin.activate( ‘audio.playlist’, args=( ‘/Path/To/Playlists’, ‘Naming_Scheme %m%d’ ) )
PLAYLIST_SUFFIX = [ ‘m3u’ ]

Und schon hat man (nach einem restart) im Untermenü (rote Taste) den Punkt "zur Playlist hinzufügen".
Ideal, wenn man schnell EINE playlist erstellen möchte.

LÖSUNG B (die komfortable Variante...)
Der Music Player Daemon stellt eine Datenbank mit den mp3-Dateien zur Verfügung.
Mit Hilfe dieser kann man per Suchfunktion und drag&drop Playlisten erstellen UND freevo-audio "fernsteuern".

Das ist MPD: http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki

Und dazu gibt es bereits ein freevo-plugin, das nur aktiviert werden muss:
http://doc.freevo.org/AudioPlugins#head-47...a71c1e177437558

Alles was man tun muss, ist
i) aktivieren des plugins
ii) konfigurieren des plugins
iii) diverse anpassungen für mpd
iv) Datenbank in mpd einlesen
v) einen client installieren

i) einfach den folgenden schnipsel ans Ende der local_conf.py (in /etc/freevo) kopieren
CODE

MPD_SERVER_HOST='localhost'     # the host running the mpd server
MPD_SERVER_PORT=6600            # the port the server is listening on
MPD_SERVER_PASSWORD=None        # the password to access the mpd server
MPD_MUSIC_BASE_PATH='/audio'    # the local path to where the music is stored, must have trailing slash
MPD_EXTERNAL_CLIENT=None    # the location of the external client you want to use, or None
#   MPD_EXTERNAL_CLIENT_ARGS=''     # arguments to be passed to the external client, or None [not in use yet]
plugin.activate('audio.mpd_playlist')
plugin.activate('audio.mpd_status')



ii) im Ordner /etc liegt die mpd.conf
den Ordner /audio/playlist anlegen und die mpd.conf wie folgt editieren
(die weiteren Angaben in der Datei sind für uns irrelevant und müssen nicht editiert werden)

CODE

# A default Gentoo configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.

######################## REQUIRED PATHS ########################
music_directory                 "/audio"
playlist_directory              "/audio/playlists"
db_file                         "/var/lib/mpd/database"
log_file                        "/var/log/mpd/mpd.log"
error_file                      "/var/log/mpd/mpd.error.log"
################################################################


######################## OPTIONAL PATHS ########################
#
# If you wish to use mpd --kill to stop MPD, then you must
# specify a file here in which to store MPD's process ID.
#
pid_file                        "/var/run/mpd/mpd.pid"
#
# If specified, MPD will save its current state (playlist,
# current song, playing/paused, etc.) at exit.  This will be
# used to restore the session the next time it is run.
#
state_file                      "/var/lib/mpd/state"
#
################################################################


######################## DAEMON OPTIONS ########################
#
# If started as root, MPD will drop root privileges and run as
# this user instead.  Otherwise, MPD will run as the user it was
# started by.  If left unspecified, MPD will not drop root
# privileges at all (not recommended).
#
user                            "mpd"
#
# The address and port to listen on.
#
#bind_to_address                 "localhost"
#port                            "6600"
#
# Controls the amount of information that is logged.  Can be
# "default", "secure", or "verbose".
#
log_level                       "default"
#
################################################################
...


Das bind_to_adress muss zwingend auskommentiert werden, wenn man MPD per Client über das Netzwerk fernsteuern möchte.


iii)
playlist-Ordner anlegen und Rechte vergeben:

CODE

mkdir /audio/playlists
chown mpd:audio /audio/playlists/


log-Ordner anlegen und Rechte vergeben:
CODE

mkdir /var/log/mpd
chown mpd:audio /var/log/mpd/


mpd zu den autostart-diensten hinzufügen
CODE

stp freevo
mpd --kill
stt mpd
rc-update -a mpd default
stt freevo



iv) Datenbank einlesen
CODE
mpd --create-db


v) ggf. einen client installieren
ich habe folgenden java-client gewählt
http://mpd.wikia.com/wiki/Client:Bjj

Es gibt übrigens auch clients für Windows PDAs oder Smartphones!

Hab ich was vergessen?
Email Poster
Top
Thema wird von 1 Benutzer(n) gelesen (1 Gäste und 0 Anonyme Benutzer)
0 Mitglieder:

Topic Options Reply to this topicStart new topicStart Poll