PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : mpd hilfe



Fr3eMaN
29.11.05, 20:37
hi, ich habe mpd installiert und habe ein paar probleme hier erstmal die config :


# MPD CONFIG FILE
# For a full description of all config parameters,
# Check the mpd man page, "man mpd".
# and /usr/share/doc/packages/mpd/mpdconf.example

########## SET THIS !!!!!! ########
music_directory "/home/Fr3eMaN/mp3"
########## REQUIRED ###############
port "6600"
playlist_directory "/home/Fr3eMaN/mp3"
log_file "/home/Fr3eMaN/mp3/mpd.log"
error_file "/home/Fr3eMaN/mp3/mpd.error"
pid_file "/home/Fr3eMaN/mp3/mpd.pid"
###################################


###################################
# EVERYTHING ELSE IS OPTIONAL
###################################

################## AUDIO OUTPUT ##########################
#
# use this if you want to use OSS audio output
#audio_output {
# type "oss"
# name "my OSS sound card"
# device "/dev/dsp" # optional
# format "44100:16:2" #optional
#}
#
# use this if you want to use ALSA audio output
audio_output {
type "alsa"
name "my ALSA device"
device "hw:0,0" # optional
# format "44100:16:2" #optional
}
#
# as a last resort, try using libao
#audio_output {
# type "ao"
# name "default ao output"
#}
#
#
# Set this if you have problems
# playing audio files.
# This will resample your music so
# that it comes out at the set rate.
#
#audio_output_format "44100:16:2"
#
################################################## ########


################# SHOUT STREAMING ########################
#
# Set this to allow mpd to stream its output to icecast2
# (i.e. mpd is a icecast2 source)
#
#audio_output {
# type "shout"
# name "my cool stream"
# host "hostname"
# port "8000"
# mount "/mpd.ogg"
# password "hackme"
# quality "5.0"
# bitrate "128"
# format "44100:16:1"
#
# Optional Paramters
# user "source"
# description "here's my long descriptiion"
# genre "jazz"
#} # end of audio_output
#
################################################## ########

######### FILESYSTEM SETTINGS ###########
# If filenames or directory names don't
# display correctly, set the character
# set (encoding) for the filesystem
# here. The fileystem encoding is
# typically "ISO-8859-1" or "UTF-8".
# After changing fileystem_charset,
# recreate the db: mpd --create-db
filesystem_charset "UTF-8"
#########################################


########### OPTIONAL FILES ##############
# Location of DB file
db_file "/home/Fr3eMaN/mp3/mpddb"
#
# State file for storing state of mpd
# when it is shutdown. MPD will restore
# the state (i.e. load playlist, start
# playing, etc) upon restart.
state_file "/var/lib/mpd/mpdstate"
##########################################


######### VOLUME MIXER ############
# for OSS Mixer
#mixer_type "oss"
#mixer_device "/dev/mixer"
#mixer_control "Pcm"

# for Alsa Mixer
mixer_type "alsa"
mixer_device "default"
mixer_control "master"

# for Software Mixer
#mixer_type "software"
##################################



################# REPLAYGAIN #############################
#
# Use Replay Gain (album or title)
# http://www.replaygain.org
#
#replaygain "album"
#
# Sets the pre-amp used for files that have replaygain
# info. Valid values are between -15 to 15 (in dB).
#
#replaygain_preamp "0"
#
################################################## ########

######### AUDIO OUTPUT ###########
# misc audio output options
#audio_write_size "1024"
##################################


#### OUTPUT BUFFER SETTINGS ######
#buffer_size "2048"
#buffer_before_play "25%"
##################################


########### SECURITY SETTINGS ############
# if you start mpd as root, its recommended
# you specify a a user for mpd to run.
user "Fr3eMaN"

# to only allow connections from localhost


# Specify one or more passwords required to
# access mpd:
#password "password1@read,add,control,admin"
#password "password2@read"

# Specify permissions used by default when no password is
# given by for a connection/client.
#default_permissions "read,add,control,admin"
##########################################


########### MISC OPTIONS #################
#max_playlist_length "4096"
#connection_timeout "60"
#max_connections "5"
#max_command_list_size "2048"
#max_output_buffer_size "2048"
#save_absolute_paths_in_playlists "no"

# log_level can be "default", "secure", "verbose"
#log_level "default"
#########################################


mpd --create-db klappt wunderbar.Jetzt weis ich aber nicht weiter. Wenn ich jetzt nur mpd eingebe bekomme ich folgende Meldung :


problem opening error file "/home/Fr3eMaN/mp3/mpd.error" (config line 12) for writing


kann mir wer helfen? gibt es irgendwo nen tutorial oder ne Anleitung zur Benutzung von mpd?

Fr3eMaN

darkmind
29.11.05, 20:42
touch /home/Fr3eMaN/mp3/mpd.error

hilft das weiter?

Fr3eMaN
30.11.05, 05:41
ne,leider nicht. Es kommt trotzdem noch der selbe Fehler. Gibt es irgendwo eine Anleitung für mpd oder ähnlichen consolen-playern?

Fr3eMaN

mutze
01.12.05, 06:15
Hallo,

bei mir läuft mpd mit einer etwas kleineren .mpdconf:


# required
playlist_directory "/home/Username/mpd/playlists"
music_directory "/Pfad/zu/Deiner/Musik/"
port "6600"
log_file "/home/Username/mpd/mpd.log"
error_file "/home/Username/mpd/errors.log"

# optional, but HIGHLY RECOMMENDED
db_file "/home/Username/mpd/mpddb"
user "Username"

# optional, but recommended
state_file "/home/Username/mpd/state"

ao_driver "alsa09"Die Pfade mußt Du natürlich Deinen Bedürfnissen anpassen.
Den Ordner mpd im /home Verzeichnis mußte ich selbst erstellen damit mpd die Files mpd.log, errors.log usw anlegen konnte.
Den eintrag ao_driver hab ich aus dem englischen Ubuntuforum. Funktioniert unter Zenwalk aber perfekt.
Ich hoffe das hilft Dir. Hab selber lange im Netz gesucht bis ich die Treiberoption hatte und Anhand von
type "alsa"
name "my ALSA device"
device "hw:0,0" # optionaldenke ich das es daran liegen könnte.

mutze

Fr3eMaN
01.12.05, 13:21
ich bin leider noch nicht zu Hause , werde es dann bei gelegenheit ausprobieren. Aber danke für die Hilfe ;)

Fr3eMaN

drunkenPenguin
01.12.05, 13:33
hi, ich habe mpd installiert und habe ein paar probleme hier erstmal die config :


# MPD CONFIG FILE
# For a full description of all config parameters,
# Check the mpd man page, "man mpd".
# and /usr/share/doc/packages/mpd/mpdconf.example

########## SET THIS !!!!!! ########
music_directory "/home/Fr3eMaN/mp3"
########## REQUIRED ###############
port "6600"
playlist_directory "/home/Fr3eMaN/mp3"
log_file "/home/Fr3eMaN/mp3/mpd.log"
error_file "/home/Fr3eMaN/mp3/mpd.error"
pid_file "/home/Fr3eMaN/mp3/mpd.pid"
###################################


###################################
# EVERYTHING ELSE IS OPTIONAL
###################################

################## AUDIO OUTPUT ##########################
#
# use this if you want to use OSS audio output
#audio_output {
# type "oss"
# name "my OSS sound card"
# device "/dev/dsp" # optional
# format "44100:16:2" #optional
#}
#
# use this if you want to use ALSA audio output
audio_output {
type "alsa"
name "my ALSA device"
device "hw:0,0" # optional
# format "44100:16:2" #optional
}
#
# as a last resort, try using libao
#audio_output {
# type "ao"
# name "default ao output"
#}
#
#
# Set this if you have problems
# playing audio files.
# This will resample your music so
# that it comes out at the set rate.
#
#audio_output_format "44100:16:2"
#
################################################## ########


################# SHOUT STREAMING ########################
#
# Set this to allow mpd to stream its output to icecast2
# (i.e. mpd is a icecast2 source)
#
#audio_output {
# type "shout"
# name "my cool stream"
# host "hostname"
# port "8000"
# mount "/mpd.ogg"
# password "hackme"
# quality "5.0"
# bitrate "128"
# format "44100:16:1"
#
# Optional Paramters
# user "source"
# description "here's my long descriptiion"
# genre "jazz"
#} # end of audio_output
#
################################################## ########

######### FILESYSTEM SETTINGS ###########
# If filenames or directory names don't
# display correctly, set the character
# set (encoding) for the filesystem
# here. The fileystem encoding is
# typically "ISO-8859-1" or "UTF-8".
# After changing fileystem_charset,
# recreate the db: mpd --create-db
filesystem_charset "UTF-8"
#########################################


########### OPTIONAL FILES ##############
# Location of DB file
db_file "/home/Fr3eMaN/mp3/mpddb"
#
# State file for storing state of mpd
# when it is shutdown. MPD will restore
# the state (i.e. load playlist, start
# playing, etc) upon restart.
state_file "/var/lib/mpd/mpdstate"
##########################################


######### VOLUME MIXER ############
# for OSS Mixer
#mixer_type "oss"
#mixer_device "/dev/mixer"
#mixer_control "Pcm"

# for Alsa Mixer
mixer_type "alsa"
mixer_device "default"
mixer_control "master"

# for Software Mixer
#mixer_type "software"
##################################



################# REPLAYGAIN #############################
#
# Use Replay Gain (album or title)
# http://www.replaygain.org
#
#replaygain "album"
#
# Sets the pre-amp used for files that have replaygain
# info. Valid values are between -15 to 15 (in dB).
#
#replaygain_preamp "0"
#
################################################## ########

######### AUDIO OUTPUT ###########
# misc audio output options
#audio_write_size "1024"
##################################


#### OUTPUT BUFFER SETTINGS ######
#buffer_size "2048"
#buffer_before_play "25%"
##################################


########### SECURITY SETTINGS ############
# if you start mpd as root, its recommended
# you specify a a user for mpd to run.
user "Fr3eMaN"

# to only allow connections from localhost


# Specify one or more passwords required to
# access mpd:
#password "password1@read,add,control,admin"
#password "password2@read"

# Specify permissions used by default when no password is
# given by for a connection/client.
#default_permissions "read,add,control,admin"
##########################################


########### MISC OPTIONS #################
#max_playlist_length "4096"
#connection_timeout "60"
#max_connections "5"
#max_command_list_size "2048"
#max_output_buffer_size "2048"
#save_absolute_paths_in_playlists "no"

# log_level can be "default", "secure", "verbose"
#log_level "default"
#########################################


mpd --create-db klappt wunderbar.Jetzt weis ich aber nicht weiter. Wenn ich jetzt nur mpd eingebe bekomme ich folgende Meldung :


problem opening error file "/home/Fr3eMaN/mp3/mpd.error" (config line 12) for writing


kann mir wer helfen? gibt es irgendwo nen tutorial oder ne Anleitung zur Benutzung von mpd?

Fr3eMaN

Darf der Benutzer 'mpd' in dieses Verzeichnis schreiben?
Zumindest unter Debian läuft mpd standardmäßig unter dem gleichnamigen User.

Als grafisches Frontend (falls erwünscht) kann ich Dir übrigens 'glurp' (http://www.musicpd.org/glurp.shtml) wärmstens empfehlen.

Fr3eMaN
01.12.05, 15:40
eigentlich müsste es gehen, weil es ja mein userverzeichnis ist,allerdings bekomme ich den selben Fehler wenn ich es als root probiere.

@drunkenPenguin klappt wunderbar, danke. Letztednlich wollte ich aber mal einen consolenPlayer ausprobieren ;)

@mutze, hey danke es läuft jetz fehlerfrei ;)

Fr3eMaN

drunkenPenguin
03.12.05, 11:21
# optional, but HIGHLY RECOMMENDED
db_file "/home/Username/mpd/mpddb"
user "Username"
mutze

Genau das sag ich doch ;)